relations
Class CardEWRelation

java.lang.Object
  extended by relations.CardEWRelation
All Implemented Interfaces:
RelationValue

public class CardEWRelation
extends java.lang.Object
implements RelationValue

Class for determining the cardinal direction between two objects with a granularity of east and west directions.


Constructor Summary
CardEWRelation()
           
 
Method Summary
 java.lang.String getValue(java.lang.String relationType, OntologyObject object1, OntologyObject object2)
          Gets the cardinal direction between two objects.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CardEWRelation

public CardEWRelation()
Method Detail

getValue

public java.lang.String getValue(java.lang.String relationType,
                                 OntologyObject object1,
                                 OntologyObject object2)
Gets the cardinal direction between two objects. The direction is calculated from the centroids of the objects.

Specified by:
getValue in interface RelationValue
Parameters:
relationType - - the class name of the relation
object1 - - the first related object
object2 - - the second related object
Returns:
- the value of the relation