|
|
@ -65,12 +65,12 @@ public class PrismTest |
|
|
|
|
|
|
|
|
// Parse a prop, check on model 1 |
|
|
// Parse a prop, check on model 1 |
|
|
propertiesFile = prism.parsePropertiesString(modulesFile, "P=?[F<=0.1 s1=1]"); |
|
|
propertiesFile = prism.parsePropertiesString(modulesFile, "P=?[F<=0.1 s1=1]"); |
|
|
result = prism.modelCheck(propertiesFile, propertiesFile.getProperty(0), null); |
|
|
|
|
|
|
|
|
result = prism.modelCheck(propertiesFile, propertiesFile.getProperty(0)); |
|
|
System.out.println(result.getResult()); |
|
|
System.out.println(result.getResult()); |
|
|
|
|
|
|
|
|
// Parse another prop, check on model 1 |
|
|
// Parse another prop, check on model 1 |
|
|
propertiesFile = prism.parsePropertiesString(modulesFile, "P=?[F<=0.1 s1=1]"); |
|
|
propertiesFile = prism.parsePropertiesString(modulesFile, "P=?[F<=0.1 s1=1]"); |
|
|
result = prism.modelCheck(propertiesFile, propertiesFile.getProperty(0), null); |
|
|
|
|
|
|
|
|
result = prism.modelCheck(propertiesFile, propertiesFile.getProperty(0)); |
|
|
System.out.println(result.getResult()); |
|
|
System.out.println(result.getResult()); |
|
|
|
|
|
|
|
|
// Parse/load model 2 |
|
|
// Parse/load model 2 |
|
|
@ -79,7 +79,7 @@ public class PrismTest |
|
|
|
|
|
|
|
|
// Parse a prop, check on model 2 |
|
|
// Parse a prop, check on model 2 |
|
|
propertiesFile = prism.parsePropertiesString(modulesFile, "P=?[F<=0.1 s1=1]"); |
|
|
propertiesFile = prism.parsePropertiesString(modulesFile, "P=?[F<=0.1 s1=1]"); |
|
|
result = prism.modelCheck(propertiesFile, propertiesFile.getProperty(0), null); |
|
|
|
|
|
|
|
|
result = prism.modelCheck(propertiesFile, propertiesFile.getProperty(0)); |
|
|
System.out.println(result.getResult()); |
|
|
System.out.println(result.getResult()); |
|
|
|
|
|
|
|
|
// Close down |
|
|
// Close down |
|
|
|