Class LockableDoorModule
Represents a door which can be locked.
public class LockableDoorModule : CompositeModule, INotifyPropertyChangedEx, ICompositeModule, ILisrtModule, INotifyPropertyChanged, IHasServiceView, IHasDeviceLabel
- Inheritance
-
PropertyChangedBaseLockableDoorModule
- Implements
-
INotifyPropertyChangedEx
- Inherited Members
-
PropertyChangedBase.Refresh()PropertyChangedBase.IsNotifyingPropertyChangedBase.PropertyChanged
Constructors
LockableDoorModule(string, params IInterlock[])
Initializes a new instance of the LockableDoorModule class.
public LockableDoorModule(string name, params IInterlock[] interlocks)
Parameters
name
stringName of the module.
interlocks
IInterlock[]Interlocks for locking the door.
Properties
DeviceLabel
Gets or sets the device label.
[Configuration("")]
public string DeviceLabel { get; set; }
Property Value
Icon
Gets the icon.
public override Uri Icon { get; }
Property Value
InstanceID
Gets or sets the instance ID.
public int InstanceID { get; set; }
Property Value
IsClosed
Gets a value indicating whether the door is closed.
public virtual bool IsClosed { get; }
Property Value
IsLocked
Gets a value indicating whether the door is locked.
public virtual bool IsLocked { get; }
Property Value
LockingTimeout
Gets or sets the timeout in milliseconds for locking the door.
[Configuration(2000, Unit = "ms")]
public int LockingTimeout { get; set; }
Property Value
Methods
Lock()
Locks the door.
public virtual void Lock()
Exceptions
- InvalidOperationException
Throw when interlock is not closed.
- TimeoutException
Thrown when interlock is not locked in the expected time span (see LockingTimeout).
ShowServiceView()
Shows the service view.
public virtual void ShowServiceView()
Unlock()
Unlocks the door.
public virtual void Unlock()
Exceptions
- TimeoutException
Thrown when interlock is not unlocked in the expected time span (see LockingTimeout).