Package com.ctre.phoenix.schedulers
Class ConcurrentScheduler
java.lang.Object
com.ctre.phoenix.schedulers.ConcurrentScheduler
- All Implemented Interfaces:
ILoopable
Scheduler that wil run its ILoopables in concurrency
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Add ILoopable to schedulervoid
Add ILoopable to scheduleboolean
isDone()
void
onLoop()
Process all ILoopablesvoid
onStart()
Start all ILoopablesvoid
onStop()
Stop all ILoopablesvoid
process()
Process every ILoopable Call this every loopvoid
Remove all ILoopables from schedulervoid
Start an ILoopablevoid
startAll()
Start all ILoopablesvoid
Stop an ILoopablevoid
stopAll()
Stop all ILoopables
-
Constructor Details
-
ConcurrentScheduler
public ConcurrentScheduler()
-
-
Method Details
-
add
Add ILoopable to schedule- Parameters:
aLoop
- ILoopable to add to scheduleenable
- Whether to enable ILoopable
-
add
Add ILoopable to scheduler- Parameters:
aLoop
- ILoopable to add
-
removeAll
Remove all ILoopables from scheduler -
start
Start an ILoopable- Parameters:
toStart
- ILoopable to start
-
stop
Stop an ILoopable- Parameters:
toStop
- ILoopable to stop
-
startAll
Start all ILoopables -
stopAll
Stop all ILoopables -
process
Process every ILoopable Call this every loop -
onStart
Start all ILoopables -
onLoop
Process all ILoopables -
onStop
Stop all ILoopables -
isDone
-