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