|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.molwind.chemical.model.SubstructureResolver
public class SubstructureResolver
SubstructureResolver resolves substructure relationships.
Constructor Summary | |
---|---|
SubstructureResolver(java.lang.String newParentName,
java.lang.String newIdName)
Creates a new Substructure resolver which uses the given attributes to decide whether there is a relationship. |
Method Summary | |
---|---|
boolean |
analyze(EntityGraph graph,
EntityVertex vertex)
Analyzes an entity graph. |
java.lang.String |
getParentName()
Get the ParentName value. |
boolean |
identical(WorldEntity entity1,
WorldEntity entity2)
Tests whether two entities are identical. |
boolean |
related(WorldEntity entity1,
WorldEntity entity2)
Augments the relationship between two entities. |
EntityGraph |
resolve()
Resolves the relationships by creating a graph of entity vertices and relationship edges. |
void |
setParentName(java.lang.String newParentName)
Set the ParentName value. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SubstructureResolver(java.lang.String newParentName, java.lang.String newIdName)
newParentName
- the parent attribute's namenewIdName
- the id attribute's nameMethod Detail |
---|
public java.lang.String getParentName()
getParentName
in interface RelationshipResolver
public void setParentName(java.lang.String newParentName)
newParentName
- The new ParentName value.public boolean related(WorldEntity entity1, WorldEntity entity2)
related
in interface RelationshipResolver
entity1
- a world entityentity2
- another world entity
public EntityGraph resolve()
resolve
in interface RelationshipResolver
public boolean analyze(EntityGraph graph, EntityVertex vertex)
analyze
in interface EntityGraphAnalyzer
graph
- the graph to be analyzedvertex
- the current vertex
public boolean identical(WorldEntity entity1, WorldEntity entity2)
identical
in interface Identity
entity1
- the first entityentity2
- the second entity
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |