Class DummyPartModule
Represents a lisrt module for a dummy part.
Implements
Inherited Members
Namespace: Loehnert.Lisrt.DummyPart
Assembly: Loehnert.Lisrt.DummyPart.dll
Syntax
public class DummyPartModule : LisrtModule, ILisrtModule, IInitializable, INotifyPropertyChangedEx, INotifyPropertyChanged, IHasServiceView
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.
Declaration
public DummyPartModule(string name, TypeDataModule typeDataModule)
Parameters
Type | Name | Description |
---|---|---|
String | name | 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.
Declaration
public DummyPartModule(string name, TypeDataModule typeDataModule, IShell shell)
Parameters
Type | Name | Description |
---|---|---|
String | name | Name of the module. |
TypeDataModule | typeDataModule | The TypeDataModule where the current definition depends on. |
IShell | shell | The shell for the service view model. |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException | Thrown when |
Properties
ClearStrategy
Gets or sets the clear strategy.
Declaration
public IClearStrategy ClearStrategy { get; set; }
Property Value
Type | Description |
---|---|
IClearStrategy |
CurrentDefinition
Gets the current definition.
Declaration
public TypeDefinition CurrentDefinition { get; }
Property Value
Type | Description |
---|---|
TypeDefinition |
Remarks
Depends on the TypeData loaded in the TypeDataModule.
CurrentTypeResult
Gets the current type result.
Declaration
public TypeResult CurrentTypeResult { get; }
Property Value
Type | Description |
---|---|
TypeResult |
Remarks
Depends on the TypeData loaded in the TypeDataModule.
Definitions
Gets the TypeDefinitions container.
Declaration
public TypeDefinitionsContainer Definitions { get; }
Property Value
Type | Description |
---|---|
TypeDefinitionsContainer |
DefinitionsName
Gets or sets the name of the definitions loaded on Initialize().
Declaration
[Configuration("DummyPartDefinitions", Description = "Name dummy part definitions")]
public string DefinitionsName { get; set; }
Property Value
Type | Description |
---|---|
String |
InitializationState
Gets a value indicating whether the module is initialized.
Declaration
public InitializationState InitializationState { get; }
Property Value
Type | Description |
---|---|
InitializationState |
IsCurrentTypeReleased
Gets a value indicating whether the CurrentTypeResult is released.
Declaration
public bool IsCurrentTypeReleased { get; }
Property Value
Type | Description |
---|---|
Boolean |
Results
Gets the TypeResults container.
Declaration
public TypeResultsContainer Results { get; }
Property Value
Type | Description |
---|---|
TypeResultsContainer |
TreeItem
Gets the module tree view model for the module.
Declaration
public override ITreeItem TreeItem { get; }
Property Value
Type | Description |
---|---|
ITreeItem |
Overrides
TypeDataModule
Gets the TypeDataModule.
Declaration
public TypeDataModule TypeDataModule { get; }
Property Value
Type | Description |
---|---|
TypeDataModule |
Methods
Exit()
De initializes the module.
Declaration
public void Exit()
GetTypeDataIdentifier(String)
Gets the type data identifier for the work piece defined in the CurrentDefinition.
Declaration
public string GetTypeDataIdentifier(string workPieceIdentifier)
Parameters
Type | Name | Description |
---|---|---|
String | workPieceIdentifier | Work piece to look for in the CurrentDefinitions DummyParts. |
Returns
Type | Description |
---|---|
String | The found type data identifier defined for the |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException | Thrown when |
System.InvalidOperationException | Thrown when InitializationState is not Initialized. |
System.InvalidOperationException | Thrown when CurrentDefinition is null. |
System.Collections.Generic.KeyNotFoundException | Thrown when |
Initialize()
Initializes the module while loading the Definitions.
Declaration
public void Initialize()
SetMeasureCycle(MeasureCycle)
Sets the measure cycle for the CurrentDefinition to the CurrentTypeResults Result, where the defined ItemIdentifier equals the ItemIdentifier.
Declaration
public void SetMeasureCycle(MeasureCycle measureCycle)
Parameters
Type | Name | Description |
---|---|---|
MeasureCycle | measureCycle | Measure cycle for a work piece and of a type required in the CurrentDefinition. |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException | Thrown when |
System.InvalidOperationException | Thrown when CurrentDefinition is null. |
System.ArgumentException | Thrown when measure cycle is not required. |
ShowServiceView()
Shows the service window.
Declaration
public void ShowServiceView()