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() |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
forEach, spliterator
public Orbit(String label, int height)
label
- height
- public void sort()
public int getHeight()
public List<Integer> getAtomIndices()
public void addAtom(int atomIndex)
atomIndex
- the atom indexpublic boolean hasLabel(String otherLabel)
otherLabel
- the label to compare withpublic boolean isEmpty()
public int getFirstAtom()
public void remove(int atomIndex)
atomIndex
- the atom index to removepublic String getLabel()
public boolean contains(int atomIndex)
atomIndex
- the atom index to look forCopyright © 2021. All rights reserved.