Package edu.wpi.first.wpilibj2.command
Class CommandGroupBase
java.lang.Object
edu.wpi.first.wpilibj2.command.CommandBase
edu.wpi.first.wpilibj2.command.CommandGroupBase
- Direct Known Subclasses:
ParallelCommandGroup
,ParallelDeadlineGroup
,ParallelRaceGroup
,SequentialCommandGroup
@Deprecated(forRemoval=true) public abstract class CommandGroupBase extends CommandBase
Deprecated, for removal: This API element is subject to removal in a future version.
This class is an empty abstraction. Inherit directly from CommandBase/Command.
A base for CommandGroups.
This class is provided by the NewCommands VendorDep
-
Nested Class Summary
Nested classes/interfaces inherited from interface edu.wpi.first.wpilibj2.command.Command
Command.InterruptionBehavior
-
Field Summary
-
Constructor Summary
Constructors Constructor Description CommandGroupBase()
Deprecated, for removal: This API element is subject to removal in a future version. -
Method Summary
Modifier and Type Method Description abstract void
addCommands(Command... commands)
Deprecated, for removal: This API element is subject to removal in a future version.Adds the given commands to the command group.static ParallelDeadlineGroup
deadline(Command deadline, Command... commands)
Deprecated.Replace withCommands.deadline(Command, Command...)
static ParallelCommandGroup
parallel(Command... commands)
Deprecated.Replace withCommands.parallel(Command...)
static ParallelRaceGroup
race(Command... commands)
Deprecated.Replace withCommands.race(Command...)
static SequentialCommandGroup
sequence(Command... commands)
Deprecated.Replace withCommands.sequence(Command...)
Methods inherited from class edu.wpi.first.wpilibj2.command.CommandBase
addRequirements, getName, getRequirements, getSubsystem, initSendable, setName, setSubsystem
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface edu.wpi.first.wpilibj2.command.Command
alongWith, andThen, andThen, asProxy, beforeStarting, beforeStarting, cancel, deadlineWith, end, execute, finallyDo, getInterruptionBehavior, handleInterrupt, hasRequirement, ignoringDisable, initialize, isFinished, isScheduled, perpetually, raceWith, repeatedly, runsWhenDisabled, schedule, unless, until, withInterrupt, withInterruptBehavior, withName, withTimeout
-
Constructor Details
-
CommandGroupBase
public CommandGroupBase()Deprecated, for removal: This API element is subject to removal in a future version.
-
-
Method Details
-
addCommands
Deprecated, for removal: This API element is subject to removal in a future version.Adds the given commands to the command group.- Parameters:
commands
- The commands to add.
-
sequence
Deprecated.Replace withCommands.sequence(Command...)
Factory method forSequentialCommandGroup
, included for brevity/convenience.- Parameters:
commands
- the commands to include- Returns:
- the command group
-
parallel
Deprecated.Replace withCommands.parallel(Command...)
Factory method forParallelCommandGroup
, included for brevity/convenience.- Parameters:
commands
- the commands to include- Returns:
- the command group
-
race
Deprecated.Replace withCommands.race(Command...)
Factory method forParallelRaceGroup
, included for brevity/convenience.- Parameters:
commands
- the commands to include- Returns:
- the command group
-
deadline
Deprecated.Replace withCommands.deadline(Command, Command...)
Factory method forParallelDeadlineGroup
, included for brevity/convenience.- Parameters:
deadline
- the deadline commandcommands
- the commands to include- Returns:
- the command group
-