Skip to content
Snippets Groups Projects
Commit 48a19e14 authored by Michael Leuschel's avatar Michael Leuschel
Browse files

update model notebook example

parent b2e828b6
Branches
Tags
No related merge requests found
%% Cell type:code id: tags:
``` prob
:load scheduler.mch
```
%% Output
[2018-05-16 15:53:50,753, T+11361] "Shell-0" de.prob.cli.PrologProcessProvider.makeProcess(PrologProcessProvider.java:64): [INFO] Starting ProB's Prolog Core. Path is /Users/leuschel/.prob/prob2-3.2.10-SNAPSHOT/probcli.sh
[2018-05-16 15:53:51,892, T+12500] "Shell-0" de.prob.cli.PortPattern.setValue(PortPattern.java:30): [INFO] Server has started and listens on port 62790
[2018-05-16 15:53:51,893, T+12501] "Shell-0" de.prob.cli.InterruptRefPattern.setValue(InterruptRefPattern.java:29): [INFO] Server can receive user interrupts via reference 21692
[2018-05-16 15:53:51,895, T+12503] "ProB Output Logger for instance 6df67e5a" de.prob.cli.ProBInstance.readAndLog(ConsoleListener.java:48): [INFO] -- starting command loop --
[2018-05-16 15:53:51,913, T+12521] "ProB Output Logger for instance 6df67e5a" de.prob.cli.ProBInstance.readAndLog(ConsoleListener.java:48): [INFO] Connected: 127.0.0.1
[2018-05-16 15:53:52,150, T+12758] "ProB Output Logger for instance 6df67e5a" de.prob.cli.ProBInstance.readAndLog(ConsoleListener.java:48): [INFO] loading_classical_b(parser_version(2018-05-16 11:45:20.017),scheduler,[/Users/leuschel/git_root/JAVAPROB/prob2-jupyter-kernel/notebooks/models/scheduler.mch,/Users/leuschel/git_root/JAVAPROB/prob2-jupyter-kernel/notebooks/models/LibraryMeta.def])
[2018-06-06 08:57:28,567, T+7800] "Shell-0" de.prob.cli.PrologProcessProvider.makeProcess(PrologProcessProvider.java:64): [INFO] Starting ProB's Prolog Core. Path is /Users/leuschel/git_root/prob_prolog/probcli.sh
[2018-06-06 08:57:29,600, T+8833] "Shell-0" de.prob.cli.PortPattern.setValue(PortPattern.java:30): [INFO] Server has started and listens on port 53579
[2018-06-06 08:57:29,601, T+8834] "Shell-0" de.prob.cli.InterruptRefPattern.setValue(InterruptRefPattern.java:29): [INFO] Server can receive user interrupts via reference 65646
[2018-06-06 08:57:29,603, T+8836] "ProB Output Logger for instance 56018fb8" de.prob.cli.ProBInstance.readAndLog(ConsoleListener.java:48): [INFO] -- starting command loop --
[2018-06-06 08:57:29,619, T+8852] "ProB Output Logger for instance 56018fb8" de.prob.cli.ProBInstance.readAndLog(ConsoleListener.java:48): [INFO] Connected: 127.0.0.1
Loaded machine: scheduler : []
%% Cell type:code id: tags:
``` prob
PID
```
%% Output
{PID1,PID2,PID3}
%% Cell type:code id: tags:
``` prob
:browse
```
%% Output
Machine: scheduler
Sets: PID
Constants: (none)
Variables: active, ready, waiting
Operations: rr <-- nr_ready, new(pp), del(pp), ready(rr), swap
Operations:
0: $initialise_machine()
%% Cell type:code id: tags:
``` prob
active
```
%% Output
NOT-INITIALISED
:eval: NOT-INITIALISED
%% Cell type:code id: tags:
``` prob
:exec $initialise_machine
:exec INITIALISATION
```
%% Output
Executed operation $initialise_machine
Executed operation 0: $initialise_machine()
%% Cell type:code id: tags:
``` prob
:exec new
```
%% Output
Executed operation new
Executed operation 2: new(PID1)
%% Cell type:code id: tags:
``` prob
waiting
```
%% Output
{PID1}
%% Cell type:code id: tags:
``` prob
:exec ready
```
%% Output
[2018-05-16 15:57:55,578, T+256186] "ProB Output Logger for instance 6df67e5a" de.prob.cli.ProBInstance.readAndLog(ConsoleListener.java:48): [INFO] 
[2018-05-16 15:57:55,579, T+256187] "ProB Output Logger for instance 6df67e5a" de.prob.cli.ProBInstance.readAndLog(ConsoleListener.java:48): [INFO] ALL OPERATIONS COVERED
[2018-05-16 15:57:55,579, T+256187] "ProB Output Logger for instance 6df67e5a" de.prob.cli.ProBInstance.readAndLog(ConsoleListener.java:48): [INFO] 
[2018-06-06 08:57:52,255, T+31488] "ProB Output Logger for instance 56018fb8" de.prob.cli.ProBInstance.readAndLog(ConsoleListener.java:48): [INFO] 
[2018-06-06 08:57:52,256, T+31489] "ProB Output Logger for instance 56018fb8" de.prob.cli.ProBInstance.readAndLog(ConsoleListener.java:48): [INFO] ALL OPERATIONS COVERED
[2018-06-06 08:57:52,257, T+31490] "ProB Output Logger for instance 56018fb8" de.prob.cli.ProBInstance.readAndLog(ConsoleListener.java:48): [INFO] 
Executed operation ready
Executed operation 9: ready(PID1)
%% Cell type:code id: tags:
``` prob
active
```
%% Output
{PID1}
%% Cell type:code id: tags:
``` prob
:exec new pp=PID3
```
%% Output
Executed operation new
Executed operation 12: new(PID3)
%% Cell type:code id: tags:
``` prob
waiting
:table waiting
```
%% Output
[2018-06-06 08:58:13,114, T+52347] "ProB Output Logger for instance 56018fb8" de.prob.cli.ProBInstance.readAndLog(ConsoleListener.java:48): [INFO] finding_trace_from_to(root)
[2018-06-06 08:58:13,119, T+52352] "ProB Output Logger for instance 56018fb8" de.prob.cli.ProBInstance.readAndLog(ConsoleListener.java:48): [INFO] .
|Nr|Elements|
|---|---|
|1|PID3|
Nr Elements
1 PID3
%% Cell type:code id: tags:
``` prob
ready
```
%% Output
%% Cell type:code id: tags:
``` prob
active
```
%% Output
{PID3}
{PID1}
%% Cell type:code id: tags:
``` prob
:exec new
```
%% Output
Executed operation 15: new(PID2)
%% Cell type:code id: tags:
``` prob
:table waiting
```
%% Output
[2018-06-06 09:14:55,680, T+1054913] "ProB Output Logger for instance 56018fb8" de.prob.cli.ProBInstance.readAndLog(ConsoleListener.java:48): [INFO] finding_trace_from_to(root)
[2018-06-06 09:14:55,681, T+1054914] "ProB Output Logger for instance 56018fb8" de.prob.cli.ProBInstance.readAndLog(ConsoleListener.java:48): [INFO] .
|Nr|Elements|
|---|---|
|1|PID2|
|2|PID3|
Nr Elements
1 PID2
2 PID3
%% Cell type:code id: tags:
``` prob
```
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment