Responsible for producing contexts and instances of data used by UtilityReasoner.
More...
|
string | Name [get] |
| Provides a name of this blueprint and instances it produces. More...
|
|
Responsible for producing contexts and instances of data used by UtilityReasoner.
- Template Parameters
-
InstanceType | Type of objects which can be produced from Blueprints and selected by Selector. By default - Behavior. |
ContextType | Type of objects which can be paired with Blueprints of InstanceType and evaluated by Selector. Data contained in ContextType object must contain all information needed to produce an instance from Blueprint. By default - ValueTuple(AIEntity, Blackboard). |
DataType | Type of objects from which ContextType can be generated. Be default - AIEntity. |
◆ Blueprint()
Constructor.
- Parameters
-
name | Name of this blueprint. |
contextProducer | Delegate responsible for producing collection of ContextTypes. |
instanceProducer | Delegate responsible for producing instance of InstanceType based on provided ContextType. |
◆ ContextProducerDelegate()
delegate List<ContextType> Grail.Utility.Blueprint< InstanceType, ContextType, DataType >.ContextProducerDelegate |
( |
in DataType |
data | ) |
|
Delegate allowing for production of collections of ContextTypes given provided DataType.
◆ InstanceProducerDelegate()
delegate InstanceType Grail.Utility.Blueprint< InstanceType, ContextType, DataType >.InstanceProducerDelegate |
( |
in ContextType |
context | ) |
|
Delegate allowing for production of instances of InstanceType given provided ContextType.
◆ ProduceContexts()
List<ContextType> Grail.Utility.Blueprint< InstanceType, ContextType, DataType >.ProduceContexts |
( |
in DataType |
data | ) |
|
|
inline |
Uses ContextProducerDelegate provided in constructor to produce collection of ContextTypes.
- Parameters
-
data | Object containing data necessary to produce contexts. |
- Returns
- Collection of produces ContextTypes.
◆ ProduceInstance()
InstanceType Grail.Utility.Blueprint< InstanceType, ContextType, DataType >.ProduceInstance |
( |
in ContextType |
context | ) |
|
|
inline |
Uses InstanceProducerDelegate provided in constructor to produce instance of InstanceType based on given ContextType.
- Parameters
-
context | Context object containing data necessary to produce an instance. |
- Returns
- New instance of InstanceType.
◆ Name
Provides a name of this blueprint and instances it produces.
The documentation for this class was generated from the following file:
- GrailUtilityAI/source/Blueprint.cs