Dave Parker
2690b87ff5
Bug fix in simulator: in DTMCs with local nondeterminism, random transitions can be wrongly chosen due to the distributions not being normalised.
git-svn-id: https://www.prismmodelchecker.org/svn/prism/prism/trunk@9352 bbc10eb1-c90d-0410-af57-cb519fbb1720
11 years ago
Dave Parker
dfce095d45
Make sure that some PrismFileLogs are close()ed after use - spotted as a bug by Bruno.
git-svn-id: https://www.prismmodelchecker.org/svn/prism/prism/trunk@8168 bbc10eb1-c90d-0410-af57-cb519fbb1720
12 years ago
Dave Parker
06e4c5fee1
Move normalisation of DTMC probabilities from SimulatorEngine into Updater class.
git-svn-id: https://www.prismmodelchecker.org/svn/prism/prism/trunk@7801 bbc10eb1-c90d-0410-af57-cb519fbb1720
12 years ago
Dave Parker
99d4873c47
Code tidy.
git-svn-id: https://www.prismmodelchecker.org/svn/prism/prism/trunk@7800 bbc10eb1-c90d-0410-af57-cb519fbb1720
12 years ago
Dave Parker
d128da069b
Bug fix: simulator was normalising DTMC bu dividing by number of choices (which was inconsistent with symbolic construction when using -noprobchecks).
git-svn-id: https://www.prismmodelchecker.org/svn/prism/prism/trunk@7797 bbc10eb1-c90d-0410-af57-cb519fbb1720
12 years ago
Dave Parker
928a44101d
Make simulator.Updater objects extract settings more cleanly. And respect doProbChecks option.
git-svn-id: https://www.prismmodelchecker.org/svn/prism/prism/trunk@7795 bbc10eb1-c90d-0410-af57-cb519fbb1720
12 years ago
Dave Parker
02c26dbf53
Update simulator to allow path lengths over 2^31.
git-svn-id: https://www.prismmodelchecker.org/svn/prism/prism/trunk@7785 bbc10eb1-c90d-0410-af57-cb519fbb1720
12 years ago
Dave Parker
8ebc511308
Code tweaks: make Updater independent of PRISM/sim + make SimEngine into PrismComponent.
git-svn-id: https://www.prismmodelchecker.org/svn/prism/prism/trunk@7639 bbc10eb1-c90d-0410-af57-cb519fbb1720
12 years ago
Dave Parker
1a49d8d30f
svn:ignore on lib.
git-svn-id: https://www.prismmodelchecker.org/svn/prism/prism/trunk@7549 bbc10eb1-c90d-0410-af57-cb519fbb1720
12 years ago
Dave Parker
8784323e6e
Some code auto-formatting (for branch purposes).
git-svn-id: https://www.prismmodelchecker.org/svn/prism/prism/trunk@6865 bbc10eb1-c90d-0410-af57-cb519fbb1720
13 years ago
Dave Parker
e8eb82d8ff
Added probs option to -simpath switch allow displaying of transition probabilities/rates (+ addition of this info to underlying path data structures, interfaces, etc.)
git-svn-id: https://www.prismmodelchecker.org/svn/prism/prism/trunk@6629 bbc10eb1-c90d-0410-af57-cb519fbb1720
13 years ago
Dave Parker
db928a3402
Tweak/move error messages for non-supported R[C] operator.
git-svn-id: https://www.prismmodelchecker.org/svn/prism/prism/trunk@6222 bbc10eb1-c90d-0410-af57-cb519fbb1720
13 years ago
Dave Parker
19b18a0c3f
Bugfix in approximate simulation: property error was causing null ptr.
git-svn-id: https://www.prismmodelchecker.org/svn/prism/prism/trunk@5419 bbc10eb1-c90d-0410-af57-cb519fbb1720
14 years ago
Dave Parker
d960bf8020
Better handling of errors in simulator calls from GUI.
git-svn-id: https://www.prismmodelchecker.org/svn/prism/prism/trunk@5386 bbc10eb1-c90d-0410-af57-cb519fbb1720
14 years ago
Dave Parker
992c0864dc
New/improved simulation path plotting functionality.
For -simpath switch:
* paths are generated on-the-fly for efficiency where possible
* rewards are not displayed by default, use 'rewards' option to show
* new 'snapshot' option to only show states at certain time-points
For GUI simulator:
* basic functionality to plot existing paths or create new plots directly
git-svn-id: https://www.prismmodelchecker.org/svn/prism/prism/trunk@5384 bbc10eb1-c90d-0410-af57-cb519fbb1720
14 years ago
Dave Parker
bdd579d85d
New option in GUI simulator to plot path on a graph (all vars over time).
git-svn-id: https://www.prismmodelchecker.org/svn/prism/prism/trunk@5360 bbc10eb1-c90d-0410-af57-cb519fbb1720
14 years ago
Dave Parker
178d3ca90e
SimulatorEngine only builds TransitionList on demand.
git-svn-id: https://www.prismmodelchecker.org/svn/prism/prism/trunk@4958 bbc10eb1-c90d-0410-af57-cb519fbb1720
14 years ago
Dave Parker
ead22700e8
New SimulatorEngine/Prism method prism.isPropertyOKForSimulation().
git-svn-id: https://www.prismmodelchecker.org/svn/prism/prism/trunk@4741 bbc10eb1-c90d-0410-af57-cb519fbb1720
14 years ago
Dave Parker
1cb0822a31
Code tidy
git-svn-id: https://www.prismmodelchecker.org/svn/prism/prism/trunk@4737 bbc10eb1-c90d-0410-af57-cb519fbb1720
14 years ago
Dave Parker
ce41611aa2
Enable viewing of witness/counterexample for E[F...] in GUI.
git-svn-id: https://www.prismmodelchecker.org/svn/prism/prism/trunk@4726 bbc10eb1-c90d-0410-af57-cb519fbb1720
14 years ago
Dave Parker
a3d99e62d0
Add property reference support to PTA ans approx model checking.
git-svn-id: https://www.prismmodelchecker.org/svn/prism/prism/trunk@4507 bbc10eb1-c90d-0410-af57-cb519fbb1720
14 years ago
Dave Parker
90c9e53f8c
Tweak some warning messages (wrt new log.printWarning method) + add warning message functionality in GUI threads.
git-svn-id: https://www.prismmodelchecker.org/svn/prism/prism/trunk@4178 bbc10eb1-c90d-0410-af57-cb519fbb1720
14 years ago
Vojtech Forejt
acd646d02c
* PrismLog now has a "printWarning" method that can be used to print warnings.
* In the end of computation PrismCL prints a message if there were some warnings.
git-svn-id: https://www.prismmodelchecker.org/svn/prism/prism/trunk@4069 bbc10eb1-c90d-0410-af57-cb519fbb1720
14 years ago
Dave Parker
f578bbb893
Approximate model checking ignores "max path length" setting when verifying time-bounded properties.
git-svn-id: https://www.prismmodelchecker.org/svn/prism/prism/trunk@3855 bbc10eb1-c90d-0410-af57-cb519fbb1720
14 years ago
Dave Parker
503d33a01c
Bug fixes for loading zero-length paths into simulator.
git-svn-id: https://www.prismmodelchecker.org/svn/prism/prism/trunk@3529 bbc10eb1-c90d-0410-af57-cb519fbb1720
15 years ago
Dave Parker
0b65c69a6b
Added loadPath methods to SimulatorEngine and GUISimulator; not used currently.
git-svn-id: https://www.prismmodelchecker.org/svn/prism/prism/trunk@3470 bbc10eb1-c90d-0410-af57-cb519fbb1720
15 years ago
Dave Parker
6196d0cdde
Code doc.
git-svn-id: https://www.prismmodelchecker.org/svn/prism/prism/trunk@3457 bbc10eb1-c90d-0410-af57-cb519fbb1720
15 years ago
Dave Parker
a6ba42b5ad
Detach simulator Path objects from SimulatorEngine (do not need).
git-svn-id: https://www.prismmodelchecker.org/svn/prism/prism/trunk@3451 bbc10eb1-c90d-0410-af57-cb519fbb1720
15 years ago
Dave Parker
72551d7248
Refactoring: detach GUI simulator path table from SimulatorEngine and attach to PathFull.
git-svn-id: https://www.prismmodelchecker.org/svn/prism/prism/trunk@3445 bbc10eb1-c90d-0410-af57-cb519fbb1720
15 years ago
Dave Parker
9dd562a6eb
Small fixes in simulator wrt experiments (one part should have been commited earlier with undefined constants improvements).
git-svn-id: https://www.prismmodelchecker.org/svn/prism/prism/trunk@3439 bbc10eb1-c90d-0410-af57-cb519fbb1720
15 years ago
Dave Parker
c737dffa07
Remove accidental parts of last commit.
git-svn-id: https://www.prismmodelchecker.org/svn/prism/prism/trunk@3363 bbc10eb1-c90d-0410-af57-cb519fbb1720
15 years ago
Dave Parker
15de6c029c
Fix in explicit model construction: allow distinct MDP choices that differ only by action name.
git-svn-id: https://www.prismmodelchecker.org/svn/prism/prism/trunk@3362 bbc10eb1-c90d-0410-af57-cb519fbb1720
15 years ago
Dave Parker
dec122cd20
Code comments
git-svn-id: https://www.prismmodelchecker.org/svn/prism/prism/trunk@3213 bbc10eb1-c90d-0410-af57-cb519fbb1720
15 years ago
Dave Parker
a126367821
Simulator engine: Documentation of Choice object, remove some unused Choice methods, add some action-querying methods in SimulatorEngine.
git-svn-id: https://www.prismmodelchecker.org/svn/prism/prism/trunk@3212 bbc10eb1-c90d-0410-af57-cb519fbb1720
15 years ago
Dave Parker
30be4f175e
Missing function in SimulatorEngine API.
git-svn-id: https://www.prismmodelchecker.org/svn/prism/prism/trunk@3040 bbc10eb1-c90d-0410-af57-cb519fbb1720
15 years ago
Dave Parker
7cd3f36336
GUI bugfix: "Update" in GUI simulator transition table displaying wrongly for old path states.
git-svn-id: https://www.prismmodelchecker.org/svn/prism/prism/trunk@3030 bbc10eb1-c90d-0410-af57-cb519fbb1720
15 years ago
Dave Parker
087ea5da6a
General tidy up of initial state handling in simulator, including a few GUI bug fixes. GUI default is to use the default initial state. For generation of simulation paths, there is a separate menu item to start from a specified state (and no option to switch asking on/off). Additional tidying and documentation in related parts of code too.
git-svn-id: https://www.prismmodelchecker.org/svn/prism/prism/trunk@2835 bbc10eb1-c90d-0410-af57-cb519fbb1720
15 years ago
Dave Parker
35f377ab3e
Improved documentation (JavaDoc mostly).
git-svn-id: https://www.prismmodelchecker.org/svn/prism/prism/trunk@2436 bbc10eb1-c90d-0410-af57-cb519fbb1720
15 years ago
Dave Parker
ac19ffc149
Trap potential GUI bug (from Marco).
git-svn-id: https://www.prismmodelchecker.org/svn/prism/prism/trunk@2394 bbc10eb1-c90d-0410-af57-cb519fbb1720
15 years ago
Dave Parker
5d9573628d
Better error message for simulator on filters.
git-svn-id: https://www.prismmodelchecker.org/svn/prism/prism/trunk@2392 bbc10eb1-c90d-0410-af57-cb519fbb1720
15 years ago
Dave Parker
53a5274cb3
Addition of new statistical model checking stuff (patch difference between trunk and prism-statmc branch at this revision).
git-svn-id: https://www.prismmodelchecker.org/svn/prism/prism/trunk@2391 bbc10eb1-c90d-0410-af57-cb519fbb1720
15 years ago
Dave Parker
c1025f4b72
Javadoc fixes.
git-svn-id: https://www.prismmodelchecker.org/svn/prism/prism/trunk@2265 bbc10eb1-c90d-0410-af57-cb519fbb1720
15 years ago
Dave Parker
db60e6487b
Javadoc fixes.
git-svn-id: https://www.prismmodelchecker.org/svn/prism/prism/trunk@2260 bbc10eb1-c90d-0410-af57-cb519fbb1720
15 years ago
Dave Parker
98126c125c
Code tidy.
git-svn-id: https://www.prismmodelchecker.org/svn/prism/prism/trunk@2255 bbc10eb1-c90d-0410-af57-cb519fbb1720
15 years ago
Dave Parker
9f5d37ffa3
Bugfix: simulatino for experiments was disabled.
git-svn-id: https://www.prismmodelchecker.org/svn/prism/prism/trunk@2254 bbc10eb1-c90d-0410-af57-cb519fbb1720
15 years ago
Dave Parker
fbec092ace
Check for overflows added to simulator, but disabled for now.
git-svn-id: https://www.prismmodelchecker.org/svn/prism/prism/trunk@2204 bbc10eb1-c90d-0410-af57-cb519fbb1720
15 years ago
Dave Parker
de11a8685e
Code tidy.
git-svn-id: https://www.prismmodelchecker.org/svn/prism/prism/trunk@2203 bbc10eb1-c90d-0410-af57-cb519fbb1720
15 years ago
Dave Parker
b6d4a15737
Simulator disabled for PTAs.
git-svn-id: https://www.prismmodelchecker.org/svn/prism/prism/trunk@2200 bbc10eb1-c90d-0410-af57-cb519fbb1720
15 years ago
Dave Parker
fcf236acd3
Added (self-loop) deterministic loop detection to simulator.
git-svn-id: https://www.prismmodelchecker.org/svn/prism/prism/trunk@2188 bbc10eb1-c90d-0410-af57-cb519fbb1720
15 years ago
Dave Parker
bc834d7d83
Better property checks for PTAs, including new computation of prob operator nesting. Better handling of labels in PTA model checker.
git-svn-id: https://www.prismmodelchecker.org/svn/prism/prism/trunk@2176 bbc10eb1-c90d-0410-af57-cb519fbb1720
15 years ago