|
RobotCore 1.0
WPILib port to raspberry Pi
|
Public Member Functions | |
| long | timestampNanos () |
| record | Scheduled (Command command, long timestampNanos) implements SchedulerEvent |
| record | Mounted (Command command, long timestampNanos) implements SchedulerEvent |
| record | Yielded (Command command, long timestampNanos) implements SchedulerEvent |
| record | Completed (Command command, long timestampNanos) implements SchedulerEvent |
| record | CompletedWithError (Command command, Throwable error, long timestampNanos) implements SchedulerEvent |
| record | Canceled (Command command, long timestampNanos) implements SchedulerEvent |
| record | Interrupted (Command command, Command interrupter, long timestampNanos) implements SchedulerEvent |
| record | ForkFailure (Command command, List< ScheduleResult.Failure > failures, long timestampNanos) implements SchedulerEvent |
An event that occurs during scheduler processing. This can range from a command
being scheduled by a trigger or manual call to Scheduler#schedule(Command) to a command being interrupted by another. Event listeners can be registered with a scheduler via Scheduler#addEventListener(Consumer). All events have a timestamp to indicate when the event occurred.
Definition at line 19 of file SchedulerEvent.java.
| record org.wpilib.command3.SchedulerEvent.Canceled | ( | Command | command, |
| long | timestampNanos ) |
An event marking when a command was canceled. If the command was canceled because it was interrupted by another command, an Interrupted will be emitted immediately prior to the cancellation event.
| command | The command that was canceled |
| timestampNanos | When the command was canceled |
Definition at line 79 of file SchedulerEvent.java.
| record org.wpilib.command3.SchedulerEvent.Completed | ( | Command | command, |
| long | timestampNanos ) |
An event marking when a command completed naturally.
| command | The command that completed |
| timestampNanos | When the command completed |
Definition at line 59 of file SchedulerEvent.java.
| record org.wpilib.command3.SchedulerEvent.CompletedWithError | ( | Command | command, |
| Throwable | error, | ||
| long | timestampNanos ) |
An event marking when a command threw or encountered an unhanded exception.
| command | The command that encountered the error |
| error | The unhandled error |
| timestampNanos | When the error occurred |
Definition at line 68 of file SchedulerEvent.java.
| record org.wpilib.command3.SchedulerEvent.ForkFailure | ( | Command | command, |
| List< ScheduleResult.Failure > | failures, | ||
| long | timestampNanos ) |
An event marking when a child command could not be forked.
| command | The command attempting to fork the child commands |
| failures | The reasons the child commands could not be forked |
| timestampNanos | When the child commands were attempted to be forked |
Definition at line 99 of file SchedulerEvent.java.
| record org.wpilib.command3.SchedulerEvent.Interrupted | ( | Command | command, |
| Command | interrupter, | ||
| long | timestampNanos ) |
An event marking when a command was interrupted by another. Typically followed by an Canceled event.
| command | The command that was interrupted |
| interrupter | The interrupting command |
| timestampNanos | When the command was interrupted |
Definition at line 89 of file SchedulerEvent.java.
| record org.wpilib.command3.SchedulerEvent.Mounted | ( | Command | command, |
| long | timestampNanos ) |
An event marking when a command starts running.
| command | The command that started |
| timestampNanos | When the command started |
Definition at line 43 of file SchedulerEvent.java.
| record org.wpilib.command3.SchedulerEvent.Scheduled | ( | Command | command, |
| long | timestampNanos ) |
An event marking when a command is scheduled in Scheduler#schedule(Command).
| command | The command that was scheduled |
| timestampNanos | When the command was scheduled |
Definition at line 35 of file SchedulerEvent.java.
| long org.wpilib.command3.SchedulerEvent.timestampNanos | ( | ) |
The timestamp for when the event occurred. Measured in nanoseconds since some arbitrary start time.
| record org.wpilib.command3.SchedulerEvent.Yielded | ( | Command | command, |
| long | timestampNanos ) |
An event marking when a command yielded control with Coroutine#yield().
| command | The command that yielded |
| timestampNanos | When the command yielded |
Definition at line 51 of file SchedulerEvent.java.