// Copyright (c) FIRST and other WPILib contributors. // Open Source Software; you can modify and/or share it under the terms of // the WPILib BSD license file in the root directory of this project. package org.wpilib.command3; import static org.wpilib.util.ErrorMessages.requireNonNullParam; import java.util.ArrayList; import java.util.HashSet; import java.util.List; import java.util.Set; /** * A sequence of commands that run one after another. Each successive command only starts after its * predecessor completes execution. The priority of a sequence is equal to the highest priority of * any of its commands. If all commands in the sequence are able to run while the robot is disabled, * then the sequence itself will be allowed to run while the robot is disabled. * *
The sequence will own all mechanisms required by all commands in the sequence for the
* entire duration of the sequence. This means that a mechanism owned by one command in the
* sequence, but not by a later one, will be uncommanded while that later command executes.
*/
public final class SequentialGroup implements Command {
private final String m_name;
private final List