model
Class SpatialRelation

java.lang.Object
  extended by model.OntologyObject
      extended by model.SpatialRelation

public class SpatialRelation
extends OntologyObject

A spatial representation represents a relation between two physical objects.


Field Summary
private  OntologyObject object1
          the first related object
private  OntologyObject object2
          the second related object
 
Constructor Summary
SpatialRelation(long ID, java.util.ArrayList<java.lang.String> hierarchy, java.util.HashSet<Attribute> attributes)
          Constructs an spatial relation.
 
Method Summary
 OntologyObject getObject1()
          Gets the first related object.
 OntologyObject getObject2()
          Gets the second related object.
 void setObject1(OntologyObject object)
          Sets the first related object.
 void setObject2(OntologyObject object)
          Sets the second related object.
 
Methods inherited from class model.OntologyObject
getAttribute, getAttributes, getAttributeValue, getDepth, getGraphics, getHistory, getID, getType, instanceOf, isMoveable, setAttribute, setAttributes, setGraphics, setHierarchy, setHistory, setSelected
 
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 related object


object2

private OntologyObject object2
the second related object

Constructor Detail

SpatialRelation

public SpatialRelation(long ID,
                       java.util.ArrayList<java.lang.String> hierarchy,
                       java.util.HashSet<Attribute> attributes)
Constructs an spatial relation.

Parameters:
ID - - a unique identifier
hierarchy - - the inheritance hierarchy of the object
attributes - - the object properties
Method Detail

setObject1

public void setObject1(OntologyObject object)
Sets the first related object.


getObject1

public OntologyObject getObject1()
Gets the first related object.


setObject2

public void setObject2(OntologyObject object)
Sets the second related object.


getObject2

public OntologyObject getObject2()
Gets the second related object.