|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectedu.washington.cs.supple.customization.command.CommandGeneralization
A generalization command as it is issued by the user.
| Constructor Summary | |
CommandGeneralization(Action action,
Scope scope,
java.util.List generalizedCommands)
To create a generalization command, an abstract scope definition has to be provided. |
|
| 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 CommandGeneralization(Action action,
Scope scope,
java.util.List generalizedCommands)
action - scope - generalizedCommands - | 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 | ||||||||||