roneditor.objectnetview.commands
Class CreateONTransitionCommand

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

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

Command for creating a Transition.


Field Summary
private  int mappingID
           
private  java.lang.String name
           
private  ronmodel.ObjectNet objectNet
           
private  ronmodel.ONTransition onTransition
           
private  int x
           
private  int y
           
 
Constructor Summary
CreateONTransitionCommand()
          Constructor.
 
Method Summary
 void execute()
          Entry point for command execution.
 java.lang.String getName()
           
 ronmodel.ObjectNet getObjectNet()
           
 ronmodel.ONTransition getServer()
           
 int getX()
           
 int getY()
           
 void redo()
          Redo command execution.
 void setName(java.lang.String name)
           
 void setObjectNet(ronmodel.ObjectNet objectNet)
           
 void setServer(ronmodel.ONTransition onTransition)
           
 void setX(int x)
           
 void setY(int y)
           
 void undo()
          Undo command execution.
 
Methods inherited from class org.eclipse.gef.commands.Command
canExecute, 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

onTransition

private ronmodel.ONTransition onTransition

x

private int x

y

private int y

objectNet

private ronmodel.ObjectNet objectNet

name

private java.lang.String name

mappingID

private int mappingID
Constructor Detail

CreateONTransitionCommand

public CreateONTransitionCommand()
Constructor.

Method Detail

execute

public void execute()
Entry point for command execution. ein ONTransition wird in einem ObjectNet eingefügt

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

redo

public void redo()
Redo command execution.

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

undo

public void undo()
Undo command execution.

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

getServer

public ronmodel.ONTransition getServer()
Returns:
the server

setServer

public void setServer(ronmodel.ONTransition onTransition)
Parameters:
onTransition - the server to set

getObjectNet

public ronmodel.ObjectNet getObjectNet()
Returns:
the network

setObjectNet

public void setObjectNet(ronmodel.ObjectNet objectNet)
Parameters:
objectNet - the network to set

getX

public int getX()
Returns:
the x

setX

public void setX(int x)
Parameters:
x - the x to set

getY

public int getY()
Returns:
the y

setY

public void setY(int y)
Parameters:
y - the y to set

getName

public java.lang.String getName()
Returns:
the name

setName

public void setName(java.lang.String name)
Parameters:
name - the name to set