|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjasi.sim.basic.value.AbstractSimValueType
jasi.sim.basic.value.AbstractComparableObject<Element>
jasi.sim.basic.element.AbstractElementBean
jasi.simple.defi.SimpleMovingElementHandler
jasi.simple.defi.SimpleMovingElement
public class SimpleMovingElement
An example for a simple element.
| Field Summary |
|---|
| Fields inherited from interface jasi.sim.basic.element.Element |
|---|
COMPARATOR |
| Constructor Summary | |
|---|---|
SimpleMovingElement()
Constructor for SimpleMovingElement. |
|
SimpleMovingElement(Id id)
Constructor for SimpleMovingElement for a given ID. |
|
| Method Summary | |
|---|---|
Element |
delete()
Delete this simple element. |
boolean |
hasTrack()
Check, if element has a following track. |
Move |
location(Time time)
Retrieve location of this simulation element at that simulation time. |
void |
move(SpaceVec[] track,
Speed speed)
Start movement for this element. |
boolean |
moving()
Request, if the actual movement has been started. |
void |
start()
Start the movement. |
void |
stop()
Stop the movement. |
Time |
timeToNextLocation()
Request time for the next update of movement. |
void |
updateMove()
Update the actual movement. |
| Methods inherited from class jasi.simple.defi.SimpleMovingElementHandler |
|---|
getMove, getSpeed, getTrack, getTrack, setMove, setSpeed, setTrack, setTrack, 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 |
| Methods inherited from interface jasi.sim.basic.element.Element |
|---|
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 |
|---|
public SimpleMovingElement()
public SimpleMovingElement(Id id)
id - The ID.| Method Detail |
|---|
public Element delete()
delete in interface Elementdelete in class AbstractElementBeanAbstractElementBean.delete()public Move location(Time time)
time - That simulation time.
public Time timeToNextLocation()
public void updateMove()
public void move(SpaceVec[] track,
Speed speed)
track - The track for the movement.speed - The speed of movement.public void start()
public void stop()
public boolean moving()
public boolean hasTrack()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||