roneditor.objectnetview.commands
Class CreateONPlaceCommand

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

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

Command for creating a place.


Field Summary
private  int mappingID
           
private  java.lang.String name
           
private  ronmodel.ObjectNet objectNet
           
private  ronmodel.ONPlace onPlace
           
private  int tokens
           
private  int x
           
private  int y
           
 
Constructor Summary
CreateONPlaceCommand()
          Constructor.
 
Method Summary
 void execute()
          Entry point for command execution.
 java.lang.String getName()
           
 ronmodel.ObjectNet getObjectNet()
           
 ronmodel.ONPlace getONPlace()
           
 int getTokens()
           
 int getX()
           
 int getY()
           
 void redo()
          Redo command execution.
 void setName(java.lang.String name)
           
 void setObjectNet(ronmodel.ObjectNet objectNet)
           
 void setONPlace(ronmodel.ONPlace onPlace)
           
 void setTokens(int tokens)
           
 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

onPlace

private ronmodel.ONPlace onPlace

x

private int x

y

private int y

objectNet

private ronmodel.ObjectNet objectNet

name

private java.lang.String name

tokens

private int tokens

mappingID

private int mappingID
Constructor Detail

CreateONPlaceCommand

public CreateONPlaceCommand()
Constructor.

Method Detail

execute

public void execute()
Entry point for command execution. Ein ONPlace 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

getONPlace

public ronmodel.ONPlace getONPlace()
Returns:
the client

setONPlace

public void setONPlace(ronmodel.ONPlace onPlace)
Parameters:
onPlace - the client 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

getTokens

public int getTokens()

setTokens

public void setTokens(int tokens)