no.uio.labmed.molecule
Class CompoundElement.SubElement

java.lang.Object
  |
  +--no.uio.labmed.molecule.CompoundElement.SubElement
Enclosing class:
CompoundElement

public class CompoundElement.SubElement
extends java.lang.Object

Container for element and index number for an element in a compound: ie. the compound is a list of subelements, which in turn refere to an element and its index in the list.

This functionallity helps distinguish between different subelements of the same type, ie. which refere to the same element. Also, it is used to identify a subelement of a instance Compound as this should have the same indexing of the subelements as the corresponding CompoundElement.


Field Summary
 MolecularElement element
           
 int index
           
 
Constructor Summary
CompoundElement.SubElement(int no, MolecularElement subelement)
           
 
Method Summary
 MolecularElement element()
           
 int index()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

index

public int index

element

public MolecularElement element
Constructor Detail

CompoundElement.SubElement

public CompoundElement.SubElement(int no,
                                  MolecularElement subelement)
Method Detail

index

public int index()

element

public MolecularElement element()