com.uppaal.model.core2
Class RemoveTemplateCommand

java.lang.Object
  extended by com.uppaal.model.core2.AbstractCommand
      extended by com.uppaal.model.core2.RemoveTemplateCommand
All Implemented Interfaces:
Command

public class RemoveTemplateCommand
extends AbstractCommand


Field Summary
protected  Node node
           
protected  Node parent
           
protected  Node sibling
           
 
Fields inherited from class com.uppaal.model.core2.AbstractCommand
version
 
Constructor Summary
RemoveTemplateCommand(Node node)
           
 
Method Summary
 void execute()
           
 Element getModifiedElement()
           
 void undo()
           
 
Methods inherited from class com.uppaal.model.core2.AbstractCommand
getVersion, setVersion
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

node

protected Node node

parent

protected Node parent

sibling

protected Node sibling
Constructor Detail

RemoveTemplateCommand

public RemoveTemplateCommand(Node node)
Method Detail

execute

public void execute()

undo

public void undo()

getModifiedElement

public Element getModifiedElement()
Returns:
the modified element or its closest relative (sibling or parent) if the element is not displayed.


Copyright © 2012 Uppsala University and Aalborg University. All Rights Reserved.