Class HighVoltageTesterModule
Represents a high voltage and insulation tester by Elabo.
Inheritance
Caliburn.Micro.PropertyChangedBase
HighVoltageTesterModule
Implements
Caliburn.Micro.INotifyPropertyChangedEx
System.ComponentModel.INotifyPropertyChanged
Inherited Members
Caliburn.Micro.PropertyChangedBase.Refresh()
Caliburn.Micro.PropertyChangedBase.NotifyOfPropertyChange(System.String)
Caliburn.Micro.PropertyChangedBase.NotifyOfPropertyChange<TProperty>(System.Linq.Expressions.Expression<System.Func<TProperty>>)
Caliburn.Micro.PropertyChangedBase.OnUIThread(System.Action)
Caliburn.Micro.PropertyChangedBase.Set<T>(T, T, System.String)
Caliburn.Micro.PropertyChangedBase.IsNotifying
Caliburn.Micro.PropertyChangedBase.PropertyChanged
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
Namespace: Loehnert.Lisrt.HighVoltageTester.Elabo
Assembly: Loehnert.Lisrt.HighVoltageTester.Elabo.dll
Syntax
public class HighVoltageTesterModule : InitializableCompositeModule, ICompositeModule, ILisrtModule, IInitializable, INotifyPropertyChangedEx, INotifyPropertyChanged, IHasServiceView
Constructors
HighVoltageTesterModule(String, ICommunication)
Initializes a new instance of the HighVoltageTesterModule class.
Declaration
public HighVoltageTesterModule(string name, ICommunication communication)
Parameters
Type | Name | Description |
---|---|---|
String | name | Name for the device. |
ICommunication | communication | Communication with the device. |
Properties
ActualState
Gets the state of device, when a test IsRunning.
Declaration
public TestState ActualState { get; }
Property Value
Type | Description |
---|---|
TestState |
HighVoltageTestSettings
Gets the settings for high voltage test.
Declaration
public HighVoltageTestSettings HighVoltageTestSettings { get; }
Property Value
Type | Description |
---|---|
HighVoltageTestSettings |
InsulationTestSettings
Gets the settings for insulation test.
Declaration
public InsulationTestSettings InsulationTestSettings { get; }
Property Value
Type | Description |
---|---|
InsulationTestSettings |
IsRunning
Gets a value indicating whether a test is running.
Declaration
public bool IsRunning { get; }
Property Value
Type | Description |
---|---|
Boolean |
TestMode
Gets or sets the measure mode.
Declaration
public TestMode TestMode { get; set; }
Property Value
Type | Description |
---|---|
TestMode |
Methods
GetTestState()
Request for state of device.
Declaration
public TestState GetTestState()
Returns
Type | Description |
---|---|
TestState | State of device. |
Exceptions
Type | Condition |
---|---|
System.InvalidOperationException | Thrown when module is not initialized. |
Initialize()
Initializes the object.
Declaration
public override void Initialize()
Overrides
RunTest()
Runs a Test.
Declaration
public TestResult RunTest()
Returns
Type | Description |
---|---|
TestResult |
Remarks
TestMode indicates which measurement will be done.
Exceptions
Type | Condition |
---|---|
System.InvalidOperationException | Thrown when module is not initialized. |
ShowServiceView()
Shows the service window.
Declaration
public void ShowServiceView()
StopTest()
Stops a running Test.
Declaration
public void StopTest()
Exceptions
Type | Condition |
---|---|
System.InvalidOperationException | Thrown when module is not initialized. |
Implements
Caliburn.Micro.INotifyPropertyChangedEx
System.ComponentModel.INotifyPropertyChanged