Class MolDistHist
- java.lang.Object
-
- com.actelion.research.chem.descriptor.flexophore.DistHist
-
- com.actelion.research.chem.descriptor.flexophore.MolDistHist
-
- All Implemented Interfaces:
IMolDistHist,ICompleteGraph,java.io.Serializable
public class MolDistHist extends DistHist implements java.io.Serializable, IMolDistHist
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static booleanVERBOSE-
Fields inherited from class com.actelion.research.chem.descriptor.flexophore.DistHist
arrDistHists
-
-
Constructor Summary
Constructors Constructor Description MolDistHist()MolDistHist(int nNodes)MolDistHist(MolDistHist mdh)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddNode(PPNode node)booleancheck()MolDistHistcopy()voidcopy(MolDistHist copy)booleanequals(java.lang.Object o)protected byte[]getArrNode()intgetConnAtom(int at, int index)bytegetModeFlexophore()PPNodegetNode(int index)!Slow method, it has to iterate through a loop to find the node in the array!static intgetNumBytesEntry()intgetNumInevitablePharmacophorePoints()Only for interface compliance needed.intgetPPPoints(int index)intgetSizeBytes()inthashCode()protected voidinitHistogramArray(int nNodes)protected booleanisFinalized()booleanisInevitablePharmacophorePoint(int indexNode)static MolDistHistread(java.lang.String strMolDistHist)static java.util.List<PPNode>readNodes(java.lang.String strMolDistHist)reads a MolDistHist from the toString() method.voidrealize()Resizes the node array to the needed length.protected voidsetArrNode(byte[] arrNode)java.lang.StringtoString()java.lang.StringtoStringHists()java.lang.StringtoStringNodes()-
Methods inherited from class com.actelion.research.chem.descriptor.flexophore.DistHist
copy, getBonds, getClusterCenter, getDistHist, getDistHist, getDistHists, getIdentifier, getIndex, getIndexPosStartForDistHist, getMaxDistInHist, getMinDist, getNumPPNodes, getRelMaxDistInHist, getRelMaxDistInHist, getValueAtAbsolutePosition, setDistHist, setDistHists, setIdentifier, toStringHistsIndexed
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.actelion.research.util.graph.complete.ICompleteGraph
getNumPPNodes
-
Methods inherited from interface com.actelion.research.chem.descriptor.flexophore.IMolDistHist
getDistHist, getRelMaxDistInHist
-
-
-
-
Field Detail
-
VERBOSE
public static final boolean VERBOSE
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
MolDistHist
public MolDistHist()
-
MolDistHist
public MolDistHist(int nNodes)
-
MolDistHist
public MolDistHist(MolDistHist mdh)
-
-
Method Detail
-
copy
public MolDistHist copy()
-
check
public boolean check()
-
copy
public void copy(MolDistHist copy)
- Parameters:
copy- : This object is written into copy.
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
getModeFlexophore
public byte getModeFlexophore()
-
initHistogramArray
protected void initHistogramArray(int nNodes)
- Overrides:
initHistogramArrayin classDistHist
-
addNode
public void addNode(PPNode node)
- Parameters:
node-
-
getArrNode
protected byte[] getArrNode()
- Returns:
- the arrNode
-
setArrNode
protected void setArrNode(byte[] arrNode)
- Parameters:
arrNode- the arrNode to set
-
realize
public void realize()
Resizes the node array to the needed length.
-
getConnAtom
public int getConnAtom(int at, int index)
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
toStringNodes
public java.lang.String toStringNodes()
-
toStringHists
public java.lang.String toStringHists()
-
isFinalized
protected boolean isFinalized()
-
getNode
public PPNode getNode(int index)
!Slow method, it has to iterate through a loop to find the node in the array!- Specified by:
getNodein interfaceIMolDistHist- Parameters:
index-- Returns:
- deep copy of the node.
-
getPPPoints
public int getPPPoints(int index)
- Parameters:
index-- Returns:
- number of pharmacophore points at the specified index slow method because it calls getPositionNode(index).
-
getSizeBytes
public int getSizeBytes()
- Overrides:
getSizeBytesin classDistHist
-
getNumInevitablePharmacophorePoints
public int getNumInevitablePharmacophorePoints()
Only for interface compliance needed.- Specified by:
getNumInevitablePharmacophorePointsin interfaceIMolDistHist
-
isInevitablePharmacophorePoint
public boolean isInevitablePharmacophorePoint(int indexNode)
- Specified by:
isInevitablePharmacophorePointin interfaceIMolDistHist
-
getNumBytesEntry
public static int getNumBytesEntry()
-
readNodes
public static java.util.List<PPNode> readNodes(java.lang.String strMolDistHist)
reads a MolDistHist from the toString() method.- Parameters:
strMolDistHist-- Returns:
-
read
public static MolDistHist read(java.lang.String strMolDistHist)
-
-