|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectedu.washington.cs.supple.customization.command.CommandSingleReversal
Reverses a command at a single location only. For example, if the given command is a generalization, it may not be entirely reversed, but only at a single location. This type of "single reversal" is used to make a customization plan executable. Only the minimal number of customizations are reversed, such that the plan is executable (all conditions hold).
| Constructor Summary | |
CommandSingleReversal(HistoryRecord record)
|
|
CommandSingleReversal(HistoryRecord record,
Command creator)
|
|
| Method Summary | |
boolean |
equals(Command c)
Compares this command to another command. |
void |
execute(State s)
Executes the command on a given UI. |
void |
execute(State s,
Specification spec)
Applies a command only to a part of a UI. |
Action |
getAction()
Returns the action type used by the command. |
java.lang.String |
toString()
A string representation of the command. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public CommandSingleReversal(HistoryRecord record)
public CommandSingleReversal(HistoryRecord record,
Command creator)
| Method Detail |
public void execute(State s)
throws ConditionViolationException
Command
execute in interface Commands - state of UI
ConditionViolationException
public void execute(State s,
Specification spec)
throws ConditionViolationException
Command
execute in interface Commands - state of UIspec - part of the UI where command is applied
ConditionViolationExceptionpublic Action getAction()
Command
getAction in interface Commandpublic boolean equals(Command c)
Command
equals in interface Commandc - another command to compare this one topublic java.lang.String toString()
Command
toString in interface Command
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||