jasi.sim.basic.element.relation
Class BinaryRelationHandler

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
All Implemented Interfaces:
Element, SimObject, ExtendedComparable<Element>, SimValue, java.io.Serializable, java.lang.Comparable<Element>
Direct Known Subclasses:
BinaryRelation

public abstract class BinaryRelationHandler
extends AbstractElementBean

Handler for a binary relation of simulation elements.

See Also:
Serialized Form

Field Summary
 
Fields inherited from interface jasi.sim.basic.element.Element
COMPARATOR
 
Constructor Summary
protected BinaryRelationHandler()
          Constructor of BinaryRelationHandler.
protected BinaryRelationHandler(Id id)
          Construct of BinaryRelationHandler.
 
Method Summary
 Id getFirst()
          Get the first element ID.
 Id getSecond()
          Get the second element ID.
 void setFirst(Id first)
          Set the first element ID.
 void setSecond(Id second)
          Set the second element ID.
 java.lang.String toString()
          Returns a string representation of this object.
 
Methods inherited from class jasi.sim.basic.element.AbstractElementBean
acceptDelete, compareTo, delete, 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

BinaryRelationHandler

protected BinaryRelationHandler()
Constructor of BinaryRelationHandler.


BinaryRelationHandler

protected BinaryRelationHandler(Id id)
Construct of BinaryRelationHandler.

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

setFirst

public final void setFirst(Id first)
Set the first element ID.

Parameters:
first - The first element ID.

getFirst

public final Id getFirst()
Get the first element ID.

Returns:
The first element ID.

setSecond

public final void setSecond(Id second)
Set the second element ID.

Parameters:
second - The second element ID.

getSecond

public final Id getSecond()
Get the second element ID.

Returns:
The second element ID.

toString

public java.lang.String toString()
Returns a string representation of this object.

Overrides:
toString in class AbstractElementBean
Returns:
The string.