Class RecommendedAction<T>
Represents an action that has a weight (an urgency) corresponding to it.
Inherited Members
Namespace: Microsoft.XboxStudios.BotBrain
Assembly: BotBrain.Core.dll
Syntax
public class RecommendedAction<T> : IRecommendedAction<T>, IRecommendedAction
Type Parameters
| Name | Description |
|---|---|
| T | The type of the action. |
Remarks
Initializes a new instance of the RecommendedAction<T> class.
Constructors
View SourceRecommendedAction(double, T)
Represents an action that has a weight (an urgency) corresponding to it.
Declaration
[JsonConstructor]
public RecommendedAction(double urgency, T action)
Parameters
| Type | Name | Description |
|---|---|---|
| double | urgency | The urgency for the action. |
| T | action | The action. |
Remarks
Initializes a new instance of the RecommendedAction<T> class.
RecommendedAction(T)
Initializes a new instance of the RecommendedAction<T> class.
Declaration
public RecommendedAction(T action)
Parameters
| Type | Name | Description |
|---|---|---|
| T | action | The action. |
Properties
View SourceAction
Gets the action.
Declaration
public T Action { get; }
Property Value
| Type | Description |
|---|---|
| T |
Urgency
Gets the urgency for the action.
Declaration
public double Urgency { get; }
Property Value
| Type | Description |
|---|---|
| double |
Methods
View SourceToString()
Returns a string that represents the current object.
Declaration
public override string ToString()
Returns
| Type | Description |
|---|---|
| string | A string that represents the current object. |