|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectmodel.Constraint
public class Constraint
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 |
---|
private OntologyObject object1
private OntologyObject object2
private java.lang.String relationName
private java.lang.String value
boolean satisfied
private java.lang.String mapValue
Constructor Detail |
---|
public Constraint(OntologyObject object1, OntologyObject object2, java.lang.String relation, java.lang.String value)
object1
- - the first objectobject2
- - the second objectrelation
- - the spatial relation namevalue
- - the constraint valueMethod Detail |
---|
public java.lang.String getMapValue()
public void setMapValue(java.lang.String val)
public OntologyObject getObject1()
public OntologyObject getObject2()
public java.lang.String getRelationName()
public java.lang.String getValue()
public boolean isSatified()
public void setSatisfied(boolean satisfied)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |