Package org.openscience.cdk.smiles
Class InvPair
java.lang.Object
org.openscience.cdk.smiles.InvPair
- All Implemented Interfaces:
Serializable
This is used to hold the invariance numbers for the canonical labeling of
IAtomContainers.- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcommit()booleanCheck whether this instance equals another instance.getAtom()longgetCurr()Get the current seed.longgetLast()intgetPrime()Get the current prime number.inthashCode()voidvoidsetCurr(long newCurr) Set the value of the seed.voidsetLast(long newLast) voidsetPrime()Sets the prime number based on the current seed.toString()String representation.
-
Field Details
-
INVARIANCE_PAIR
The description used to set the invariance numbers in the atom's property- See Also:
-
CANONICAL_LABEL
- See Also:
-
-
Constructor Details
-
InvPair
public InvPair() -
InvPair
-
-
Method Details
-
getLast
public long getLast() -
setCurr
public void setCurr(long newCurr) Set the value of the seed. Note that use of this method implies that a new prime number is desired. If so, make sure to callsetPrime()to ensure that a new prime number is obtained using the new seed. Todo make the following robust!- See Also:
-
getCurr
public long getCurr()Get the current seed.- Returns:
- The seed
- See Also:
-
equals
Check whether this instance equals another instance. -
hashCode
public int hashCode() -
setLast
public void setLast(long newLast) -
setAtom
-
getAtom
-
commit
public void commit() -
toString
String representation. -
getPrime
public int getPrime()Get the current prime number.- Returns:
- The current prime number
- See Also:
-
setPrime
public void setPrime()Sets the prime number based on the current seed. Note that if you change the seed viasetCurr(long), you should make sure to call this method so that a new prime number is available viagetPrime()- See Also:
-