Class RequirementViewModel
The view model for a requirement on a selected scenario in the overmind UI.
Inheritance
RequirementViewModel
  Inherited Members
Namespace: Phoenix.BotBrain.Overmind
Assembly: Phoenix.Plugin.BotBrain.Overmind.dll
Syntax
public class RequirementViewModel : DetailsViewModel<IRequirement>, INotifyPropertyChanged, IRequirementViewModel, IOnSelectedConstructors
View SourceRequirementViewModel(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 SourceCanEdit
Gets a value indicating whether or not parameters are editable.
Declaration
protected override bool CanEdit { get; }Property Value
| Type | Description | 
|---|---|
| bool | 
Overrides
View SourceName
Gets the name.
Declaration
public string Name { get; }Property Value
| Type | Description | 
|---|---|
| string | 
QualityPass
Gets the quality pass.
Declaration
public QualityPassViewModel QualityPass { get; }Property Value
| Type | Description | 
|---|---|
| QualityPassViewModel | 
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 | 
Scenario
Gets or sets the scenario view model.
Declaration
public IRoleBasedScenarioViewModel? Scenario { get; set; }Property Value
| Type | Description | 
|---|---|
| IRoleBasedScenarioViewModel | 
Methods
View SourceOnParameterChanged(string)
Called when a parameter value changes.
Declaration
protected override void OnParameterChanged(string parameterName)Parameters
| Type | Name | Description | 
|---|---|---|
| string | parameterName | The parameter name. |