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 SummaryConstructors Constructor Description SetTargetCommand(CommandManager commandManager, Edge edge)Constructor
- 
Method SummaryModifier 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.SetEndPointCommandconvertToNail, doCancel, doExecute, doUndo, getModifiedElement, moveNailTo, setEndPoint, swap
- 
Constructor Details- 
SetTargetCommandConstructor- Parameters:
- commandManager- - The command manager
- edge- - The edge
 
 
- 
- 
Method Details- 
getLocationDescription copied from class:SetEndPointCommandReturns the current end point.- Specified by:
- getLocationin class- SetEndPointCommand
- Returns:
- The abstract location
 
- 
setLocationDescription copied from class:SetEndPointCommandSets the current end point on the edge.- Specified by:
- setLocationin class- SetEndPointCommand
- Parameters:
- location- - The set location
 
- 
insertNailDescription copied from class:SetEndPointCommandInserts a nail next to the end point.- Specified by:
- insertNailin class- SetEndPointCommand
- Parameters:
- nail- - The nail object
 
 
-