vitro
Interface Action

All Known Implementing Classes:
CompositeAction, CreateAction, CreateAction, CreateAction, CreateEdgeAction, CreateNodeAction, DestroyAction, DestroyAction, DestroyAction, DestroyEdgeAction, DestroyNodeAction, ForceAction, GraphAction, GridAction, MoveAction, MoveAction, PlaneAction, VelocityAction

public interface Action

Actions encapsulate atomic mutations of a Model. Once created, the behavior of an Action should be deterministic. That is, if an action's outcome is decided randomly, this decision should be made and stored in the constructor.


Method Summary
 void apply()
          Apply this Action's change to a supplied Model or Models.
 void undo()
          Revert any changes made during apply().
 

Method Detail

apply

void apply()
Apply this Action's change to a supplied Model or Models.


undo

void undo()
Revert any changes made during apply().