資源簡介
內容包含Uppaal工具,及簡單教程,注意必須提前安裝好Java1.8及以上環境,運行uppaal.jar,即可運行Uppaal。時間自動機是一套對實時系統進行建模和驗證的理論。這一理論是Alur和Dill的杰出工作成果。很多驗證工具(例如Uppaal)就是基于時間自動機理論制作的。
代碼片段和文件信息
/**
?*?A?sample?Java?code?demonstrating?the?use?of?lib/model.jar?in?Uppaal-4.1.19?distribution.
?*?Use?the?following?commands?to?compile?and?run:
?*
?*?????javac?-cp?lib/model.jar?ModelDemo.java
?*?????java?-cp?uppaal.jar:lib/model.jar:.?ModelDemo?hardcoded
?*
?*?ModelDemo?will?produce?result.xml?and?generate?a?symbolic?trace.
?*?ModelDemo?can?also?read?an?external?model?file?(use?Control+C?to?stop):
?*
?*?????java?-cp?uppaal.jar:lib/model.jar:.?ModelDemo?demo/train-gate.xml
?*
?*?@author?Marius?Mikucionis?marius@cs.aau.dk
?*/
import?com.uppaal.engine.CannotEvaluateException;
import?com.uppaal.engine.Engine;
import?com.uppaal.engine.EngineException;
import?com.uppaal.engine.Problem;
import?com.uppaal.model.core2.Document;
import?com.uppaal.model.core2.Edge;
import?com.uppaal.model.core2.Location;
import?com.uppaal.model.core2.Property;
import?com.uppaal.model.core2.PrototypeDocument;
import?com.uppaal.model.core2.Template;
import?com.uppaal.model.system.SystemEdge;
import?com.uppaal.model.system.SystemLocation;
import?com.uppaal.model.system.SystemState;
import?com.uppaal.model.system.concrete.ConcreteState;
import?com.uppaal.model.system.concrete.ConcreteVariable;
import?com.uppaal.model.system.symbolic.SymbolicState;
import?com.uppaal.model.system.symbolic.SymbolicTransition;
import?com.uppaal.model.system.UppaalSystem;
import?java.math.BigDecimal;
import?java.io.IOException;
import?java.io.File;
import?java.net.MalformedURLException;
import?java.net.URL;
import?java.util.ArrayList;
import?java.util.List;
public?class?ModelDemo
{
????/**
?????*?Valid?kinds?of?labels?on?locations.
?????*/
????public?enum?LKind?{
????????name?init?urgent?committed?invariant?exponentialrate?comments
????};
????/**
?????*?Valid?kinds?of?labels?on?edges.
?????*/
????public?enum?EKind?{
????????select?guard?synchronisation?assignment?comments
????};
????/**
?????*?Sets?a?label?on?a?location.
?????*?@param?l?the?location?on?which?the?label?is?going?to?be?attached
?????*?@param?kind?a?kind?of?the?label
?????*?@param?value?the?label?value?(either?boolean?or?String)
?????*?@param?x?the?x?coordinate?of?the?label
?????*?@param?y?the?y?coordinate?of?the?label
?????*/
????public?static?void?setLabel(Location?l?LKind?kind?object?value?int?x?int?y)?{
????????l.setProperty(kind.name()?value);
????????Property?p?=?l.getProperty(kind.name());
????????p.setProperty(“x“?x);
????????p.setProperty(“y“?y);????????
????}
????/**
?????*?Adds?a?location?to?a?template.
?????*?@param?t?the?template
?????*?@param?name?a?name?for?the?new?location
?????*?@param?x?the?x?coordinate?of?the?location
?????*?@param?y?the?y?coordinate?of?the?location
?????*?@return?the?new?location?instance
?????*/
????public?static?Location?addLocation(Template?t?String?name?int?x?int?y)?{
????????Location?l?=?t.createLocation();
????????t.insert(l?null);
????????l.setProperty(“x“?x);
????????l.setProperty(“y“?y);????????
????????setLabel(l?LKind.name?name?x?y-28);
????????return?l;
???
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2019-11-13?15:05??uppaal-4.1.19\
?????文件????????4222??2019-11-12?10:40??uppaal-4.1.19\Addli
?????文件????????7322??2019-11-12?10:40??uppaal-4.1.19\Addli
?????目錄???????????0??2019-11-12?10:41??uppaal-4.1.19\bin-Linux\
?????文件?????6024220??2019-11-12?10:41??uppaal-4.1.19\bin-Linux\server
?????文件??????628112??2019-11-12?10:40??uppaal-4.1.19\bin-Linux\socketserver
?????文件?????6134908??2019-11-12?10:41??uppaal-4.1.19\bin-Linux\verifyta
?????目錄???????????0??2019-11-12?10:41??uppaal-4.1.19\bin-Win32\
?????文件?????4368384??2019-11-12?10:41??uppaal-4.1.19\bin-Win32\server.exe
?????文件?????4471296??2019-11-12?10:41??uppaal-4.1.19\bin-Win32\verifyta.exe
?????目錄???????????0??2019-11-12?10:41??uppaal-4.1.19\demo\
?????文件????????5520??2019-11-12?10:41??uppaal-4.1.19\demo\2doors.xm
?????文件???????11705??2019-11-12?10:41??uppaal-4.1.19\demo\ModelDemo.java
?????文件???????12777??2019-11-12?10:41??uppaal-4.1.19\demo\Schedulingfr
?????文件????????4558??2019-11-12?10:41??uppaal-4.1.19\demo\bridge.xm
?????文件????????2482??2019-11-12?10:41??uppaal-4.1.19\demo\fischer.xm
?????文件????????2298??2019-11-12?10:41??uppaal-4.1.19\demo\fischer_symmetry.xm
?????文件????????4420??2019-11-12?10:41??uppaal-4.1.19\demo\interrupt.xm
?????文件????????5065??2019-11-12?10:41??uppaal-4.1.19\demo\lsc_example.xm
?????文件????????8299??2019-11-12?10:41??uppaal-4.1.19\demo\lsc_train-gate_parameters.xm
?????文件????????6228??2019-11-12?10:41??uppaal-4.1.19\demo\scheduling3.xm
?????文件???????10385??2019-11-12?10:41??uppaal-4.1.19\demo\scheduling4.xm
?????目錄???????????0??2019-11-12?10:41??uppaal-4.1.19\demo\smc\
?????文件????????6070??2019-11-12?10:41??uppaal-4.1.19\demo\smc\ClientServer.xm
?????文件????????7050??2019-11-12?10:41??uppaal-4.1.19\demo\smc\ball.xm
?????文件???????19753??2019-11-12?10:41??uppaal-4.1.19\demo\smc\bluetooth.cav.xm
?????文件???????13661??2019-11-12?10:41??uppaal-4.1.19\demo\smc\csma-ca.xm
?????文件???????13823??2019-11-12?10:41??uppaal-4.1.19\demo\smc\dice.xm
?????文件????????3817??2019-11-12?10:41??uppaal-4.1.19\demo\smc\ex-proba1.xm
?????文件????????4051??2019-11-12?10:41??uppaal-4.1.19\demo\smc\ex-proba2.xm
?????文件???????23552??2019-11-12?10:41??uppaal-4.1.19\demo\smc\firewire.cav.xm
............此處省略125個文件信息
- 上一篇:JAVA售樓管理系統
- 下一篇:android移動應用開發
評論
共有 條評論