- java.lang.Object
-
- io.github.interacto.command.CommandImpl
-
- io.github.interacto.command.library.InstrumentCommand
-
- io.github.interacto.command.library.ActivateInstrument
-
- All Implemented Interfaces:
Command
public class ActivateInstrument extends InstrumentCommand
This action activates an instrument.- Author:
- Arnaud Blouin
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface io.github.interacto.command.Command
Command.CmdStatus, Command.RegistrationPolicy
-
-
Field Summary
-
Fields inherited from class io.github.interacto.command.library.InstrumentCommand
instrument
-
Fields inherited from class io.github.interacto.command.CommandImpl
status
-
-
Constructor Summary
Constructors Constructor Description ActivateInstrument()Creates the command.ActivateInstrument(Instrument<?> instrument)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voiddoCmdBody()This method contains the statements to execute the command.-
Methods inherited from class io.github.interacto.command.library.InstrumentCommand
canDo, flush, getInstrument, setInstrument
-
Methods inherited from class io.github.interacto.command.CommandImpl
cancel, createMemento, doIt, done, getRegistrationPolicy, getStatus, hadEffect, isDone, toString, unregisteredBy
-
-
-
-
Constructor Detail
-
ActivateInstrument
public ActivateInstrument()
Creates the command.
-
ActivateInstrument
public ActivateInstrument(Instrument<?> instrument)
-
-
Method Detail
-
doCmdBody
protected void doCmdBody()
Description copied from class:CommandImplThis method contains the statements to execute the command. This method is automatically called by DoIt and must not be called explicitly.- Specified by:
doCmdBodyin classCommandImpl
-
-