Crystal AI  1.0.0
Crystal.IConsideration Interface Reference

Interface to a consideration. More...

Inheritance diagram for Crystal.IConsideration:
Crystal.IAiPrototype< IConsideration > Crystal.ConsiderationBase< TContext > Crystal.ConsiderationBase< TContext > Crystal.ICompositeConsideration Crystal.CompositeConsideration Crystal.IBehaviour Crystal.IOption Crystal.Behaviour Crystal.Option Crystal.Behaviour Crystal.Option Crystal.ConstantUtilityOption Crystal.ConstantUtilityOption

Public Member Functions

void Consider (IContext context)
 Calculates the utility given the specified context. More...
 
- Public Member Functions inherited from Crystal.IAiPrototype< 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...
 

Properties

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...
 

Detailed Description

Interface to a consideration.

See also
T:Crystal.IAiPrototype`1

Member Function Documentation

void Crystal.IConsideration.Consider ( IContext  context)

Calculates the utility given the specified context.

Parameters
contextThe context.
Returns
The utility.

Implemented in Crystal.CompositeConsideration, Crystal.ConsiderationBase< TContext >, Crystal.Option, and Crystal.ConstantUtilityOption.

Property Documentation

Utility Crystal.IConsideration.DefaultUtility
getset

Gets or sets the default utility.

bool Crystal.IConsideration.IsInverted
getset

If true, then the output of the associated evaluator is inverted, in effect, inverting the consideration.

string Crystal.IConsideration.NameId
get

A unique named identifier for this consideration.

Utility Crystal.IConsideration.Utility
get

Returns the utility for this consideration.

float Crystal.IConsideration.Weight
getset

The weight of this consideration.


The documentation for this interface was generated from the following file: