org.malai.action.library
Class InstrumentAction
java.lang.Object
org.malai.action.Action
org.malai.action.library.InstrumentAction
- Direct Known Subclasses:
- ActivateInstrument
public abstract class InstrumentAction
- extends Action
This action manipulates an instrument.
This file is part of Malai.
Copyright (c) 2009-2012 Arnaud BLOUIN
Malai is free software; you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free Software
Foundation; either version 2 of the License, or (at your option) any later version.
Malai is distributed without any warranty; without even the implied
warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
General Public License for more details.
- Since:
- 0.2
- Author:
- Arnaud Blouin
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
instrument
protected Instrument instrument
- The manipulated instrument.
InstrumentAction
public InstrumentAction()
- Creates the action.
- Since:
- 0.2
flush
public void flush()
- Description copied from class:
Action
- When an action is no more useful it can be flushes to release the used data.
Should be overridden.
- Overrides:
flush
in class Action
canDo
public boolean canDo()
- Specified by:
canDo
in class Action
- Returns:
- True if the action can be executed.
getInstrument
public Instrument getInstrument()
- Returns:
- The manipulated instrument.
- Since:
- 0.2
setInstrument
public void setInstrument(Instrument instrument)
- Sets the manipulated instrument.
- Parameters:
instrument
- The manipulated instrument.- Since:
- 0.2