Show / Hide Table of Contents

Class QualityPassViewModel

The view model for a quality pass.

Inheritance
object
BindableBase
ViewModelBase
AutomationViewModelBase
QualityPassViewModel
Implements
INotifyPropertyChanged
IDisposable
Inherited Members
AutomationViewModelBase.AllFileTypeFilter
AutomationViewModelBase.Events
AutomationViewModelBase.EventSubscriber
AutomationViewModelBase.PromptToOpenFile(string, string, bool, string)
AutomationViewModelBase.PromptToSaveFile(string, string, string)
AutomationViewModelBase.LoadResourceDictionary(string, Type)
AutomationViewModelBase.AddResourceDictionaryTo(FrameworkElement, string, Type)
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 QualityPassViewModel : AutomationViewModelBase, INotifyPropertyChanged, IDisposable

Constructors

View Source

QualityPassViewModel(IOvermindHelper, Transient<DevicePoolViewModel>, ScenarioTreeViewModel, OvermindUIHelpers, IServiceProvider)

Initializes a new instance of the QualityPassViewModel class.

Declaration
public QualityPassViewModel(IOvermindHelper overmindHelper, Transient<DevicePoolViewModel> devicePool, ScenarioTreeViewModel scenarioTree, OvermindUIHelpers uiHelpers, IServiceProvider services)
Parameters
Type Name Description
IOvermindHelper overmindHelper

The overmind helper.

Transient<DevicePoolViewModel> devicePool

The device pool view model.

ScenarioTreeViewModel scenarioTree

The scenario tree view model.

OvermindUIHelpers uiHelpers

The overmind UI helpers.

IServiceProvider services

The service provider used to log and send telemetry.

Properties

View Source

AvailableSaveOptions

Gets the collection of available save options for the quality pass.

Declaration
public ICollection<string> AvailableSaveOptions { get; }
Property Value
Type Description
ICollection<string>
View Source

BrainUpdater

Gets the overmind brain updater.

Declaration
protected IOvermindUpdater BrainUpdater { get; }
Property Value
Type Description
IOvermindUpdater
View Source

CanStartQualityPass

Gets a value indicating whether or not the quality pass can start.

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

DevicePool

Gets the device pool.

Declaration
public DevicePoolViewModel DevicePool { get; }
Property Value
Type Description
DevicePoolViewModel
View Source

FilePath

Gets the quality pass file path.

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

HasUnsavedChanges

Gets a value indicating whether this quality pass has unsaved changes.

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

IsDirty

Gets a value indicating whether there are unsaved changes in this quality pass or its contents.

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

IsPaused

Gets a value indicating whether or not the quality pass is paused.

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

IsRunning

Gets a value indicating whether or not the quality pass is running.

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

IsSaveAsSelected

Gets a value indicating whether or not the save-as option is selected.

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

LoadQualityPassFileCommand

Gets the command to choose a quality pass from a file.

Declaration
public DelegateCommand LoadQualityPassFileCommand { get; }
Property Value
Type Description
DelegateCommand
View Source

Name

Gets the quality pass name.

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

NumDevicesInPool

Gets how many devices are currently in the pool for the quality pass.

Declaration
public int NumDevicesInPool { get; }
Property Value
Type Description
int
View Source

NumDevicesRequired

Gets how many devices are required for the quality pass.

Declaration
public int NumDevicesRequired { get; }
Property Value
Type Description
int
View Source

OvermindTelemetryClient

Gets the overmind telemetry client.

Declaration
protected IOvermindTelemetryClient? OvermindTelemetryClient { get; }
Property Value
Type Description
IOvermindTelemetryClient
View Source

PauseCommand

Gets the command to pause the quality pass.

Declaration
public DelegateCommand PauseCommand { get; }
Property Value
Type Description
DelegateCommand
View Source

SaveOrSaveAsQualityPassFileCommand

Gets the command to save or save-as the quality pass.

Declaration
public DelegateCommand<string> SaveOrSaveAsQualityPassFileCommand { get; }
Property Value
Type Description
DelegateCommand<string>
View Source

SaveQualityPassFileCommand

Gets the command to save the quality pass to a file.

Declaration
public DelegateCommand SaveQualityPassFileCommand { get; }
Property Value
Type Description
DelegateCommand
View Source

SaveTooltip

Gets the tooltip for the button to save the quality pass.

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

ScenarioTreeViewContext

Gets the selected item in the scenario tree view.

Declaration
public IScenarioTreeItem? ScenarioTreeViewContext { get; }
Property Value
Type Description
IScenarioTreeItem
View Source

Scenarios

Gets the scenario tree view.

Declaration
public ScenarioTreeViewModel Scenarios { get; }
Property Value
Type Description
ScenarioTreeViewModel
View Source

SelectedSaveImage

Gets the image to display for the selected save option.

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

SelectedSaveOption

Gets or sets the selected save option for the quality pass.

Declaration
public string? SelectedSaveOption { get; set; }
Property Value
Type Description
string
View Source

SelectedScenario

Gets the selected scenario in the scenario tree view, or if a role is selected, returns its scenario.

Declaration
protected IRoleBasedScenarioViewModel? SelectedScenario { get; }
Property Value
Type Description
IRoleBasedScenarioViewModel
View Source

Serializer

Gets the overmind brain serializer.

Declaration
protected IOvermindSerializer Serializer { get; }
Property Value
Type Description
IOvermindSerializer
View Source

StartCommand

Gets the command to start the quality pass.

Declaration
public DelegateCommand StartCommand { get; }
Property Value
Type Description
DelegateCommand
View Source

StartTooltip

Gets the tooltip for the button to start the quality pass.

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

StopCommand

Gets the command to stop the quality pass.

Declaration
public DelegateCommand StopCommand { get; }
Property Value
Type Description
DelegateCommand
View Source

TelemetryClient

Gets the telemetry client.

Declaration
protected override ITelemetryClient? TelemetryClient { get; }
Property Value
Type Description
ITelemetryClient
Overrides
ViewModelBase.TelemetryClient

Methods

View Source

Dispose()

Removes all event handlers.

Declaration
public override void Dispose()
Overrides
AutomationViewModelBase.Dispose()
View Source

InitializeSerializerAsync()

Initializes the overmind serializer and loads runtime data for the quality pass.

Declaration
public Task InitializeSerializerAsync()
Returns
Type Description
Task

A task.

View Source

LoadByName(string)

Loads a quality pass by name.

Declaration
public void LoadByName(string name)
Parameters
Type Name Description
string name

The quality pass name.

View Source

LoadFile(string)

Loads a quality pass from a file.

Declaration
public void LoadFile(string filePath)
Parameters
Type Name Description
string filePath

The file to load.

View Source

LoadScenarios()

Loads the scenarios from the current quality pass to be displayed in the UI.

Declaration
public void LoadScenarios()
View Source

PromptToOptionallySaveChanges(string)

Prompts the user to optionally save changes to a file.

Declaration
public bool? PromptToOptionallySaveChanges(string customNote)
Parameters
Type Name Description
string customNote

The custom note to appear in the prompt message.

Returns
Type Description
bool?

A value indicating whether a prompt was not canceled.

View Source

Reset()

Resets the quality pass to a blank state.

Declaration
public void Reset()
View Source

ToString()

Returns a string that represents the current object.

Declaration
public override string ToString()
Returns
Type Description
string

A string that represents the current object.

Overrides
object.ToString()

Implements

INotifyPropertyChanged
IDisposable

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