Package jgromacs.data
Class IndexSetList
java.lang.Object
jgromacs.data.IndexSetList
- All Implemented Interfaces:
Cloneable
Objects of this class represent a list of index sets
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addIndexSet
(IndexSet set) Adds a new index set to the listvoid
addIndexSet
(IndexSet set, String name) Adds a new index set of given name to the listclone()
Returns an identical IndexSetList objectboolean
Returns true if the two index set lists are identicalReturns the union of all index sets as a single index setReturns index set list as an ArrayList objectgetIndexSet
(int i) Returns the index set of given indexgetIndexSet
(String name) Returns the index set of given nameint
getNumberOfAtomsInIndexSet
(int i) Returns the number of atoms in the index set of given indexint
Returns the number of atoms in the index set of given nameint
Returns the number of index sets in the listint
hashCode()
Returns hash codevoid
removeIndexSet
(int i) Removes index set of given index from the listvoid
removeIndexSet
(IndexSet set) Removes the given index set from the listvoid
setIndexSet
(int i, IndexSet set) Replaces index set of given index with a new index settoString()
Returns the String representation of index set listReturns summary information about the index set list
-
Constructor Details
-
IndexSetList
public IndexSetList()Constructs a new IndexSetList object
-
-
Method Details
-
getAsAnArrayList
Returns index set list as an ArrayList object- Returns:
- index set list as an ArrayList
-
getNumberOfIndexSets
public int getNumberOfIndexSets()Returns the number of index sets in the list- Returns:
- number of index sets
-
getIndexSet
Returns the index set of given index- Parameters:
i
- index of index set- Returns:
- index set of given index
-
getIndexSet
Returns the index set of given name- Parameters:
name
- name of index set- Returns:
- index set of given name
-
getNumberOfAtomsInIndexSet
public int getNumberOfAtomsInIndexSet(int i) Returns the number of atoms in the index set of given index- Parameters:
i
- index of index set- Returns:
- number of atoms
-
getNumberOfAtomsInIndexSet
Returns the number of atoms in the index set of given name- Parameters:
name
- name of index set- Returns:
- number of atoms
-
addIndexSet
Adds a new index set to the list- Parameters:
set
- new index set
-
addIndexSet
Adds a new index set of given name to the list- Parameters:
set
- new index setname
- name of index set
-
removeIndexSet
public void removeIndexSet(int i) Removes index set of given index from the list- Parameters:
i
- index of index set to be removed
-
removeIndexSet
Removes the given index set from the list- Parameters:
set
- index set to be removed
-
setIndexSet
Replaces index set of given index with a new index set- Parameters:
i
- index of index set to be replacedset
- new index set
-
fuseIntoOneIndexSet
Returns the union of all index sets as a single index set- Returns:
- union of index sets
-
toString
Returns the String representation of index set list -
toStringInfo
Returns summary information about the index set list- Returns:
- summary information
-
clone
Returns an identical IndexSetList object -
equals
Returns true if the two index set lists are identical -
hashCode
public int hashCode()Returns hash code
-