relations
Class Qldr5Relation

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

public class Qldr5Relation
extends java.lang.Object
implements RelationValue

Class for determining the value of Qldr5 relations.


Field Summary
static double CLOSE5
          objects within 100 cm are considered close
static double FAR5
          objects further than 500 cm are considered far
static double MIDDLE5
           
static double VERY_FAR5
          objects further than 500 cm are considered far
 
Constructor Summary
Qldr5Relation()
           
 
Method Summary
 java.lang.String getValue(java.lang.String relationType, OntologyObject object1, OntologyObject object2)
          Gets the qualitative distance between two objects.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CLOSE5

public static double CLOSE5
objects within 100 cm are considered close


MIDDLE5

public static double MIDDLE5

FAR5

public static double FAR5
objects further than 500 cm are considered far


VERY_FAR5

public static double VERY_FAR5
objects further than 500 cm are considered far

Constructor Detail

Qldr5Relation

public Qldr5Relation()
Method Detail

getValue

public java.lang.String getValue(java.lang.String relationType,
                                 OntologyObject object1,
                                 OntologyObject object2)
Gets the qualitative distance between two objects. The distance is the smallest distance between 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