Package com.uppaal.model.core2
Class AbstractTransaction
java.lang.Object
com.uppaal.model.core2.AbstractCommand
com.uppaal.model.core2.AbstractTransaction
- All Implemented Interfaces:
Command
- Direct Known Subclasses:
AddAnchorCommand
,ChangeAnchorCommand
,ChangeMessageEndCommand
,InsertEdgeCommand
,InsertElementCommand
,InsertMessageCommand
,RemoveAnchorCommand
,SetEndPointCommand
,SetLengthCommand
,TranslationCommand
public abstract class AbstractTransaction extends AbstractCommand
The abstract class transaction
-
Field Summary
Fields Modifier and Type Field Description protected CommandManager
commandManager
protected boolean
committed
-
Constructor Summary
Constructors Constructor Description AbstractTransaction(CommandManager commandManager)
Constructor -
Method Summary
-
Field Details
-
committed
protected boolean committed -
commandManager
-
-
Constructor Details
-
AbstractTransaction
Constructor- Parameters:
commandManager
- - The command manager
-
-
Method Details
-
commit
public void commit()Commit the transaction. -
cancel
public void cancel()Cancel the transaction. -
doCancel
protected abstract void doCancel() -
doExecute
protected abstract void doExecute() -
doUndo
protected abstract void doUndo() -
execute
public void execute() -
undo
public void undo() -
move
public void move(int xd, int yd)
-