Package com.uppaal.model.core2
Class SetSourceCommand
java.lang.Object
com.uppaal.model.core2.AbstractCommand
com.uppaal.model.core2.AbstractTransaction
com.uppaal.model.core2.SetEndPointCommand
com.uppaal.model.core2.SetSourceCommand
- All Implemented Interfaces:
Command
public class SetSourceCommand extends SetEndPointCommand
Transaction for changing the source of an edge.
-
Field Summary
-
Constructor Summary
Constructors Constructor Description SetSourceCommand(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
-
SetSourceCommand
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
-