Template Class ConcurrentTemplateCommand

Inheritance Relationships

Base Type

Class Documentation

template<size_t COMMANDS, bool RACE>
class ConcurrentTemplateCommand : public tap::control::Command

A command that runs multiple commands in parallel. Waits for all passed in commands to be ready before being ready itself. When RACE is false, it continues executing until all passed in commands have finished and then the concurrent command finishes. When RACE is true, only one passed in command needs to finish for the concurrent command to finish.

Public Functions

inline ConcurrentTemplateCommand(std::array<Command*, COMMANDS> commands, const char *name)
inline virtual const char *getName() const override
inline virtual bool isReady() override
inline virtual void initialize() override
inline virtual void execute() override
inline virtual void end(bool interrupted) override
inline virtual bool isFinished() const override