Show / Hide Table of Contents

Class RequirementViewModel

The view model for a requirement on a selected scenario in the overmind UI.

Inheritance
object
BindableBase
ViewModelBase
DetailsViewModel
DetailsViewModel<IRequirement>
RequirementViewModel
Implements
INotifyPropertyChanged
IRequirementViewModel
IOnSelected
Inherited Members
DetailsViewModel<IRequirement>.ParameterNames
DetailsViewModel<IRequirement>.Item
DetailsViewModel<IRequirement>.TelemetryClient
DetailsViewModel<IRequirement>.ToString()
DetailsViewModel<IRequirement>.ResetParameters()
DetailsViewModel<IRequirement>.CreateParameters()
DetailsViewModel.ParameterEditor
DetailsViewModel.ParameterFactory
DetailsViewModel.OnSelected(object)
ViewModelBase.Services
ViewModelBase.Logger
ViewModelBase.LogVerboseException(Exception, string, string)
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)
Namespace: Phoenix.BotBrain.Overmind
Assembly: Phoenix.Plugin.BotBrain.Overmind.dll
Syntax
public class RequirementViewModel : DetailsViewModel<IRequirement>, INotifyPropertyChanged, IRequirementViewModel, IOnSelected

Constructors

View Source

RequirementViewModel(IParameterFactory, IServiceProvider, QualityPassViewModel, IEventAggregator)

Initializes a new instance of the RequirementViewModel class.

Declaration
public RequirementViewModel(IParameterFactory parameterFactory, IServiceProvider services, QualityPassViewModel qualityPass, IEventAggregator eventAggregator)
Parameters
Type Name Description
IParameterFactory parameterFactory

The parameter factory.

IServiceProvider services

The service provider used for construction.

QualityPassViewModel qualityPass

The quality pass.

IEventAggregator eventAggregator

The event aggregator.

Properties

View Source

CanEdit

Gets a value indicating whether or not parameters are editable.

Declaration
protected override bool CanEdit { get; }
Property Value
Type Description
bool
Overrides
DetailsViewModel.CanEdit
View Source

Name

Gets the name.

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

QualityPass

Gets the quality pass.

Declaration
public QualityPassViewModel QualityPass { get; }
Property Value
Type Description
QualityPassViewModel
View Source

Requirement

Gets or sets a requirement that must be satisfied to complete the scenario.

Declaration
public IRequirement Requirement { get; set; }
Property Value
Type Description
IRequirement
View Source

Scenario

Gets or sets the scenario view model.

Declaration
public IRoleBasedScenarioViewModel? Scenario { get; set; }
Property Value
Type Description
IRoleBasedScenarioViewModel

Methods

View Source

OnParameterChanged(string)

Called when a parameter value changes.

Declaration
protected override void OnParameterChanged(string parameterName)
Parameters
Type Name Description
string parameterName

The parameter name.

Overrides
DetailsViewModel<IRequirement>.OnParameterChanged(string)

Implements

INotifyPropertyChanged
IRequirementViewModel
IOnSelected

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