public RegressiveNodeExpander(IEnumerable <PlanningAction> availableActions)
 {
     this.availableActions = PreconditionUtils.EnsureNotNull(availableActions, "availableActions");
 }
示例#2
0
 public SimplePrecondition(SymbolId symbolId, Predicate <int> predicate, Func <int, double> distanceMetric = null)
 {
     this.symbolId       = symbolId;
     this.predicate      = PreconditionUtils.EnsureNotNull(predicate, nameof(predicate));
     this.distanceMetric = distanceMetric;
 }
示例#3
0
 public Builder WithPlanExecutor(IPlanExecutor executor)
 {
     planExecutor = PreconditionUtils.EnsureNotNull(executor, "planExecutor");
     return(this);
 }
示例#4
0
 public Builder WithKnowledgeProvider(IKnowledgeProvider provider)
 {
     knowledgeProvider = PreconditionUtils.EnsureNotNull(provider, "knowledgeProvider");
     return(this);
 }
示例#5
0
 public Builder WithPlanner(IPlanner givenPlanner)
 {
     planner = PreconditionUtils.EnsureNotNull(givenPlanner, "planner");
     return(this);
 }
示例#6
0
 public Builder WithGoalSelector(IGoalSelector selector)
 {
     goalSelector = PreconditionUtils.EnsureNotNull(selector, "goalSelector");
     return(this);
 }