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)
public long getLast()
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()
public long getCurr()
setCurr(long)
,
setPrime()
,
getPrime()
public boolean equals(Object object)
public void setLast(long newLast)
public void setAtom(IAtom newAtom)
public IAtom getAtom()
public void commit()
public String toString()
public int getPrime()
setPrime()
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()
Copyright © 2017. All Rights Reserved.