コード例 #1
0
 public PlanningAction(string name, IEnumerable <IPrecondition> preconditions, IEnumerable <IEffect> effects, double cost)
 {
     this.Name          = PreconditionUtils.EnsureNotBlank(name, "name");
     this.preconditions = new List <IPrecondition>(PreconditionUtils.EnsureNotNull(preconditions, "preconditions"));
     this.effects       = new List <IEffect>(PreconditionUtils.EnsureNotNull(effects, "effects"));
     this.Cost          = cost;
 }
コード例 #2
0
 public PlanningAction(string name, IEnumerable <IPrecondition> preconditions, IEnumerable <IEffect> effects,
                       double cost)
 {
     IsExperience  = false;
     Name          = PreconditionUtils.EnsureNotBlank(name, "name");
     Preconditions = new List <IPrecondition>(PreconditionUtils.EnsureNotNull(preconditions, "preconditions"));
     Effects       = new List <IEffect>(PreconditionUtils.EnsureNotNull(effects, "effects"));
     Cost          = cost;
 }
コード例 #3
0
 public Goal(string name, IEnumerable <IPrecondition> preconditions)
 {
     Name          = PreconditionUtils.EnsureNotBlank(name, "name");
     Preconditions = new List <IPrecondition>(PreconditionUtils.EnsureNotNull(preconditions, "preconditions"));
 }
コード例 #4
0
 public SymbolId(string name)
 {
     Name = PreconditionUtils.EnsureNotBlank(name, "name");
 }
コード例 #5
0
 protected PlanningAction(string name, bool isExperienceAction)
 {
     IsExperience = isExperienceAction;
     Name         = PreconditionUtils.EnsureNotBlank(name, "name");
 }