Package com.uppaal.model.system
Class UppaalSystem
java.lang.Object
com.uppaal.model.AbstractSystem
com.uppaal.model.system.UppaalSystem
public class UppaalSystem extends AbstractSystem
An UppaalSystem consists of:
A number of indexed processes consisting of a name, a template,
and a translation map.
A number of indexed variable names. (AbstractSystem)
A number of indexed clock names. (AbstractSystem)
Etc...
-
Field Summary
-
Constructor Summary
Constructors Constructor Description UppaalSystem(Document aDocument)Constructor -
Method Summary
Modifier and Type Method Description voidaddProcess(String processName, String templateName, Translator map)Add process datavoidaddProcess(String processName, String templateName, Translator parameterMap, List<Integer> edgeMap)Added for concrete simulation - edge map as extra argumentSystemEdgeSelectcreateEdgeCon(int process, int edge, List<Integer> values)Find the edge of the process and select the valueprotected LscTemplatefindLscTemplate(String name, boolean guarantee)protected NodefindNode(String name)Finds a child node from the document root node.protected TemplatefindTemplate(String name, boolean guarantee)SystemEdgegetEdge(int process, int edge)Get the edge with the process and edge indexGanttChartgetGanttChart()Get ganttchartSystemLocationgetLocation(int process, int loc)Get the location with the process and location indexintgetNoOfProcesses()Get the number of the processes of the uppaal systemProcessgetProcess(int process)Get the process with the process indexArrayList<Process>getProcesses()intgetProcessIndex(String id)Get the process index using the process namevoidsetGanttChart(GanttChart gc)Set the ganttchartvoidsetLscProcess(String processName, String templateName, Translator map)Set the lsc processMethods inherited from class com.uppaal.model.AbstractSystem
getClockName, getClockNames, getDocument, getNoOfClocks, getNoOfVariables, getVariableName, getVariables, setClocks, setVariables
-
Constructor Details
-
UppaalSystem
Constructor- Parameters:
aDocument- - The document
-
-
Method Details
-
findNode
Finds a child node from the document root node.- Parameters:
name-- Returns:
-
findTemplate
-
findLscTemplate
-
addProcess
Description copied from class:AbstractSystemAdd process data- Specified by:
addProcessin classAbstractSystem- Parameters:
processName- - The process nametemplateName- - The template namemap- - The translator
-
addProcess
public void addProcess(String processName, String templateName, Translator parameterMap, List<Integer> edgeMap)Added for concrete simulation - edge map as extra argument- Parameters:
processName- - The process nametemplateName- - The template nameparameterMap- - The parameter mapedgeMap- - the edge map
-
setLscProcess
Set the lsc process- Parameters:
processName- - The process nametemplateName- - The template namemap- - The translator
-
getProcess
Get the process with the process index- Parameters:
process- - The process index- Returns:
- the process object.
-
getEdge
Get the edge with the process and edge index- Parameters:
process- - The process indexedge- - The edge index- Returns:
- The system edge
-
getProcesses
-
getLocation
Get the location with the process and location index- Parameters:
process- - The process indexloc- - The location index- Returns:
- The system location
-
getNoOfProcesses
public int getNoOfProcesses()Get the number of the processes of the uppaal system- Returns:
- The number of the processes
-
getProcessIndex
Get the process index using the process name- Parameters:
id- - The process name- Returns:
- the process index.
-
createEdgeCon
Find the edge of the process and select the value- Parameters:
process- - The process has the edgeedge- - Using the index to get the edgevalues- - The selected value list- Returns:
- The selected system edge
-
setGanttChart
Set the ganttchart- Parameters:
gc- - The new ganttchart
-
getGanttChart
Get ganttchart- Returns:
- The ganttchart
-