コード例 #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);
 }