Class ContainerFragBondsSolutions
- java.lang.Object
-
- com.actelion.research.chem.properties.complexity.ContainerFragBondsSolutions
-
public class ContainerFragBondsSolutions extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description protected static intDEFAULT_CAPACITYstatic booleanELUSIVEprotected static doubleFACTOR_CAPACITYprotected static intMAX_NUM_BONDSprotected static intSTART_CAPACITY
-
Constructor Summary
Constructors Constructor Description ContainerFragBondsSolutions(int bits, int totalCapacity)Fragments are represented as bit arrays.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanaddFacultative(IBitArray f)The fragment is added if it is not already in the hash map.voidcalculateHash(IBitArray f)IBitArrayget()intgetAvailable()intgetBitsSet(IBitArray f)intgetBondsMolecule()intgetCapacity()java.util.List<IBitArray>getList(int bonds)intgetMaximumCapacityBondsInFragment()intgetMaximumNumberBondsInMolecule()intgetSizeBinaryArray()intgetTotalSizeResults()IBitArraygetWithCopy(IBitArray orign)voidreset()voidreset(int bits)Clears the hash map with the records that contain the given number of bits set.voidsetBondsMolecule(int bondsMolecule)
-
-
-
Constructor Detail
-
ContainerFragBondsSolutions
public ContainerFragBondsSolutions(int bits, int totalCapacity)Fragments are represented as bit arrays. Each bit represents a bond. The index of the bit equals the index of the bond inMolecule- Parameters:
bits- the maximum number of bonds in the Molecule that can be stored.totalCapacity- this is the capacity for all records. Memory is acquired until the maximum capacity is reached.
-
-
Method Detail
-
addFacultative
public boolean addFacultative(IBitArray f)
The fragment is added if it is not already in the hash map.- Parameters:
f-- Returns:
-
getBitsSet
public int getBitsSet(IBitArray f)
-
getList
public java.util.List<IBitArray> getList(int bonds)
-
getBondsMolecule
public int getBondsMolecule()
- Returns:
- the bondsMolecule
-
setBondsMolecule
public void setBondsMolecule(int bondsMolecule)
- Parameters:
bondsMolecule- the bondsMolecule to set
-
calculateHash
public void calculateHash(IBitArray f)
-
get
public IBitArray get()
-
getSizeBinaryArray
public int getSizeBinaryArray()
-
getTotalSizeResults
public int getTotalSizeResults()
-
reset
public void reset()
-
reset
public void reset(int bits)
Clears the hash map with the records that contain the given number of bits set.- Parameters:
bits-
-
getMaximumCapacityBondsInFragment
public int getMaximumCapacityBondsInFragment()
- Returns:
- the maximumNumberBondsInFragment
-
getCapacity
public int getCapacity()
-
getAvailable
public int getAvailable()
-
getMaximumNumberBondsInMolecule
public int getMaximumNumberBondsInMolecule()
-
-