From ac7060c92d974e2de53e15be8444398936be3ba0 Mon Sep 17 00:00:00 2001 From: Gethin Norman Date: Mon, 26 Nov 2007 11:25:41 +0000 Subject: [PATCH] various fixes to update rewards and match web pages git-svn-id: https://www.prismmodelchecker.org/svn/prism/prism/trunk@535 bbc10eb1-c90d-0410-af57-cb519fbb1720 --- prism-examples/cell/cell.csl | 23 +++++++++++++-------- prism-examples/embedded/embedded.csl | 30 +++++++++++++++++---------- prism-examples/embedded/embedded.sm | 25 +++++++++++++--------- prism-examples/kanban/auto | 2 +- prism-examples/kanban/kanban.csl | 9 +++++++- prism-examples/kanban/kanban.sm | 31 +++++++++++++++++++++++----- 6 files changed, 83 insertions(+), 37 deletions(-) diff --git a/prism-examples/cell/cell.csl b/prism-examples/cell/cell.csl index f7ea40a4..13b54bc9 100644 --- a/prism-examples/cell/cell.csl +++ b/prism-examples/cell/cell.csl @@ -1,16 +1,21 @@ -const double T; +const double T; // time bound -// what is the maximum probability that a hand off call can be dropped within t time units (assuming a guarded channel is free) +// the maximum probability that a hand off call can be dropped within t time units (assuming a guarded channel is free) P=?[ true U<=T (n=N) {n=N*0.8) {n=1) & (reqo | (reqi & m=1))); endmodule - -formula fail_sensors = i=2&s0) & (w4>0) -> out4 : (z4'=z4-1) & (w4'=w4-1); endmodule - -rewards - + +// reward structures + +// tokens in cell1 +rewards "tokens_cell1" + true : x1+y1+z1; +endrewards + +// tokens in cell2 +rewards "tokens_cell2" + true : x2+y2+z2; +endrewards + +// tokens in cell3 +rewards "tokens_cell3" + true : x3+y3+z3; +endrewards + +// tokens in cell4 +rewards "tokens_cell4" + true : x4+y4+z4; +endrewards + +// throughput of the system +rewards "throughput" [in] true : 1; - endrewards