etomica.action
Class SimulationActionAdapter
java.lang.Object
etomica.action.SimulationActionAdapter
- All Implemented Interfaces:
- IAction, SimulationAction, Serializable
- Direct Known Subclasses:
- SimulationRestart
public abstract class SimulationActionAdapter
- extends Object
- implements SimulationAction, Serializable
Convenience class used to define a SimulationAction. Implements all methods
of SimulationAction interface, except for actionPerformed.
- See Also:
- Serialized Form
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
simulation
protected ISimulation simulation
space
protected ISpace space
SimulationActionAdapter
public SimulationActionAdapter()
getSimulation
public ISimulation getSimulation()
- Specified by:
getSimulation in interface SimulationAction
- Returns:
- Returns the simulation on which this action will be performed.
setSimulation
protected void setSimulation(ISimulation simulation,
ISpace _space)
- Parameters:
simulation - The simulation on which this action will be performed.