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 AbstractLocationgetLocation()Returns the current end point.protected voidinsertNail(Nail nail)Inserts a nail next to the end point.protected voidsetLocation(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:SetEndPointCommandReturns the current end point.- Specified by:
getLocationin classSetEndPointCommand- Returns:
- The abstract location
-
setLocation
Description copied from class:SetEndPointCommandSets the current end point on the edge.- Specified by:
setLocationin classSetEndPointCommand- Parameters:
location- - The set location
-
insertNail
Description copied from class:SetEndPointCommandInserts a nail next to the end point.- Specified by:
insertNailin classSetEndPointCommand- Parameters:
nail- - The nail object
-