Package com.uppaal.model.core2
Class SetTargetCommand
java.lang.Object
com.uppaal.model.core2.AbstractCommand
com.uppaal.model.core2.AbstractTransaction
com.uppaal.model.core2.SetEndPointCommand
com.uppaal.model.core2.SetTargetCommand
- All Implemented Interfaces:
Command
public class SetTargetCommand extends SetEndPointCommand
Transaction for changing the target of an edge.
-
Field Summary
-
Constructor Summary
Constructors Constructor Description SetTargetCommand(CommandManager commandManager, Edge edge)
Constructor -
Method Summary
Modifier and Type Method Description AbstractLocation
getLocation()
Returns the current end point.protected void
insertNail(Nail nail)
Inserts a nail next to the end point.protected void
setLocation(AbstractLocation location)
Sets the current end point on the edge.Methods inherited from class com.uppaal.model.core2.SetEndPointCommand
convertToNail, doCancel, doExecute, doUndo, getModifiedElement, moveNailTo, setEndPoint, swap
-
Constructor Details
-
SetTargetCommand
Constructor- Parameters:
commandManager
- - The command manageredge
- - The edge
-
-
Method Details
-
getLocation
Description copied from class:SetEndPointCommand
Returns the current end point.- Specified by:
getLocation
in classSetEndPointCommand
- Returns:
- The abstract location
-
setLocation
Description copied from class:SetEndPointCommand
Sets the current end point on the edge.- Specified by:
setLocation
in classSetEndPointCommand
- Parameters:
location
- - The set location
-
insertNail
Description copied from class:SetEndPointCommand
Inserts a nail next to the end point.- Specified by:
insertNail
in classSetEndPointCommand
- Parameters:
nail
- - The nail object
-