Class DummyPartModule
Represents a lisrt module for a dummy part.
public class DummyPartModule : LisrtModule, ILisrtModule, IInitializable, INotifyPropertyChangedEx, INotifyPropertyChanged, IHasServiceView
- Inheritance
-
PropertyChangedBaseDummyPartModule
- Implements
-
INotifyPropertyChangedEx
- Inherited Members
-
PropertyChangedBase.Refresh()PropertyChangedBase.IsNotifyingPropertyChangedBase.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
stringName of the module.
typeDataModule
TypeDataModuleThe 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
stringName of the module.
typeDataModule
TypeDataModuleThe TypeDataModule where the current definition depends on.
shell
IShellThe shell for the service view model.
Exceptions
- ArgumentNullException
Thrown when
typeDataModule
orshell
is null, orname
is null, empty or whitespace.
Properties
ClearStrategy
Gets or sets the clear strategy.
public IClearStrategy ClearStrategy { get; set; }
Property Value
CurrentDefinition
Gets the current definition.
public TypeDefinition CurrentDefinition { get; }
Property Value
Remarks
Depends on the TypeData loaded in the TypeDataModule.
CurrentTypeResult
Gets the current type result.
public TypeResult CurrentTypeResult { get; }
Property Value
Remarks
Depends on the TypeData loaded in the TypeDataModule.
Definitions
Gets the TypeDefinitions container.
public TypeDefinitionsContainer Definitions { get; }
Property Value
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
InitializationState
Gets a value indicating whether the module is initialized.
public InitializationState InitializationState { get; }
Property Value
IsCurrentTypeReleased
Gets a value indicating whether the CurrentTypeResult is released.
public bool IsCurrentTypeReleased { get; }
Property Value
Results
Gets the TypeResults container.
public TypeResultsContainer Results { get; }
Property Value
TreeItem
Gets the module tree view model for the module.
public override ITreeItem TreeItem { get; }
Property Value
TypeDataModule
Gets the TypeDataModule.
public TypeDataModule TypeDataModule { get; }
Property Value
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
stringWork 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
MeasureCycleMeasure 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()