import { Providence } from ".";
Makes decisions
Constructors
new
Providence(context: Context)
Methods
private
assignProbabilitiesToActions(random: Random, actorReference: ActorReference, actionReferences: readonly ActionReference[]): Promise<readonly WeightedAction[]>
rejectImpossibleActions(random: Random, actorReference: ActorReference, actionReferences: readonly ActionReference[]): Promise<readonly ActionReference[]>
resolve(random: Random, actorReference: ActorReference, actionReferences: readonly ActionReference[]): Promise<Decision>
private
selectAnAction(random: Random, weightedActions: readonly WeightedAction[]): Decision
Selects an Action via weighted distribution random selection