Table of Contents

Class LockableDoorModule

Namespace
Loehnert.Lisrt.IO
Assembly
Loehnert.Lisrt.IO.dll

Represents a door which can be locked.

public class LockableDoorModule : CompositeModule, INotifyPropertyChangedEx, ICompositeModule, ILisrtModule, INotifyPropertyChanged, IHasServiceView, IHasDeviceLabel
Inheritance
PropertyChangedBase
LockableDoorModule
Implements
INotifyPropertyChangedEx
Inherited Members
PropertyChangedBase.Refresh()
PropertyChangedBase.IsNotifying
PropertyChangedBase.PropertyChanged

Constructors

LockableDoorModule(string, params IInterlock[])

Initializes a new instance of the LockableDoorModule class.

public LockableDoorModule(string name, params IInterlock[] interlocks)

Parameters

name string

Name 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

string

Icon

Gets the icon.

public override Uri Icon { get; }

Property Value

Uri

InstanceID

Gets or sets the instance ID.

public int InstanceID { get; set; }

Property Value

int

IsClosed

Gets a value indicating whether the door is closed.

public virtual bool IsClosed { get; }

Property Value

bool

IsLocked

Gets a value indicating whether the door is locked.

public virtual bool IsLocked { get; }

Property Value

bool

LockingTimeout

Gets or sets the timeout in milliseconds for locking the door.

[Configuration(2000, Unit = "ms")]
public int LockingTimeout { get; set; }

Property Value

int

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).