|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjgromacs.data.IndexSetList
public class IndexSetList
Objects of this class represent a list of index sets
Constructor Summary | |
---|---|
IndexSetList()
Constructs a new IndexSetList object |
Method Summary | |
---|---|
void |
addIndexSet(IndexSet set)
Adds a new index set to the list |
void |
addIndexSet(IndexSet set,
java.lang.String name)
Adds a new index set of given name to the list |
java.lang.Object |
clone()
Returns an identical IndexSetList object |
boolean |
equals(java.lang.Object other)
Returns true if the two index set lists are identical |
IndexSet |
fuseIntoOneIndexSet()
Returns the union of all index sets as a single index set |
java.util.ArrayList<IndexSet> |
getAsAnArrayList()
Returns index set list as an ArrayList object |
IndexSet |
getIndexSet(int i)
Returns the index set of given index |
IndexSet |
getIndexSet(java.lang.String name)
Returns the index set of given name |
int |
getNumberOfAtomsInIndexSet(int i)
Returns the number of atoms in the index set of given index |
int |
getNumberOfAtomsInIndexSet(java.lang.String name)
Returns the number of atoms in the index set of given name |
int |
getNumberOfIndexSets()
Returns the number of index sets in the list |
int |
hashCode()
Returns hash code |
void |
removeIndexSet(IndexSet set)
Removes the given index set from the list |
void |
removeIndexSet(int i)
Removes index set of given index from the list |
void |
setIndexSet(int i,
IndexSet set)
Replaces index set of given index with a new index set |
java.lang.String |
toString()
Returns the String representation of index set list |
java.lang.String |
toStringInfo()
Returns summary information about the index set list |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public IndexSetList()
Method Detail |
---|
public java.util.ArrayList<IndexSet> getAsAnArrayList()
public int getNumberOfIndexSets()
public IndexSet getIndexSet(int i)
i
- index of index set
public IndexSet getIndexSet(java.lang.String name)
name
- name of index set
public int getNumberOfAtomsInIndexSet(int i)
i
- index of index set
public int getNumberOfAtomsInIndexSet(java.lang.String name)
name
- name of index set
public void addIndexSet(IndexSet set)
set
- new index setpublic void addIndexSet(IndexSet set, java.lang.String name)
set
- new index setname
- name of index setpublic void removeIndexSet(int i)
i
- index of index set to be removedpublic void removeIndexSet(IndexSet set)
set
- index set to be removedpublic void setIndexSet(int i, IndexSet set)
i
- index of index set to be replacedset
- new index setpublic IndexSet fuseIntoOneIndexSet()
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String toStringInfo()
public java.lang.Object clone()
clone
in class java.lang.Object
public boolean equals(java.lang.Object other)
equals
in class java.lang.Object
other
- the other index set listpublic int hashCode()
hashCode
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |