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