|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.speckled.specksim.SimulationEvent
public abstract class SimulationEvent
An event in the simulation. Any action that takes place at a specific time in the simulation must happen in an event
| Field Summary | |
|---|---|
Speck |
owner
The owner of this event. |
| Constructor Summary | |
|---|---|
SimulationEvent(Speck owner)
Constructs a new Event. |
|
| Method Summary | |
|---|---|
abstract void |
doEvent()
Should be overridden with code that runs your event. |
float |
eventTime()
Gets the time at which the event should happen. |
void |
setEventTime(float time)
Sets the time at which this event should execute |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public final Speck owner
| Constructor Detail |
|---|
public SimulationEvent(Speck owner)
owner - The owner of this event. Can be null.| Method Detail |
|---|
public float eventTime()
public void setEventTime(float time)
time - The target event timepublic abstract void doEvent()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||