public abstract class AutoEvent
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
java.util.ArrayList<AutoEvent> |
childEvents |
boolean |
isRunning
True when this event is active, false if not.
|
long |
localUpdateCount
Total number of times the update method has been called.
|
Constructor and Description |
---|
AutoEvent() |
Modifier and Type | Method and Description |
---|---|
void |
addChildEvent(AutoEvent event_in)
Assign a child event to this event.
|
void |
forceStopAllChildren() |
abstract boolean |
isDone()
Determine if this event has completed.
|
abstract boolean |
isTriggered()
Determine if this event needs updating.
|
abstract void |
userForceStop()
Perform all actions needed to restore robot to a safe state if the event is prematurely
stopped.
|
abstract void |
userStart()
perform all actions needed at the start of the event
|
abstract void |
userUpdate()
Perform all actions needed during periodic update for this event
|
public long localUpdateCount
public boolean isRunning
public java.util.ArrayList<AutoEvent> childEvents
public void addChildEvent(AutoEvent event_in)
event_in
- The new event to addpublic void forceStopAllChildren()
public abstract void userStart()
public abstract void userUpdate()
public abstract void userForceStop()
public abstract boolean isTriggered()
public abstract boolean isDone()