Class Stbn
- java.lang.Object
-
- com.actelion.research.chem.forcefield.mmff.table.Stbn
-
- All Implemented Interfaces:
Searchable
public final class Stbn extends java.lang.Object implements Searchable
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intget(int row, int col)This should get an integer value given a column and row.intindex(MMFFMolecule mol, int a1, int a2, int a3)Returns the index of a row for a given molecule and three connected atoms which form an angle.doublekba(MMFFMolecule mol, int a1, int a2, int a3)Returns 'kba' for a given index in the table.intlength()This function should return the total number of rows in a searchable table.
-
-
-
Constructor Detail
-
Stbn
public Stbn(Tables t, java.lang.String csvpath)
-
-
Method Detail
-
get
public int get(int row, int col)Description copied from interface:SearchableThis should get an integer value given a column and row. The binary search function only searches columns containing integers for a value.- Specified by:
getin interfaceSearchable- Parameters:
row- The row in the table.col- The column in the row to return.- Returns:
- The value at 'col' in 'row'.
-
length
public int length()
Description copied from interface:SearchableThis function should return the total number of rows in a searchable table. This is normally just the length of the array.- Specified by:
lengthin interfaceSearchable- Returns:
- The number of elements that can be searched.
-
index
public int index(MMFFMolecule mol, int a1, int a2, int a3)
Returns the index of a row for a given molecule and three connected atoms which form an angle.- Parameters:
mol- The molecule containing the atoms.a1- Atom 1 (atom i).a2- Atom 2, the central atom (atom j).a3- Atom 3 (atom k).- Returns:
- The row index in the table.
-
kba
public double kba(MMFFMolecule mol, int a1, int a2, int a3)
Returns 'kba' for a given index in the table.- Parameters:
mol- The molecule containing the atoms.a1- Atom 1 (atom i).a2- Atom 2, the central atom (atom j).a3- Atom 3 (atom k).- Returns:
- The value of 'kba'.
-
-