Class InstrumentCommand

    • Field Detail

      • instrument

        protected final Instrument<?> instrument
        The manipulated instrument.
    • Constructor Detail

      • InstrumentCommand

        public InstrumentCommand​(Instrument<?> instrument)
        Creates the command.
        Parameters:
        instrument - The instrument to handle.
    • Method Detail

      • canDo

        public boolean canDo()
        Description copied from interface: Command
        Checks whether the command can be executed.
        Specified by:
        canDo in interface Command
        Overrides:
        canDo in class CommandImpl
        Returns:
        True if the command can be executed.