C# Class UnityAI.Core.Planning.PartialOrderPlan

Afficher le fichier Open project: unityai/unityai-core Class Usage Examples

Méthodes publiques

Méthode Description
AddAction ( Action action ) : void

Add an Action to the Plan

AddCausalLink ( Action from, Predicate achieves, Action to ) : void

Add a Causal Link

AddOrderingConstraint ( Action before, Action after ) : void

Add an Ordering Constraint

PartialOrderPlan ( IEnumerable initState, IEnumerable goalState ) : System

Partial Order Plan

PickOpenPrecondition ( ) : ActionPredicatePair

Randomly pick an open precondition

RemoveAction ( Action action, ActionPredicatePair actionPredicatePair ) : void

Remove the Action

Private Methods

Méthode Description
CheckLoop ( Action before, Action after ) : bool

Check for a loop

CheckPlanConsistent ( Action action ) : void

Check the Plan for Consistency

SortAction ( ) : List

TODO: Just temporary sort action method

Method Details

AddAction() public méthode

Add an Action to the Plan
public AddAction ( Action action ) : void
action Action Action to Add
Résultat void

AddCausalLink() public méthode

Add a Causal Link
public AddCausalLink ( Action from, Predicate achieves, Action to ) : void
from Action From Action
achieves Predicate The Predicate that Achieves
to Action To Action
Résultat void

AddOrderingConstraint() public méthode

Add an Ordering Constraint
public AddOrderingConstraint ( Action before, Action after ) : void
before Action Before Action
after Action After Action
Résultat void

PartialOrderPlan() public méthode

Partial Order Plan
public PartialOrderPlan ( IEnumerable initState, IEnumerable goalState ) : System
initState IEnumerable Init State
goalState IEnumerable Goal State
Résultat System

PickOpenPrecondition() public méthode

Randomly pick an open precondition
public PickOpenPrecondition ( ) : ActionPredicatePair
Résultat ActionPredicatePair

RemoveAction() public méthode

Remove the Action
public RemoveAction ( Action action, ActionPredicatePair actionPredicatePair ) : void
action Action Action to Remove
actionPredicatePair ActionPredicatePair Action-Predicate Pair
Résultat void