jasi.simple.defi
Class SimpleMovingElementHandler

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

public abstract class SimpleMovingElementHandler
extends AbstractElementBean
implements Movable

The container of a simple moving element's attributes.

See Also:
Serialized Form

Field Summary
 
Fields inherited from interface jasi.sim.basic.element.Element
COMPARATOR
 
Constructor Summary
protected SimpleMovingElementHandler()
          Construct container of a simple element's attributes.
protected SimpleMovingElementHandler(Id id)
          Construct container of a simple element's attributes.
 
Method Summary
 LinearMove getMove()
          Get the move attribute.
 Speed getSpeed()
          Get the speed attribute.
 SpaceVec[] getTrack()
          Get the track attribute.
 SpaceVec getTrack(int index)
          Get an indexed item of this element's track.
 void setMove(LinearMove move)
          Set the move attribute.
 void setSpeed(Speed speed)
          Set the speed attribute.
 void setTrack(int index, SpaceVec item)
          Set an indexed item of this element's track.
 void setTrack(SpaceVec[] track)
          Set the track attribute.
 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
 
Methods inherited from interface jasi.sim.user.model.move.Movable
moving, start, stop, timeToNextLocation, updateMove
 
Methods inherited from interface jasi.sim.basic.element.Element
delete, getKey, isDeleted, registered, setKey
 
Methods inherited from interface java.lang.Comparable
compareTo
 
Methods inherited from interface jasi.sim.basic.id.SimObject
getId, setId
 

Constructor Detail

SimpleMovingElementHandler

protected SimpleMovingElementHandler()
Construct container of a simple element's attributes.


SimpleMovingElementHandler

protected SimpleMovingElementHandler(Id id)
Construct container of a simple element's attributes.

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

toString

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

Overrides:
toString in class AbstractElementBean
Returns:
The string.

setMove

public final void setMove(LinearMove move)
Set the move attribute.

Parameters:
move - The new value of the attribute.

getMove

public final LinearMove getMove()
Get the move attribute.

Returns:
Its value.

setSpeed

public final void setSpeed(Speed speed)
Set the speed attribute.

Parameters:
speed - The new value of the attribute.

getSpeed

public final Speed getSpeed()
Get the speed attribute.

Returns:
Its value.

getTrack

public final SpaceVec getTrack(int index)
Get an indexed item of this element's track.

Parameters:
index - The index.
Returns:
The item.

setTrack

public final void setTrack(int index,
                           SpaceVec item)
Set an indexed item of this element's track.

Parameters:
index - The index.
item - The item.

getTrack

public final SpaceVec[] getTrack()
Get the track attribute.

Returns:
Its value.

setTrack

public final void setTrack(SpaceVec[] track)
Set the track attribute.

Parameters:
track - The new value of the attribute.