com.uppaal.model.core2
Interface Command

All Known Implementing Classes:
AbstractCommand, AbstractTransaction, AddAnchorCommand, ChangeAnchorCommand, ChangeMessageEndCommand, CompoundCommand, InsertAnchoredElementCommand, InsertEdgeCommand, InsertElementCommand, InsertInstanceCommand, InsertMessageCommand, InsertTemplateCommand, MoveTemplateCommand, RemoveAnchorCommand, RemoveElementCommand, RemoveLscElementCommand, RemoveTemplateCommand, SetEndPointCommand, SetLengthCommand, SetPropertyCommand, SetPropertyWithPositionCommand, SetSourceCommand, SetTargetCommand, SnapCommand, TranslationCommand, TranslationMessageLabelCommand, TranslationXCommand, TranslationYCommand

public interface Command

Interface for commands. See command pattern.


Method Summary
 void execute()
           
 Element getModifiedElement()
           
 int getVersion()
           
 void setVersion(int version)
           
 void undo()
           
 

Method Detail

execute

void execute()

undo

void undo()

setVersion

void setVersion(int version)

getVersion

int getVersion()

getModifiedElement

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.