Interface ITactic<TBeliefSet>
Represents a tactic that an agent can use to achieve its goals. A tactic is a strategy for achieving a particular goal.
public interface ITactic<in TBeliefSet> where TBeliefSet : IBeliefSet
Type Parameters
TBeliefSet
The type of the belief set that the tactic uses.
Methods
GetAction(TBeliefSet)
Gets the first enabled action of the tactic.
IAction<in TBeliefSet>? GetAction(TBeliefSet beliefSet)
Parameters
beliefSet
TBeliefSet
Returns
- IAction<TBeliefSet>
A concrete IAction<TBeliefSet> that the tactic can perform, or null if no actions are enabled.
IsActionable(TBeliefSet)
Determines whether the tactic is actionable.
bool IsActionable(TBeliefSet beliefSet)
Parameters
beliefSet
TBeliefSet
Returns
- bool
True if the tactic is actionable, false otherwise.