java.io.Serializablepublic class PotentialArray
extends java.lang.Object
implements java.io.Serializable
| Constructor | Description |
|---|---|
PotentialArray() |
| Modifier and Type | Method | Description |
|---|---|---|
int |
addPotential(IPotential newPotential) |
Identifies the given potential to this type instance and returns
the index assigned to it.
|
NeighborCriterion[] |
getCriteria() |
|
int |
getPotentialIndex(IPotential potential) |
Returns the index that this type has assigned to the given
potential.
|
IPotential[] |
getPotentials() |
|
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.
|
void |
setCriterion(IPotential potential,
NeighborCriterion criterion) |
Sets the criterion associated with the given potential
|
public int getPotentialIndex(IPotential potential)
potential - The potential of interestpublic int addPotential(IPotential newPotential)
newPotential - the potential being addedpublic void setCriterion(IPotential potential, NeighborCriterion criterion)
public int removePotential(IPotential potential)
public final IPotential[] getPotentials()
public final NeighborCriterion[] getCriteria()