model
Class Constraint

java.lang.Object
  extended by model.Constraint

public class Constraint
extends java.lang.Object

Class for storing a spatial constraint.


Field Summary
private  java.lang.String mapValue
          the value of the relation in the map
private  OntologyObject object1
          the first object
private  OntologyObject object2
          the second object
private  java.lang.String relationName
          the spatial-relation name
(package private)  boolean satisfied
          specifies if the constraint is met
private  java.lang.String value
          the constaint value
 
Constructor Summary
Constraint(OntologyObject object1, OntologyObject object2, java.lang.String relation, java.lang.String value)
          Constructs a constraint.
 
Method Summary
 java.lang.String getMapValue()
          Gets the value of the relation in the map.
 OntologyObject getObject1()
          Gets the first object.
 OntologyObject getObject2()
          Gets the second object.
 java.lang.String getRelationName()
          Gets the spatial relation name.
 java.lang.String getValue()
          Gets the constraint value.
 boolean isSatified()
          Returns true if the constraint is satisfied, otherwise false.
 void setMapValue(java.lang.String val)
          Sets the value of the relation in the map.
 void setSatisfied(boolean satisfied)
          Sets if the constraint is satisfied.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

object1

private OntologyObject object1
the first object


object2

private OntologyObject object2
the second object


relationName

private java.lang.String relationName
the spatial-relation name


value

private java.lang.String value
the constaint value


satisfied

boolean satisfied
specifies if the constraint is met


mapValue

private java.lang.String mapValue
the value of the relation in the map

Constructor Detail

Constraint

public Constraint(OntologyObject object1,
                  OntologyObject object2,
                  java.lang.String relation,
                  java.lang.String value)
Constructs a constraint.

Parameters:
object1 - - the first object
object2 - - the second object
relation - - the spatial relation name
value - - the constraint value
Method Detail

getMapValue

public java.lang.String getMapValue()
Gets the value of the relation in the map.


setMapValue

public void setMapValue(java.lang.String val)
Sets the value of the relation in the map.


getObject1

public OntologyObject getObject1()
Gets the first object.


getObject2

public OntologyObject getObject2()
Gets the second object.


getRelationName

public java.lang.String getRelationName()
Gets the spatial relation name.


getValue

public java.lang.String getValue()
Gets the constraint value.


isSatified

public boolean isSatified()
Returns true if the constraint is satisfied, otherwise false.


setSatisfied

public void setSatisfied(boolean satisfied)
Sets if the constraint is satisfied.