Show / Hide Table of Contents

Class RecommendedBotActionViewModel

The view model for a bot action recommended by an urge.

Inheritance
object
BindableBase
RecommendedBotActionViewModel
Implements
INotifyPropertyChanged
Inherited Members
BindableBase.SetProperty<T>(ref T, T, string)
BindableBase.SetProperty<T>(ref T, T, Action, string)
BindableBase.RaisePropertyChanged(string)
BindableBase.OnPropertyChanged(PropertyChangedEventArgs)
BindableBase.PropertyChanged
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
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 Source

RecommendedBotActionViewModel(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 Source

ConsiderationMaxes

Gets the consideration maximum values.

Declaration
public string ConsiderationMaxes { get; }
Property Value
Type Description
string
View Source

ConsiderationNames

Gets the consideration names.

Declaration
public string ConsiderationNames { get; }
Property Value
Type Description
string
View Source

ConsiderationResults

Gets the consideration result values.

Declaration
public string ConsiderationResults { get; }
Property Value
Type Description
string
View Source

ConsiderationValues

Gets the consideration values.

Declaration
public string ConsiderationValues { get; }
Property Value
Type Description
string
View Source

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)>
View Source

IsRunning

Gets a value indicating whether or not the action was chosen.

Declaration
public bool IsRunning { get; }
Property Value
Type Description
bool
View Source

Iteration

Gets the brain iteration.

Declaration
public uint Iteration { get; }
Property Value
Type Description
uint
View Source

Name

Gets the action name.

Declaration
public string Name { get; }
Property Value
Type Description
string
View Source

RawUrgency

Gets the raw urgency, before considerations are applied.

Declaration
public double? RawUrgency { get; }
Property Value
Type Description
double?
View Source

Urge

Gets the urge name.

Declaration
public string Urge { get; }
Property Value
Type Description
string
View Source

Urgency

Gets the urgency.

Declaration
public float Urgency { get; }
Property Value
Type Description
float

Implements

INotifyPropertyChanged

Extension Methods

INotifyPropertyChangedExtensions.OnPropertyChanged(INotifyPropertyChanged, string, Action)
INotifyPropertyChangedExtensions.OnPropertyChanged(INotifyPropertyChanged, string, Action<object?, string>)
INotifyPropertyChangedExtensions.OnPropertyChangedUntil(INotifyPropertyChanged, string, Func<bool>)
INotifyPropertyChangedExtensions.OnPropertyChangedUntil(INotifyPropertyChanged, string, Func<object?, string, bool>)
  • View Source
In this article
Back to top Generated by DocFX