@TestClass(value="org.openscience.cdk.smiles.InvPairTest") public class InvPair extends Object implements Serializable
IAtomContainer
s.Modifier and Type | Field and Description |
---|---|
static String |
CANONICAL_LABEL |
static String |
INVARIANCE_PAIR
The description used to set the invariance numbers in the atom's property
|
Constructor and Description |
---|
InvPair() |
InvPair(long current,
IAtom atom) |
Modifier and Type | Method and Description |
---|---|
void |
commit() |
boolean |
equals(Object object)
Check whether this instance equals another instance.
|
IAtom |
getAtom() |
long |
getCurr()
Get the current seed.
|
long |
getLast() |
int |
getPrime()
Get the current prime number.
|
void |
setAtom(IAtom newAtom) |
void |
setCurr(long newCurr)
Set the value of the seed.
|
void |
setLast(long newLast) |
void |
setPrime()
Sets the prime number based on the current seed.
|
String |
toString()
String representation.
|
public static final String INVARIANCE_PAIR
public static final String CANONICAL_LABEL
public InvPair()
public InvPair(long current, IAtom atom)
@TestMethod(value="testGetLast") public long getLast()
@TestMethod(value="testSetCurr_long") public void setCurr(long newCurr)
setPrime()
to ensure that a new prime
number is obtained using the new seed.
Todo make the following robust!getCurr()
,
setPrime()
@TestMethod(value="testGetCurr") public long getCurr()
setCurr(long)
,
setPrime()
,
getPrime()
@TestMethod(value="testEquals_Object") public boolean equals(Object object)
@TestMethod(value="testSetLast_long") public void setLast(long newLast)
@TestMethod(value="testSetAtom_IAtom") public void setAtom(IAtom newAtom)
@TestMethod(value="testGetAtom") public IAtom getAtom()
@TestMethod(value="testCommit") public void commit()
@TestMethod(value="testToString") public String toString()
@TestMethod(value="testGetPrime") public int getPrime()
setPrime()
@TestMethod(value="testSetPrime") public void setPrime()
setCurr(long)
, you should make
sure to call this method so that a new prime number is available via
getPrime()
setCurr(long)
,
getPrime()