Table of Contents

Class LiftingExtensionMethods

Namespace
Aplib.Core
Assembly
Aplib.Core.dll

Contains extension methods for lifting BDI cycle components into higher-order components.

public static class LiftingExtensionMethods
Inheritance
LiftingExtensionMethods
Inherited Members

Methods

Lift<TBeliefSet>(IGoalStructure<TBeliefSet>)

Wraps a goal structure into a desire set.

public static DesireSet<TBeliefSet> Lift<TBeliefSet>(this IGoalStructure<TBeliefSet> goalStructure) where TBeliefSet : IBeliefSet

Parameters

goalStructure IGoalStructure<TBeliefSet>

The goal structure which on its own can function as a desire set. Meaning, the desire set consists of just a single goal structure.

Returns

DesireSet<TBeliefSet>

The goal structure, lifted to a desire set.

Type Parameters

TBeliefSet

Lift<TBeliefSet>(IGoalStructure<TBeliefSet>, IMetadata)

Wraps a goal structure into a desire set.

public static DesireSet<TBeliefSet> Lift<TBeliefSet>(this IGoalStructure<TBeliefSet> goalStructure, IMetadata metadata) where TBeliefSet : IBeliefSet

Parameters

goalStructure IGoalStructure<TBeliefSet>

The goal structure which on its own can function as a desire set. Meaning, the desire set consists of just a single goal structure.

metadata IMetadata

Optional metadata to be assigned to the desire set.

Returns

DesireSet<TBeliefSet>

The goal structure, lifted to a desire set.

Type Parameters

TBeliefSet

Lift<TBeliefSet>(IGoal<TBeliefSet>)

Wraps a goal into a goal structure.

public static PrimitiveGoalStructure<TBeliefSet> Lift<TBeliefSet>(this IGoal<TBeliefSet> goal) where TBeliefSet : IBeliefSet

Parameters

goal IGoal<TBeliefSet>

The goal which on its own can function as a goal structure. Meaning, the goal structure consists of just a single goal.

Returns

PrimitiveGoalStructure<TBeliefSet>

The goal, lifted to a primitive goal structure.

Type Parameters

TBeliefSet

Lift<TBeliefSet>(IGoal<TBeliefSet>, IMetadata)

Wraps a goal into a goal structure.

public static PrimitiveGoalStructure<TBeliefSet> Lift<TBeliefSet>(this IGoal<TBeliefSet> goal, IMetadata metadata) where TBeliefSet : IBeliefSet

Parameters

goal IGoal<TBeliefSet>

The goal which on its own can function as a goal structure. Meaning, the goal structure consists of just a single goal.

metadata IMetadata

Optional metadata to be assigned to the goal structure.

Returns

PrimitiveGoalStructure<TBeliefSet>

The goal, lifted to a primitive goal structure.

Type Parameters

TBeliefSet

Lift<TBeliefSet>(IAction<TBeliefSet>)

Wraps a normal action into a tactic.

public static PrimitiveTactic<TBeliefSet> Lift<TBeliefSet>(this IAction<TBeliefSet> action) where TBeliefSet : IBeliefSet

Parameters

action IAction<TBeliefSet>

The action which on its own can function as a tactic. Meaning, the tactic consists of just a single action.

Returns

PrimitiveTactic<TBeliefSet>

The action, lifted to a primitive tactic, whose guard always returns true.

Type Parameters

TBeliefSet

Lift<TBeliefSet>(IAction<TBeliefSet>, IMetadata)

Wraps a normal action into a tactic.

public static PrimitiveTactic<TBeliefSet> Lift<TBeliefSet>(this IAction<TBeliefSet> action, IMetadata metadata) where TBeliefSet : IBeliefSet

Parameters

action IAction<TBeliefSet>

The action which on its own can function as a tactic. Meaning, the tactic consists of just a single action.

metadata IMetadata

Optional metadata to be assigned to the tactic.

Returns

PrimitiveTactic<TBeliefSet>

The action, lifted to a primitive tactic, whose guard always returns true.

Type Parameters

TBeliefSet

Lift<TBeliefSet>(IQueryable<TBeliefSet>)

Wraps a queryable action into a tactic.

public static PrimitiveTactic<TBeliefSet> Lift<TBeliefSet>(this IQueryable<TBeliefSet> action) where TBeliefSet : IBeliefSet

Parameters

action IQueryable<TBeliefSet>

The action which on its own can function as a tactic. Meaning, the tactic consists of just a single action.

Returns

PrimitiveTactic<TBeliefSet>

The action, lifted to a primitive tactic, whose guard always returns true.

Type Parameters

TBeliefSet

Lift<TBeliefSet>(IQueryable<TBeliefSet>, IMetadata)

Wraps a queryable action into a tactic.

public static PrimitiveTactic<TBeliefSet> Lift<TBeliefSet>(this IQueryable<TBeliefSet> action, IMetadata metadata) where TBeliefSet : IBeliefSet

Parameters

action IQueryable<TBeliefSet>

The action which on its own can function as a tactic. Meaning, the tactic consists of just a single action.

metadata IMetadata

Optional metadata to be assigned to the tactic.

Returns

PrimitiveTactic<TBeliefSet>

The action, lifted to a primitive tactic, whose guard always returns true.

Type Parameters

TBeliefSet