|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.sdsc.mbt.Structure
This class provides the primary interface for a molecular structure object.
Note that since there are currently no "set" methods in this class, there are also currently no StructureComponentEvent handling methods.
StructureComponentEvent
,
,
Serialized FormConstructor Summary | |
Structure()
|
Method Summary | |
StructureComponentIterator |
createStructureComponentIterator(StructureComponentFilter filter)
Given a StructureComponentFilter, create and return an iterator which will selectively return a subset of structure components. |
abstract StructureComponent |
getStructureComponentByIndex(java.lang.String structureComponentType,
int index)
Get the values for any StructureSomponent subclass by its type-specific index. |
abstract int |
getStructureComponentCount(java.lang.String scType)
Counts components of the specified type that exist in the structure. |
StructureComponentIterator |
getStructureComponentRelations(java.lang.String relation_name,
StructureComponent structureComponent)
Given a StructureComponentRelation name and a StructureComponent, create and return a StructureComponentIterator which will selectively return the related subset of StructureComponent objects. |
StructureMap |
getStructureMap()
Return the StructureMap object that describes the derived (implied) hierarchy of primary and secondary structure data for the Structure. |
abstract java.lang.String |
getUrlString()
This method returns a string which represents the URL from which the structure instance was produced. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Structure()
Method Detail |
public abstract java.lang.String getUrlString()
public abstract int getStructureComponentCount(java.lang.String scType)
public StructureComponentIterator createStructureComponentIterator(StructureComponentFilter filter)
public StructureComponentIterator getStructureComponentRelations(java.lang.String relation_name, StructureComponent structureComponent) throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentException
public abstract StructureComponent getStructureComponentByIndex(java.lang.String structureComponentType, int index) throws java.lang.IndexOutOfBoundsException, java.lang.IllegalArgumentException
Note that it is the caller's responsibility to cast the returned object to the corresponding StructureComponent sublcass type. For example, an application might do something like this:
// First load a structure using the StructureFactory, and then... int atom_count = structure.getStructureComponentCount( StructureComponentRegistry.TYPE_ATOM ); for ( int i=0; i
- Throws:
java.lang.IndexOutOfBoundsException
java.lang.IllegalArgumentException
public StructureMap getStructureMap()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |