Exemplo n.º 1
0
 static bool CreateRobotEnabled1(Robot r)
 {
     return nextId <= maxNoRobots;
 }
Exemplo n.º 2
0
 //[Requirement("!robots.Contains"+ (string)r.id)]
 // [Requirement("Not(Contains(robots,r)))")]
 static bool CreateRobotEnabled2(Robot r)
 {
     return !robots.Contains(r);
 }
Exemplo n.º 3
0
 static bool WaitEnabled1(Robot r)
 {
     return robots.Contains(r);
 }
Exemplo n.º 4
0
 static bool WaitEnabled2(Robot r)
 {
     return power[r] >= 0.1;
 }
Exemplo n.º 5
0
 static bool SearchEnabled1(Robot r)
 {
     return robots.Contains(r);
 }
Exemplo n.º 6
0
 static bool SearchEnabled2(Robot r)
 {
     return power[r] >= 0.5;
 }
Exemplo n.º 7
0
 static bool RechargeEnabled2(Robot r)
 {
     return reward[r] > 0.6;
 }
Exemplo n.º 8
0
 static bool RechargeEnabled1(Robot r)
 {
     return robots.Contains(r) ;
 }
Exemplo n.º 9
0
 //[Requirement("rewardcontains(r)")]
 static bool DeleteRobotEnabled3(Robot r)
 {
     return reward.ContainsKey(r);
 }
Exemplo n.º 10
0
 //[Requirement("powercontains(r)")]
 static bool DeleteRobotEnabled2(Robot r)
 {
     return power.ContainsKey(r);
 }
Exemplo n.º 11
0
 static bool DeleteRobotEnabled1(Robot r)
 {
     return robots.Contains(r);
 }