A reversible user action (the Command pattern). execute performs the change
and records forward event(s); undo performs the exact inverse and records
the inverse event(s). Redo is simply execute again — commands capture any
generated identity on first run so re-execution is deterministic.
This single abstraction powers undo, redo, history, replay and the future
collaboration layer.
A reversible user action (the Command pattern).
executeperforms the change and records forward event(s);undoperforms the exact inverse and records the inverse event(s). Redo is simplyexecuteagain — commands capture any generated identity on first run so re-execution is deterministic.This single abstraction powers undo, redo, history, replay and the future collaboration layer.