RobotCore
1.0
WPILib port to raspberry Pi
Toggle main menu visibility
Loading...
Searching...
No Matches
SchedulerEvent.java
1
// Copyright (c) FIRST and other WPILib contributors.
2
// Open Source Software; you can modify and/or share it under the terms of
3
// the WPILib BSD license file in the root directory of this project.
4
5
package
org.wpilib.command3;
6
7
import
java.util.List;
8
import
java.util.function.Consumer;
9
import
org.wpilib.command3.Scheduler.ScheduleResult;
10
import
org.wpilib.system.RobotController;
11
19
public
sealed
interface
SchedulerEvent
{
27
long
timestampNanos
();
28
35
record
Scheduled
(
Command
command,
long
timestampNanos
) implements
SchedulerEvent
{}
36
43
record
Mounted
(
Command
command,
long
timestampNanos
) implements
SchedulerEvent
{}
44
51
record
Yielded
(
Command
command,
long
timestampNanos
) implements
SchedulerEvent
{}
52
59
record
Completed
(
Command
command,
long
timestampNanos
) implements
SchedulerEvent
{}
60
68
record
CompletedWithError
(
Command
command, Throwable error,
long
timestampNanos
)
69
implements
SchedulerEvent
{}
70
79
record
Canceled
(
Command
command,
long
timestampNanos
) implements
SchedulerEvent
{}
80
89
record
Interrupted
(
Command
command,
Command
interrupter,
long
timestampNanos
)
90
implements
SchedulerEvent
{}
91
99
record
ForkFailure
(
Command
command, List<ScheduleResult.Failure> failures,
long
timestampNanos
)
100
implements
SchedulerEvent
{}
101
}
org.wpilib.command3.Command
Definition
Command.java:98
org.wpilib.command3.SchedulerEvent
Definition
SchedulerEvent.java:19
org.wpilib.command3.SchedulerEvent.Scheduled
record Scheduled(Command command, long timestampNanos) implements SchedulerEvent
Definition
SchedulerEvent.java:35
org.wpilib.command3.SchedulerEvent.Completed
record Completed(Command command, long timestampNanos) implements SchedulerEvent
Definition
SchedulerEvent.java:59
org.wpilib.command3.SchedulerEvent.CompletedWithError
record CompletedWithError(Command command, Throwable error, long timestampNanos) implements SchedulerEvent
Definition
SchedulerEvent.java:68
org.wpilib.command3.SchedulerEvent.Canceled
record Canceled(Command command, long timestampNanos) implements SchedulerEvent
Definition
SchedulerEvent.java:79
org.wpilib.command3.SchedulerEvent.Yielded
record Yielded(Command command, long timestampNanos) implements SchedulerEvent
Definition
SchedulerEvent.java:51
org.wpilib.command3.SchedulerEvent.timestampNanos
long timestampNanos()
org.wpilib.command3.SchedulerEvent.Interrupted
record Interrupted(Command command, Command interrupter, long timestampNanos) implements SchedulerEvent
Definition
SchedulerEvent.java:89
org.wpilib.command3.SchedulerEvent.ForkFailure
record ForkFailure(Command command, List< ScheduleResult.Failure > failures, long timestampNanos) implements SchedulerEvent
Definition
SchedulerEvent.java:99
org.wpilib.command3.SchedulerEvent.Mounted
record Mounted(Command command, long timestampNanos) implements SchedulerEvent
Definition
SchedulerEvent.java:43
org
wpilib
command3
SchedulerEvent.java
Generated by
1.18.0