|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectmodel.TopoEntity
public class TopoEntity
Class for storing topological relations between different entities.
Nested Class Summary | |
---|---|
class |
TopoEntity.TopoFact
Class for storing relations added to this entity. |
Field Summary | |
---|---|
private java.util.ArrayList<TopoEntity.TopoFact> |
facts
a list of fasts added to this entity |
private java.lang.String |
name
the entity name |
private java.util.HashMap<java.lang.String,java.util.ArrayList<TopoEntity>> |
relations
a mapping of the RCC values to the related entities |
private TopoSystem.RCCSystem |
topoSystem
the topology system of this entity |
Constructor Summary | |
---|---|
TopoEntity(java.lang.String name,
TopoSystem.RCCSystem system)
Constructs a topo entity with the specified topo system. |
Method Summary | |
---|---|
void |
addTopologicalRelation(java.lang.String topoName,
TopoEntity entity)
Adds a topological relation to this entity. |
java.util.ArrayList<TopoEntity.TopoFact> |
getFacts()
Gets the factboard for this entity. |
java.lang.String |
getName()
Gets the entity name. |
java.util.HashMap<java.lang.String,java.util.ArrayList<TopoEntity>> |
getRelations()
Gets the mapping of topological values to related entities. |
java.lang.String |
getTopoRelation(TopoEntity entity)
Returns the topological relation to the specified entity. |
TopoSystem.RCCSystem |
getTopoSystem()
Gets the topo system. |
boolean |
relatedTo(TopoEntity entity)
Returns true if the specified entity is related to this entity. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private java.lang.String name
private TopoSystem.RCCSystem topoSystem
private java.util.HashMap<java.lang.String,java.util.ArrayList<TopoEntity>> relations
private java.util.ArrayList<TopoEntity.TopoFact> facts
Constructor Detail |
---|
public TopoEntity(java.lang.String name, TopoSystem.RCCSystem system)
system
- - the topo systemMethod Detail |
---|
public void addTopologicalRelation(java.lang.String topoName, TopoEntity entity)
topoName
- - the topological nameentity
- - the related entitypublic boolean relatedTo(TopoEntity entity)
public java.lang.String getTopoRelation(TopoEntity entity)
entity
- - the related entity
public java.util.HashMap<java.lang.String,java.util.ArrayList<TopoEntity>> getRelations()
public TopoSystem.RCCSystem getTopoSystem()
public java.lang.String getName()
public java.util.ArrayList<TopoEntity.TopoFact> getFacts()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |