Class PPNode
- java.lang.Object
-
- com.actelion.research.chem.descriptor.flexophore.PPNode
-
- All Implemented Interfaces:
java.lang.Comparable<PPNode>
- Direct Known Subclasses:
PPNodeRGroup
,PPNodeViz
public class PPNode extends java.lang.Object implements java.lang.Comparable<PPNode>
-
-
Field Summary
Fields Modifier and Type Field Description static int
DUMMY_INTERACT_ID
static int
INFO_DEFAULT
static java.lang.String
MULT_FREQ
static int
NUM_BYTES_INTERACTION_TYPE
static java.lang.String
SEPARATOR_ATOMS
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(int interactionType)
Caution! After finishing all adding's realize() has to be called!void
addAtoms(PPNode node)
Only atoms are added that are not yet in the list, check PPAtom.equals for comparison.int
compareTo(PPNode o)
boolean
containsInteractionID(int interactid)
void
copy(PPNode node)
Copy of node into this.boolean
equalAtoms(PPNode node)
realize() may be called first.boolean
equals(java.lang.Object o)
byte[]
get()
int
getAtomicNo(int i)
static int
getAtomicNoFromInteractionType(int interactionType)
PPNode
getCopy()
node deep copy.static PPNode
getDummy()
double
getFractionCarbonInteractions()
static PPNode
getHeteroOnlyNode(PPNode node)
int
getInteractionType(int i)
int
getInteractionTypeCount()
realize() may be called first.protected static int
getInteractionTypeFromByteArray(byte low, byte med, byte high)
static int
getNumBytesEntry()
boolean
hasHeteroAtom()
boolean
isAromatic(int i)
boolean
isCarbonExclusiveNode()
void
realize()
May be called after finishing adding new interaction types.void
set(byte[] arrInteractionType, byte size)
Flat copy from node into this.void
sortInteractionTypes()
java.lang.String
toString()
java.lang.String
toStringLong()
-
-
-
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:
compareTo
in 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:
equals
in 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.- Returns:
-
getInteractionType
public int getInteractionType(int i)
-
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()
-
isCarbonExclusiveNode
public boolean isCarbonExclusiveNode()
-
set
public void set(byte[] arrInteractionType, byte size)
Flat copy from node into this.- Parameters:
arrInteractionType
-size
-
-
sortInteractionTypes
public void sortInteractionTypes()
-
getFractionCarbonInteractions
public double getFractionCarbonInteractions()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
toStringLong
public java.lang.String toStringLong()
-
getNumBytesEntry
public static int getNumBytesEntry()
-
-