Class RecommendedBotActionViewModel
The view model for a bot action recommended by an urge.
Implements
Inherited Members
Namespace: Phoenix.BotBrain
Assembly: Phoenix.Plugin.BotBrain.BrainEditor.dll
Syntax
public class RecommendedBotActionViewModel : BindableBase, INotifyPropertyChanged
Remarks
Initializes a new instance of the RecommendedBotActionViewModel class.
Constructors
View SourceRecommendedBotActionViewModel(uint, string, string, float, double?, bool, IReadOnlyCollection<(string Name, float Value, float Max, float? Final)>)
The view model for a bot action recommended by an urge.
Declaration
public RecommendedBotActionViewModel(uint iteration, string name, string urge, float urgency, double? rawUrgency, bool isRunning, IReadOnlyCollection<(string Name, float Value, float Max, float? Final)> considerations)
Parameters
| Type | Name | Description |
|---|---|---|
| uint | iteration | The brain iteration. |
| string | name | The action name. |
| string | urge | The urge name. |
| float | urgency | The urgency. |
| double? | rawUrgency | The raw urgency, before considerations are applied. |
| bool | isRunning | A value indicating whether or not the action was chosen. |
| IReadOnlyCollection<(string Name, float Value, float Max, float? Final)> | considerations | The consideration info. |
Remarks
Initializes a new instance of the RecommendedBotActionViewModel class.
Properties
View SourceConsiderationMaxes
Gets the consideration maximum values.
Declaration
public string ConsiderationMaxes { get; }
Property Value
| Type | Description |
|---|---|
| string |
ConsiderationNames
Gets the consideration names.
Declaration
public string ConsiderationNames { get; }
Property Value
| Type | Description |
|---|---|
| string |
ConsiderationResults
Gets the consideration result values.
Declaration
public string ConsiderationResults { get; }
Property Value
| Type | Description |
|---|---|
| string |
ConsiderationValues
Gets the consideration values.
Declaration
public string ConsiderationValues { get; }
Property Value
| Type | Description |
|---|---|
| string |
Considerations
Gets information on the brain's considerations.
Declaration
public IReadOnlyCollection<(string Name, float Value, float Max, float? Final)> Considerations { get; }
Property Value
| Type | Description |
|---|---|
| IReadOnlyCollection<(string Name, float Value, float Max, float? Final)> |
IsRunning
Gets a value indicating whether or not the action was chosen.
Declaration
public bool IsRunning { get; }
Property Value
| Type | Description |
|---|---|
| bool |
Iteration
Gets the brain iteration.
Declaration
public uint Iteration { get; }
Property Value
| Type | Description |
|---|---|
| uint |
Name
Gets the action name.
Declaration
public string Name { get; }
Property Value
| Type | Description |
|---|---|
| string |
RawUrgency
Gets the raw urgency, before considerations are applied.
Declaration
public double? RawUrgency { get; }
Property Value
| Type | Description |
|---|---|
| double? |
Urge
Gets the urge name.
Declaration
public string Urge { get; }
Property Value
| Type | Description |
|---|---|
| string |
Urgency
Gets the urgency.
Declaration
public float Urgency { get; }
Property Value
| Type | Description |
|---|---|
| float |