Modifier and Type | Method and Description |
---|---|
void |
addAtom(int atomIndex)
Adds an atom index to the orbit.
|
Object |
clone() |
boolean |
contains(int atomIndex)
Checks to see if the orbit contains this atom index.
|
List<Integer> |
getAtomIndices()
Gets all the atom indices as a list.
|
int |
getFirstAtom()
Gets the first atom index of the orbit.
|
int |
getHeight()
Gets the height of the signature label.
|
String |
getLabel()
Gets the label of the orbit.
|
boolean |
hasLabel(String otherLabel)
Checks to see if the orbit has this string as a label.
|
boolean |
isEmpty()
Checks to see if the orbit is empty.
|
Iterator<Integer> |
iterator() |
void |
remove(int atomIndex)
Removes an atom index from the orbit.
|
void |
sort()
Sorts the atom indices in this orbit
|
String |
toString() |
public Orbit(String label, int height)
label
- height
- @TestMethod(value="iteratorTest") public Iterator<Integer> iterator()
@TestMethod(value="testClone") public Object clone()
@TestMethod(value="sortTest") public void sort()
@TestMethod(value="getHeightTest") public int getHeight()
@TestMethod(value="getAtomIndicesTest") public List<Integer> getAtomIndices()
@TestMethod(value="addAtomTest") public void addAtom(int atomIndex)
atomIndex
- the atom index@TestMethod(value="hasLabelTest") public boolean hasLabel(String otherLabel)
otherLabel
- the label to compare with@TestMethod(value="isEmptyTest") public boolean isEmpty()
@TestMethod(value="getFirstAtomTest") public int getFirstAtom()
@TestMethod(value="removeTest") public void remove(int atomIndex)
atomIndex
- the atom index to remove@TestMethod(value="getLabelTest") public String getLabel()
@TestMethod(value="containsTest") public boolean contains(int atomIndex)
atomIndex
- the atom index to look for@TestMethod(value="toStringTest") public String toString()