roneditor.objectnetview.commands
Class ApplyRuleCommand

java.lang.Object
  extended by org.eclipse.gef.commands.Command
      extended by roneditor.objectnetview.commands.ApplyRuleCommand

public class ApplyRuleCommand
extends org.eclipse.gef.commands.Command


Field Summary
private  ronmodel.ObjectNet objectNet
           
private  ronmodel.Rule rule
           
private  RuleSimulator simulator
           
 
Constructor Summary
ApplyRuleCommand()
           
 
Method Summary
 boolean canExecute()
          True if the command can be executed, false otherwise.
 void execute()
           
 void redo()
           
 void setObjectNet(ronmodel.ObjectNet objectNet)
           
 void setRule(ronmodel.Rule rule)
           
 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
 

Field Detail

objectNet

private ronmodel.ObjectNet objectNet

rule

private ronmodel.Rule rule

simulator

private RuleSimulator simulator
Constructor Detail

ApplyRuleCommand

public ApplyRuleCommand()
Method Detail

execute

public void execute()
Overrides:
execute in class org.eclipse.gef.commands.Command

undo

public void undo()
Overrides:
undo in class org.eclipse.gef.commands.Command

redo

public void redo()
Overrides:
redo in class org.eclipse.gef.commands.Command

canExecute

public boolean canExecute()
True if the command can be executed, false otherwise.

Overrides:
canExecute in class org.eclipse.gef.commands.Command

setObjectNet

public void setObjectNet(ronmodel.ObjectNet objectNet)

setRule

public void setRule(ronmodel.Rule rule)