|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.sdsc.mbt.StructureComponentRelation
A class used to store a single relationship description between two StructureComponent types (much like a relational link between tables in a database). This class is used by the StructureComponentRegistry to define the relationship model for StructureComponent objects.
For example, the Conformation type relates to Atom type by means of an implied reference between the Conformation class's start_residue and end_residue fields, and the Atom class's residue_id field. A Conformation object therfore "relates" to a set of Atom values.
Constructor Summary | |
StructureComponentRelation(java.lang.String name,
java.lang.String subject_type,
java.lang.String object_type)
Constructor. |
Method Summary | |
java.lang.String |
getName()
Returns the name of this StructureComponentRelation object. |
java.lang.String |
getObjectType()
Returns the object type of this StructureComponentRelation object. |
java.lang.String |
getSubjectType()
Returns the subject type of this StructureComponentRelation object. |
boolean |
isRelated(StructureComponent subject,
StructureComponent object)
Tests to see if one StructureComponent instance is related to another. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public StructureComponentRelation(java.lang.String name, java.lang.String subject_type, java.lang.String object_type)
Method Detail |
public final java.lang.String getName()
public final java.lang.String getSubjectType()
public final java.lang.String getObjectType()
public final boolean isRelated(StructureComponent subject, StructureComponent object)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |