jasi.sim.basic.element.relation
Class BinaryRelation

java.lang.Object
  extended by jasi.sim.basic.value.AbstractSimValueType
      extended by jasi.sim.basic.value.AbstractComparableObject<Element>
          extended by jasi.sim.basic.element.AbstractElementBean
              extended by jasi.sim.basic.element.relation.BinaryRelationHandler
                  extended by jasi.sim.basic.element.relation.BinaryRelation
All Implemented Interfaces:
Element, SimObject, ExtendedComparable<Element>, SimValue, java.io.Serializable, java.lang.Comparable<Element>

public class BinaryRelation
extends BinaryRelationHandler

Binary relations. This kind of relation can contain two elements at maximum.

See Also:
Serialized Form

Field Summary
 
Fields inherited from interface jasi.sim.basic.element.Element
COMPARATOR
 
Constructor Summary
BinaryRelation()
          Constructor of BinaryRelation.
BinaryRelation(Id id)
          Construct of BinaryRelation.
 
Method Summary
 Element delete()
          Delete this binary relation element.
 
Methods inherited from class jasi.sim.basic.element.relation.BinaryRelationHandler
getFirst, getSecond, setFirst, setSecond, toString
 
Methods inherited from class jasi.sim.basic.element.AbstractElementBean
acceptDelete, compareTo, elements, equals, get, getId, getKey, hashCode, isDeleted, registered, set, setId, setKey
 
Methods inherited from class jasi.sim.basic.value.AbstractComparableObject
isEQ, isGE, isGT, isLE, isLT, isNE
 
Methods inherited from class jasi.sim.basic.value.AbstractSimValueType
getContent
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BinaryRelation

public BinaryRelation()
Constructor of BinaryRelation.


BinaryRelation

public BinaryRelation(Id id)
Construct of BinaryRelation.

Parameters:
id - The simulation element's ID.
Method Detail

delete

public Element delete()
Delete this binary relation element.

Specified by:
delete in interface Element
Overrides:
delete in class AbstractElementBean
Returns:
The deleted element.
See Also:
AbstractElementBean.delete()