|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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 |
---|
void apply()
void undo()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |