Package lib.commands
Class CreateOnInitialize
java.lang.Object
edu.wpi.first.wpilibj2.command.Command
edu.wpi.first.wpilibj2.command.DeferredCommand
lib.commands.CreateOnInitialize
- All Implemented Interfaces:
edu.wpi.first.util.sendable.Sendable
public class CreateOnInitialize
extends edu.wpi.first.wpilibj2.command.DeferredCommand
-
Nested Class Summary
Nested classes/interfaces inherited from class edu.wpi.first.wpilibj2.command.Command
edu.wpi.first.wpilibj2.command.Command.InterruptionBehavior -
Constructor Summary
ConstructorsConstructorDescriptionCreateOnInitialize(Supplier<edu.wpi.first.wpilibj2.command.Command> supplier) Wrapper forDeferredCommandthat immediately gets a command from the supplier and uses it to determine this command's requirements. -
Method Summary
Methods inherited from class edu.wpi.first.wpilibj2.command.DeferredCommand
end, execute, initialize, initSendable, isFinishedMethods inherited from class edu.wpi.first.wpilibj2.command.Command
addRequirements, addRequirements, alongWith, andThen, andThen, asProxy, beforeStarting, beforeStarting, cancel, deadlineFor, deadlineWith, finallyDo, finallyDo, getInterruptionBehavior, getName, getRequirements, getSubsystem, handleInterrupt, hasRequirement, ignoringDisable, isScheduled, onlyIf, onlyWhile, raceWith, repeatedly, runsWhenDisabled, schedule, setName, setSubsystem, unless, until, withDeadline, withInterruptBehavior, withName, withTimeout, withTimeout
-
Constructor Details
-
CreateOnInitialize
Wrapper forDeferredCommandthat immediately gets a command from the supplier and uses it to determine this command's requirements. If you do not need this behavior, you can useDeferredCommanddirectly instead and manually supply the necessary requirements.- Parameters:
supplier- The command supplier
-