Table of Contents

Class DummyPartModule

Namespace
Loehnert.Lisrt.DummyPart
Assembly
Loehnert.Lisrt.DummyPart.dll

Represents a lisrt module for a dummy part.

public class DummyPartModule : LisrtModule, ILisrtModule, IInitializable, INotifyPropertyChangedEx, INotifyPropertyChanged, IHasServiceView
Inheritance
PropertyChangedBase
DummyPartModule
Implements
INotifyPropertyChangedEx
Inherited Members
PropertyChangedBase.Refresh()
PropertyChangedBase.IsNotifying
PropertyChangedBase.PropertyChanged

Constructors

DummyPartModule(string, TypeDataModule)

Initializes a new instance of the DummyPartModule class. Calls the DummyPartModule(string, TypeDataModule, IShell) while getting the IShell by Caliburn.Micro.IoC.

public DummyPartModule(string name, TypeDataModule typeDataModule)

Parameters

name string

Name of the module.

typeDataModule TypeDataModule

The TypeDataModule where the current definition depends on.

DummyPartModule(string, TypeDataModule, IShell)

Initializes a new instance of the DummyPartModule class.

public DummyPartModule(string name, TypeDataModule typeDataModule, IShell shell)

Parameters

name string

Name of the module.

typeDataModule TypeDataModule

The TypeDataModule where the current definition depends on.

shell IShell

The shell for the service view model.

Exceptions

ArgumentNullException

Thrown when typeDataModule or shell is null, or name is null, empty or whitespace.

Properties

ClearStrategy

Gets or sets the clear strategy.

public IClearStrategy ClearStrategy { get; set; }

Property Value

IClearStrategy

CurrentDefinition

Gets the current definition.

public TypeDefinition CurrentDefinition { get; }

Property Value

TypeDefinition

Remarks

Depends on the TypeData loaded in the TypeDataModule.

CurrentTypeResult

Gets the current type result.

public TypeResult CurrentTypeResult { get; }

Property Value

TypeResult

Remarks

Depends on the TypeData loaded in the TypeDataModule.

Definitions

Gets the TypeDefinitions container.

public TypeDefinitionsContainer Definitions { get; }

Property Value

TypeDefinitionsContainer

DefinitionsName

Gets or sets the name of the definitions loaded on Initialize().

[Configuration("DummyPartDefinitions", Description = "Name dummy part definitions")]
public string DefinitionsName { get; set; }

Property Value

string

InitializationState

Gets a value indicating whether the module is initialized.

public InitializationState InitializationState { get; }

Property Value

InitializationState

IsCurrentTypeReleased

Gets a value indicating whether the CurrentTypeResult is released.

public bool IsCurrentTypeReleased { get; }

Property Value

bool

Results

Gets the TypeResults container.

public TypeResultsContainer Results { get; }

Property Value

TypeResultsContainer

TreeItem

Gets the module tree view model for the module.

public override ITreeItem TreeItem { get; }

Property Value

ITreeItem

TypeDataModule

Gets the TypeDataModule.

public TypeDataModule TypeDataModule { get; }

Property Value

TypeDataModule

Methods

Exit()

De initializes the module.

public void Exit()

GetTypeDataIdentifier(string)

Gets the type data identifier for the work piece defined in the CurrentDefinition.

public string GetTypeDataIdentifier(string workPieceIdentifier)

Parameters

workPieceIdentifier string

Work piece to look for in the CurrentDefinitions DummyParts.

Returns

string

The found type data identifier defined for the workPieceIdentifier.

Exceptions

ArgumentNullException

Thrown when workPieceIdentifier is null, empty or whitespace.

InvalidOperationException

Thrown when InitializationState is not Initialized.

InvalidOperationException

Thrown when CurrentDefinition is null.

KeyNotFoundException

Thrown when workPieceIdentifier is not found in CurrentDefinition.

Initialize()

Initializes the module while loading the Definitions.

public void Initialize()

SetMeasureCycle(MeasureCycle)

Sets the measure cycle for the CurrentDefinition to the CurrentTypeResults Result, where the defined ItemIdentifier equals the ItemIdentifier.

public void SetMeasureCycle(MeasureCycle measureCycle)

Parameters

measureCycle MeasureCycle

Measure cycle for a work piece and of a type required in the CurrentDefinition.

Exceptions

ArgumentNullException

Thrown when measureCycle is null.

InvalidOperationException

Thrown when CurrentDefinition is null.

ArgumentException

Thrown when measure cycle is not required.

ShowServiceView()

Shows the service window.

public void ShowServiceView()