|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.uppaal.model.system.Transition
public class Transition
Transition represents a discrete transition of the system. Each transition has a source and target states, and a set of edges involved in the transition. A sample code to save a trace (sequence of transitions) into a XTR file: ArrayList<Transition> trace = new ArrayList<Transition>(); ... // simulate and add successive transitions System.out.println(trace.get(0).getTarget().toXTRFormat()); for (int i = 1; i < trace.size(); i++) { System.out.println(trace.get(i).toXTRFormat()); } System.out.println(".\n");
| Constructor Summary | |
|---|---|
Transition(SystemState source,
SystemEdge[] edges,
SystemState target)
|
|
Transition(SystemState source,
SystemEdge[] edges,
SystemState target,
String edgeDescription)
|
|
| Method Summary | |
|---|---|
SystemEdge |
getEdge(int i)
|
String |
getEdgeDescription()
|
SystemEdge[] |
getEdges()
|
int |
getSize()
|
SystemState |
getSource()
|
SystemState |
getTarget()
|
boolean |
involvesProcess(int process)
|
String |
toServerFormat()
Convert to format used to send to server. |
String |
traceFormat()
Convert to visual format used in simulator. |
void |
writeXTRFormat(Writer writer)
Convert to format used in XTR files. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Transition(SystemState source,
SystemEdge[] edges,
SystemState target)
public Transition(SystemState source,
SystemEdge[] edges,
SystemState target,
String edgeDescription)
| Method Detail |
|---|
public String traceFormat()
public String toServerFormat()
public void writeXTRFormat(Writer writer)
throws IOException
IOExceptionpublic SystemState getSource()
public SystemState getTarget()
public SystemEdge[] getEdges()
public SystemEdge getEdge(int i)
public int getSize()
public boolean involvesProcess(int process)
public String getEdgeDescription()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||