Class PlannerScheduler<TStateKey, TActionKey, TStateManager, TStateData, TStateDataContext, TActionScheduler, THeuristic, TTerminationEvaluator>
Schedules all planner jobs for one iteration of the planner
Inheritance
Namespace: Unity.AI.Planner
Syntax
public class PlannerScheduler<TStateKey, TActionKey, TStateManager, TStateData, TStateDataContext, TActionScheduler, THeuristic, TTerminationEvaluator> : IDisposable where TStateKey : struct, IEquatable<TStateKey> where TActionKey : struct, IEquatable<TActionKey> where TStateManager : IStateManager<TStateKey, TStateData, TStateDataContext> where TStateData : struct where TStateDataContext : struct, IStateDataContext<TStateKey, TStateData> where TActionScheduler : IActionScheduler<TStateKey, TStateData, TStateDataContext, TStateManager, TActionKey, ActionResult> where THeuristic : struct, IHeuristic<TStateData> where TTerminationEvaluator : struct, ITerminationEvaluator<TStateData>
Type Parameters
Name | Description |
---|---|
TStateKey | StateKey type |
TActionKey | ActionKey type |
TStateManager | StateManager type |
TStateData | StateData type |
TStateDataContext | StateDataContext type |
TActionScheduler | ActionScheduler type |
THeuristic | Heuristic type |
TTerminationEvaluator | TerminationEvaluator type |
Methods
Dispose()
Dispose of planner scheduler instance
Declaration
public void Dispose()
Initialize(TStateKey, TStateManager, TActionScheduler, THeuristic, TTerminationEvaluator, Int32, Int32)
Initialize a planner scheduler instance
Declaration
public void Initialize(TStateKey rootStateKey, TStateManager stateManager, TActionScheduler actionScheduler, THeuristic heuristic, TTerminationEvaluator terminationEvaluator, int stateCapacity = 1, int actionCapacity = 1)
Parameters
Type | Name | Description |
---|---|---|
TStateKey | rootStateKey | Key for the root state |
TStateManager | stateManager | StateManager instance |
TActionScheduler | actionScheduler | ActionScheduler instance |
THeuristic | heuristic | Heuristic |
TTerminationEvaluator | terminationEvaluator | State termination evaluator |
System.Int32 | stateCapacity | Initial state capacity |
System.Int32 | actionCapacity | Initial action capacity |
Schedule(JobHandle)
Schedule jobs for each of the planner stages
Declaration
public JobHandle Schedule(JobHandle inputDeps)
Parameters
Type | Name | Description |
---|---|---|
JobHandle | inputDeps | Any job dependencies |
Returns
Type | Description |
---|---|
JobHandle | JobHandle for the scheduled jobs |