java.io.Serializablepublic class PotentialArrayByType
extends java.lang.Object
implements java.io.Serializable
| Constructor | Description |
|---|---|
PotentialArrayByType() |
| Modifier and Type | Method | Description |
|---|---|---|
int |
addPotential(IPotential newPotential,
AtomType type) |
Identifies the given potential to this type instance and returns
the index assigned to it.
|
int |
getPotentialIndex(IPotential potential) |
Returns the index that this type has assigned to the given
potential.
|
IPotential[] |
getPotentials() |
|
AtomType[] |
getTypes() |
|
int |
removePotential(IPotential potential) |
Removes the given potential and the associated criterion from the list
held by this type instance, and returns the index that was assigned to
it.
|
public int getPotentialIndex(IPotential potential)
potential - The potential of interestpublic int addPotential(IPotential newPotential, AtomType type)
newPotential - the potential being addedpublic int removePotential(IPotential potential)
public final IPotential[] getPotentials()
public final AtomType[] getTypes()