Class PPNode
- java.lang.Object
-
- com.actelion.research.chem.descriptor.flexophore.PPNode
-
-
Field Summary
Fields Modifier and Type Field Description static intDUMMY_INTERACT_IDstatic intINFO_DEFAULTstatic java.lang.StringMULT_FREQstatic intNUM_BYTES_INTERACTION_TYPEstatic java.lang.StringSEPARATOR_ATOMS
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(int interactionType)Caution! After finishing all adding's realize() has to be called!voidaddAtoms(PPNode node)Only atoms are added that are not yet in the list, check PPAtom.equals for comparison.intcompareTo(PPNode o)booleancontainsInteractionID(int interactid)voidcopy(PPNode node)Copy of node into this.booleanequalAtoms(PPNode node)realize() may be called first.booleanequals(java.lang.Object o)byte[]get()intgetAtomicNo(int i)static intgetAtomicNoFromInteractionType(int interactionType)PPNodegetCopy()node deep copy.static PPNodegetDummy()doublegetFractionCarbonInteractions()static PPNodegetHeteroOnlyNode(PPNode node)intgetInteractionType(int i)intgetInteractionTypeCount()realize() may be called first.protected static intgetInteractionTypeFromByteArray(byte low, byte med, byte high)bytegetModeFlexophore()static intgetNumBytesEntry()booleanhasHeteroAtom()booleanisAromatic(int i)booleanisCarbonExclusiveNode()static PPNoderead(java.lang.String strNode)voidrealize()May be called after finishing adding new interaction types.voidset(byte[] arrInteractionType, byte size)Flat copy from node into this.voidsetModeFlexophore(byte modeFlexophore)voidsortInteractionTypes()java.lang.StringtoString()java.lang.StringtoStringLong()java.lang.StringtoStringLongHardPPPoint()
-
-
-
Field Detail
-
NUM_BYTES_INTERACTION_TYPE
public static final int NUM_BYTES_INTERACTION_TYPE
- See Also:
- Constant Field Values
-
DUMMY_INTERACT_ID
public static final int DUMMY_INTERACT_ID
- See Also:
- Constant Field Values
-
SEPARATOR_ATOMS
public static final java.lang.String SEPARATOR_ATOMS
- See Also:
- Constant Field Values
-
MULT_FREQ
public static final java.lang.String MULT_FREQ
- See Also:
- Constant Field Values
-
INFO_DEFAULT
public static final int INFO_DEFAULT
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
PPNode
public PPNode()
-
PPNode
public PPNode(PPNode node)
-
-
Method Detail
-
add
public void add(int interactionType)
Caution! After finishing all adding's realize() has to be called!- Parameters:
interactionType-
-
addAtoms
public void addAtoms(PPNode node)
Only atoms are added that are not yet in the list, check PPAtom.equals for comparison.- Parameters:
node-
-
compareTo
public int compareTo(PPNode o)
- Specified by:
compareToin interfacejava.lang.Comparable<PPNode>
-
containsInteractionID
public boolean containsInteractionID(int interactid)
-
copy
public void copy(PPNode node)
Copy of node into this.- Parameters:
node-
-
getCopy
public PPNode getCopy()
node deep copy.
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
realize
public void realize()
May be called after finishing adding new interaction types.
-
equalAtoms
public boolean equalAtoms(PPNode node)
realize() may be called first.- Parameters:
node-- Returns:
-
get
public byte[] get()
-
getInteractionTypeCount
public int getInteractionTypeCount()
realize() may be called first.- Specified by:
getInteractionTypeCountin interfaceIPPNode- Returns:
-
getInteractionType
public int getInteractionType(int i)
- Specified by:
getInteractionTypein interfaceIPPNode
-
getInteractionTypeFromByteArray
protected static int getInteractionTypeFromByteArray(byte low, byte med, byte high)
-
getAtomicNo
public int getAtomicNo(int i)
-
isAromatic
public boolean isAromatic(int i)
-
getAtomicNoFromInteractionType
public static int getAtomicNoFromInteractionType(int interactionType)
-
getDummy
public static PPNode getDummy()
-
hasHeteroAtom
public boolean hasHeteroAtom()
- Specified by:
hasHeteroAtomin interfaceIPPNode
-
isCarbonExclusiveNode
public boolean isCarbonExclusiveNode()
-
set
public void set(byte[] arrInteractionType, byte size)Flat copy from node into this.- Parameters:
arrInteractionType-size-
-
getModeFlexophore
public byte getModeFlexophore()
-
setModeFlexophore
public void setModeFlexophore(byte modeFlexophore)
-
sortInteractionTypes
public void sortInteractionTypes()
-
getFractionCarbonInteractions
public double getFractionCarbonInteractions()
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
toStringLong
public java.lang.String toStringLong()
-
toStringLongHardPPPoint
public java.lang.String toStringLongHardPPPoint()
-
read
public static PPNode read(java.lang.String strNode)
- Parameters:
strNode- i.e. 262,392,4358*2,8582,590088,598407- Returns:
-
getNumBytesEntry
public static int getNumBytesEntry()
-
-