|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.uppaal.model.core2.AbstractCommand
com.uppaal.model.core2.AbstractTransaction
com.uppaal.model.core2.SetEndPointCommand
public abstract class SetEndPointCommand
| Field Summary | |
|---|---|
protected Edge |
edge
The edge on which we set the end point. |
protected AbstractLocation |
location
The original endpoint (or the new endpoint in case the command is undone. |
protected Nail |
nail
Any nails created as a side effect of changing the endpoint. |
| Fields inherited from class com.uppaal.model.core2.AbstractTransaction |
|---|
committed, document |
| Fields inherited from class com.uppaal.model.core2.AbstractCommand |
|---|
version |
| Constructor Summary | |
|---|---|
SetEndPointCommand(Document document,
Edge edge)
|
|
| Method Summary | |
|---|---|
Nail |
convertToNail(int x,
int y)
Inserts a new nail next to the endpoint and the given position. |
protected void |
doCancel()
|
protected void |
doExecute()
|
protected void |
doUndo()
|
abstract AbstractLocation |
getLocation()
Returns the current end point. |
Element |
getModifiedElement()
|
protected abstract void |
insertNail(Nail nail)
Inserts a nail next to the end point. |
void |
moveNailTo(int x,
int y)
Move nail created with convertToNail() to a new position. |
void |
setEndPoint(AbstractLocation location)
Set the endpoint to the given location. |
protected abstract void |
setLocation(AbstractLocation location)
Sets the current end point on the edge. |
protected void |
swap()
|
| Methods inherited from class com.uppaal.model.core2.AbstractTransaction |
|---|
cancel, commit, execute, move, undo |
| Methods inherited from class com.uppaal.model.core2.AbstractCommand |
|---|
getVersion, setVersion |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected Edge edge
protected AbstractLocation location
protected Nail nail
| Constructor Detail |
|---|
public SetEndPointCommand(Document document,
Edge edge)
| Method Detail |
|---|
public abstract AbstractLocation getLocation()
protected abstract void setLocation(AbstractLocation location)
protected abstract void insertNail(Nail nail)
public Nail convertToNail(int x,
int y)
public void moveNailTo(int x,
int y)
public void setEndPoint(AbstractLocation location)
protected void doCancel()
doCancel in class AbstractTransactionprotected void doExecute()
doExecute in class AbstractTransactionprotected void doUndo()
doUndo in class AbstractTransactionprotected void swap()
public Element getModifiedElement()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||