|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectmodel.OrientationEntity
public class OrientationEntity
Class for storing qualitative orientation relations between different entities.
Nested Class Summary | |
---|---|
class |
OrientationEntity.OrientationFact
Class for storing relations added to this entity. |
Field Summary | |
---|---|
private java.util.ArrayList<OrientationEntity.OrientationFact> |
facts
a list of fasts added to this entity |
private java.lang.String |
name
the entity name |
private OrientationSystem.OrienSystem |
orientationSystem
the orientation system of this entity |
private java.util.HashMap<java.lang.String,java.util.ArrayList<OrientationEntity>> |
relations
a mapping of the orientation values to the entities at each value |
Constructor Summary | |
---|---|
OrientationEntity(java.lang.String name,
OrientationSystem.OrienSystem system)
Constructs an orientation entity with the specified orientation system. |
Method Summary | |
---|---|
void |
addOrientationRelation(java.lang.String orientationName,
OrientationEntity entity)
Adds an orientation relation to this entity. |
java.util.ArrayList<OrientationEntity.OrientationFact> |
getFacts()
Gets the factboard for this entity. |
java.lang.String |
getName()
Gets the entity name. |
java.lang.String |
getOrientation(OrientationEntity entity)
Returns the orientation relation to the specified entity. |
OrientationSystem.OrienSystem |
getOrientationSystem()
Gets the orientation system. |
java.util.HashMap<java.lang.String,java.util.ArrayList<OrientationEntity>> |
getRelations()
Gets the mapping of orientations to related entities. |
boolean |
relatedTo(OrientationEntity 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 OrientationSystem.OrienSystem orientationSystem
private java.util.HashMap<java.lang.String,java.util.ArrayList<OrientationEntity>> relations
private java.util.ArrayList<OrientationEntity.OrientationFact> facts
Constructor Detail |
---|
public OrientationEntity(java.lang.String name, OrientationSystem.OrienSystem system)
system
- - the distance systemMethod Detail |
---|
public void addOrientationRelation(java.lang.String orientationName, OrientationEntity entity)
orientationName
- - the orientation nameentity
- - the related entitypublic boolean relatedTo(OrientationEntity entity)
public java.lang.String getOrientation(OrientationEntity entity)
entity
- - the related entity
public java.util.HashMap<java.lang.String,java.util.ArrayList<OrientationEntity>> getRelations()
public OrientationSystem.OrienSystem getOrientationSystem()
public java.lang.String getName()
public java.util.ArrayList<OrientationEntity.OrientationFact> getFacts()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |