Crystal AI
1.0.0
|
Decision related options interface. More...
Public Member Functions | |
bool | SetAction (string actionId) |
Sets the action to be executed when this option is selected to the action associated with actionId. More... | |
![]() | |
bool | AddConsideration (IConsideration consideration) |
Add the specified consideration. More... | |
bool | AddConsideration (string considerationId) |
Add the consideration associated with the given Id. More... | |
![]() | |
void | Consider (IContext context) |
Calculates the utility given the specified context. 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... | |
Properties | |
IAction | Action [get] |
The action to be executed when this option is selected. 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... | |
Decision related options interface.
bool Crystal.IOption.SetAction | ( | string | actionId | ) |
Sets the action to be executed when this option is selected to the action associated with actionId.
actionId | The action identifier. |
Implemented in Crystal.Option.
|
get |
The action to be executed when this option is selected.