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; }
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; }
public Goal(string name, IEnumerable <IPrecondition> preconditions) { Name = PreconditionUtils.EnsureNotBlank(name, "name"); Preconditions = new List <IPrecondition>(PreconditionUtils.EnsureNotNull(preconditions, "preconditions")); }
public SymbolId(string name) { Name = PreconditionUtils.EnsureNotBlank(name, "name"); }
protected PlanningAction(string name, bool isExperienceAction) { IsExperience = isExperienceAction; Name = PreconditionUtils.EnsureNotBlank(name, "name"); }