Browse Source
Updates to cluster example.
Updates to cluster example.
git-svn-id: https://www.prismmodelchecker.org/svn/prism/prism/trunk@280 bbc10eb1-c90d-0410-af57-cb519fbb1720master
2 changed files with 97 additions and 90 deletions
@ -1,45 +1,52 @@ |
|||||
// properties from [HHK00] |
|
||||
|
// Properties based on those from [HHK00] |
||||
|
|
||||
// left_operational_i : left_n>=i & Toleft_n |
|
||||
// right_operational_i : right_n>=i & Toright_n |
|
||||
// operational_i : (left_n+right_n)>=i & Toleft_n & line_n & Toright_n |
|
||||
|
// left_operational_i : left_n>=i & toleft_n |
||||
|
// right_operational_i : right_n>=i & toright_n |
||||
|
// operational_i : (left_n+right_n)>=i & toleft_n & line_n & toright_n |
||||
// minimum_k : left_operational_k | right_operational_k | operational_k |
// minimum_k : left_operational_k | right_operational_k | operational_k |
||||
// premium = minimum_N |
// premium = minimum_N |
||||
|
|
||||
label "minimum" = (left_n>=k & Toleft_n) | (right_n>=k & Toright_n) | ((left_n+right_n)>=k & Toleft_n & line_n & Toright_n); |
|
||||
label "premium" = (left_n>=left_mx & Toleft_n) | (right_n>=right_mx & Toright_n) | ((left_n+right_n)>=left_mx & Toleft_n & line_n & Toright_n); |
|
||||
|
label "minimum" = (left_n>=k & toleft_n) | (right_n>=k & toright_n) | ((left_n+right_n)>=k & toleft_n & line_n & toright_n); |
||||
|
label "premium" = (left_n>=left_mx & toleft_n) | (right_n>=right_mx & toright_n) | ((left_n+right_n)>=left_mx & toleft_n & line_n & toright_n); |
||||
|
|
||||
const double T; |
const double T; |
||||
|
|
||||
// in the long run, the probability that premium QOS will be delivered |
|
||||
|
// In the long run, the probability that premium QoS will be delivered |
||||
S=? [ "premium" ] |
S=? [ "premium" ] |
||||
|
|
||||
// in the long run, the chance that QOS is below minimum |
|
||||
|
// In the long run, the chance that QoS is below minimum |
||||
S=? [ !"minimum" ] |
S=? [ !"minimum" ] |
||||
|
|
||||
// the system will always be able to offer premium QOS at some point in the future |
|
||||
|
// The system will always be able to offer premium QoS at some point in the future |
||||
P>=1 [ true U "premium" ] |
P>=1 [ true U "premium" ] |
||||
|
|
||||
// the chance that QOS drops below minimum quality within T time units (from the initial state) |
|
||||
|
// The chance that QoS drops below minimum quality within T time units |
||||
|
// (from the initial state) |
||||
P=? [ true U<=T !"minimum" ] |
P=? [ true U<=T !"minimum" ] |
||||
|
|
||||
// if facing insufficient QOS, the maximum probability of facing the same problem after T time units |
|
||||
|
// If facing insufficient QoS, the maximum probability of facing |
||||
|
// the same problem after T time units |
||||
P=? [ true U[T,T] !"minimum" {!"minimum"}{max} ] |
P=? [ true U[T,T] !"minimum" {!"minimum"}{max} ] |
||||
|
|
||||
// the minimum probability of going from minimum QOS to premium QOS within T time units |
|
||||
|
// The minimum probability of going from minimum QoS to premium QoS |
||||
|
// within T time units |
||||
P=? [ true U<=T "premium" {"minimum"}{min} ] |
P=? [ true U<=T "premium" {"minimum"}{min} ] |
||||
|
|
||||
// the minimum probability of going from minimum QOS to premium QOS within T time units without violating the minimum QOS constraint along the way |
|
||||
|
// The minimum probability of going from minimum QoS to premium QoS |
||||
|
// within T time units without violating the minimum QoS constraint along the way |
||||
P=? [ "minimum" U<=T "premium" {"minimum"}{min} ] |
P=? [ "minimum" U<=T "premium" {"minimum"}{min} ] |
||||
|
|
||||
// the maximum probability that it takes more than T time units to recover from insufficient QOS |
|
||||
|
// The maximum probability that it takes more than T time units |
||||
|
// to recover from insufficient QoS |
||||
P=? [ !"minimum" U>=T "minimum" {!"minimum"}{max} ] |
P=? [ !"minimum" U>=T "minimum" {!"minimum"}{max} ] |
||||
|
|
||||
// percentage of operational workstations at time T starting from below minimum QOS |
|
||||
R{"per_oper"}=? [ I=T {!"minimum"}{min} ] |
|
||||
|
// The minimum percentage of operational workstations at time T |
||||
|
// when starting from below minimum QoS |
||||
|
R{"percent_op"}=?[ I=T {!"minimum"}{min} ] |
||||
|
|
||||
|
// The expected time (from the initial state) |
||||
|
// that the system spends below minimum QoS until time T |
||||
|
R{"time_not_min"}=?[ C<=T ] |
||||
|
|
||||
// from the inital state the expected time that the system is below minimum QOS until time T |
|
||||
R{"below_min"}=? [ C<=T ] |
|
||||
|
// The expected number of repairs by time T (starting in the initial state) |
||||
|
R{"num_repairs"}=?[ C<=T ] |
||||
|
|
||||
// from the inital state the expected number of repairs by time T |
|
||||
R{"repairs"}=? [ C<=T ] |
|
||||
Write
Preview
Loading…
Cancel
Save
Reference in new issue