Package com.uppaal.model.core2
Class AbstractCommand
- java.lang.Object
-
- com.uppaal.model.core2.AbstractCommand
-
- All Implemented Interfaces:
Command
- Direct Known Subclasses:
AbstractTransaction
,AppendQueriesCommand
,ClearQueriesCommand
,CompoundCommand
,InsertQueryCommand
,InsertTemplateCommand
,InsertTextCommand
,MoveTemplateCommand
,RemoveElementCommand
,RemoveLscElementCommand
,RemoveQueryCommand
,RemoveTemplateCommand
,RemoveTextCommand
,SetPropertyCommand
,SetQueryCommand
,SnapCommand
public abstract class AbstractCommand extends Object implements Command
-
-
Field Summary
Fields Modifier and Type Field Description protected int
version
-
Constructor Summary
Constructors Constructor Description AbstractCommand()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getVersion()
boolean
merge(Command next)
Merge the next command (meant for storage, it still needs to be executed before storage)void
setVersion(int version)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.uppaal.model.core2.Command
execute, getModifiedElement, undo
-
-
-
-
Method Detail
-
setVersion
public void setVersion(int version)
- Specified by:
setVersion
in interfaceCommand
-
getVersion
public int getVersion()
- Specified by:
getVersion
in interfaceCommand
-
-