roneditor.objectnetview.commands
Class FireONTransitionCommand
java.lang.Object
org.eclipse.gef.commands.Command
roneditor.objectnetview.commands.FireONTransitionCommand
public class FireONTransitionCommand
- extends org.eclipse.gef.commands.Command
command zum feuern eines ONTransition
Method Summary |
boolean |
canExecute()
|
void |
execute()
Von jeder Vorbereichsstelle dieser Transition wird soviel Tokens entfernt
wie der Gewicht der zugehörige Eingangskante und in jeder Nachbereichstelle
wird soviel tokens eingefügt wie der Gewicht der zugehörige Ausgangskante |
ronmodel.ONTransition |
getOnTransition()
|
void |
redo()
|
void |
setOnTransition(ronmodel.ONTransition onTransition)
|
void |
undo()
|
Methods inherited from class org.eclipse.gef.commands.Command |
canUndo, chain, dispose, getDebugLabel, getLabel, setDebugLabel, setLabel |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
onTransition
private ronmodel.ONTransition onTransition
FireONTransitionCommand
public FireONTransitionCommand()
execute
public void execute()
- Von jeder Vorbereichsstelle dieser Transition wird soviel Tokens entfernt
wie der Gewicht der zugehörige Eingangskante und in jeder Nachbereichstelle
wird soviel tokens eingefügt wie der Gewicht der zugehörige Ausgangskante
- Overrides:
execute
in class org.eclipse.gef.commands.Command
- See Also:
Command.execute()
undo
public void undo()
- Overrides:
undo
in class org.eclipse.gef.commands.Command
- See Also:
Command.undo()
redo
public void redo()
- Overrides:
redo
in class org.eclipse.gef.commands.Command
- See Also:
Command.redo()
canExecute
public boolean canExecute()
- Overrides:
canExecute
in class org.eclipse.gef.commands.Command
- Returns:
- true wenn in jeder Vorbereichsstelle dieser Transition
mindestens soviel Tokens gibt als die Gewicht der zugehörige Kante
getOnTransition
public ronmodel.ONTransition getOnTransition()
setOnTransition
public void setOnTransition(ronmodel.ONTransition onTransition)