Normally this option class should serve all the "option" related needs of an AI.
More...
|
bool | SetAction (IAction action) |
| Sets the action. More...
|
|
bool | SetAction (string actionId) |
| Sets the action to be executed when this option is selected to the action associated with actionId. More...
|
|
override void | Consider (IContext context) |
| Calculates the utility for this option given the provided context. More...
|
|
override IConsideration | Clone () |
| Creates a new instance of the implementing class. Note that the semantics here are somewhat vague, however, by convention the "Prototype Pattern" uses a "Clone" function. Note that this may have very different semantics when compared with either shallow or deep cloning. When implementing this remember to include only the defining characteristics of the class and not its state! More...
|
|
| Option () |
| Initializes a new instance of the T:Crystal.Option class. More...
|
|
| Option (string nameId, IOptionCollection collection) |
| Initializes a new instance of the T:Crystal.Option class. More...
|
|
bool | AddConsideration (IConsideration consideration) |
| Add the specified consideration. More...
|
|
bool | AddConsideration (string considerationId) |
| Add the consideration associated with the given Id. More...
|
|
| CompositeConsideration () |
| Initializes a new instance of the T:Crystal.CompositeConsideration class. More...
|
|
| CompositeConsideration (string nameId, IConsiderationCollection collection) |
| Initializes a new instance of the CompositeConsideration class. More...
|
|
T | Clone () |
| Creates a new instance of the implementing class. Note that the semantics here are somewhat vague, however, by convention the "Prototype Pattern" uses a "Clone" function. Note that this may have very different semantics when compared with either shallow or deep cloning. When implementing this remember to include only the defining characteristics of the class and not its state! More...
|
|
|
IAction | Action [get] |
| The action to be executed when this option is selected. More...
|
|
string | NameId [get, set] |
| An identifier for this consideration. More...
|
|
IMeasure | Measure [get, set] |
| The measure to be used to evaluate the utility of this consideration. More...
|
|
Utility | DefaultUtility [get, set] |
| Gets or sets the default utility. More...
|
|
Utility | Utility [get, protected set] |
| Returns the combined utility for this consideration. More...
|
|
float | Weight [get, set] |
| Gets the weight of this consideration. More...
|
|
bool | IsInverted [get, set] |
| If true, then the output of the associated evaluator is inverted, in effect, inverting the consideration. More...
|
|
IMeasure | Measure [get, set] |
| The measure to be used to evaluate the utility of this consideration. More...
|
|
string | NameId [get] |
| A unique named identifier for this consideration. More...
|
|
Utility | DefaultUtility [get, set] |
| Gets or sets the default utility. More...
|
|
Utility | Utility [get] |
| Returns the utility for this consideration. More...
|
|
float | Weight [get, set] |
| The weight of this consideration. More...
|
|
bool | IsInverted [get, set] |
| If true, then the output of the associated evaluator is inverted, in effect, inverting the consideration. More...
|
|
IAction | Action [get] |
| The action to be executed when this option is selected. More...
|
|
Normally this option class should serve all the "option" related needs of an AI.