Class SafetyGroup
Represents a TwinSAFE group.
public class SafetyGroup : PropertyChangedBase, INotifyPropertyChangedEx, ILisrtModule, INotifyPropertyChanged, IHasServiceView
- Inheritance
-
PropertyChangedBaseSafetyGroup
- Implements
-
INotifyPropertyChangedEx
- Inherited Members
-
PropertyChangedBase.Refresh()PropertyChangedBase.IsNotifyingPropertyChangedBase.PropertyChanged
Constructors
SafetyGroup(string, string)
Initializes a new instance of the SafetyGroup class.
public SafetyGroup(string moduleName, string groupName)
Parameters
moduleName
stringThe name of the module.
groupName
stringThe name of the group. Must be equal to th name defined in TwinSAFE.
Properties
DisableErrorMessages
Gets or sets a value indicating whether the error messages should be hidden.
public bool DisableErrorMessages { get; set; }
Property Value
Enabled
Gets or sets a value indicating whether the ILisrtModule instance is enabled.
public bool Enabled { get; set; }
Property Value
GroupName
Gets the name of the TwinSAFE group.
public string GroupName { get; }
Property Value
HasCommunicationError
Gets a value indicating whether one of the connections has a communication error.
public bool HasCommunicationError { get; }
Property Value
HasError
Gets a value indicating whether the group has an error.
public bool HasError { get; }
Property Value
HasFunctionBlockError
Gets a value indicating whether one of the function blocks has an error.
public bool HasFunctionBlockError { get; }
Property Value
HasOtherError
Gets a value indicating whether the group has an other error.
public bool HasOtherError { get; }
Property Value
Icon
Gets the icon.
public Uri Icon { get; }
Property Value
IsRunning
Gets a value indicating whether the group is running.
public bool IsRunning { get; }
Property Value
Name
Gets the name (key).
public string Name { get; }
Property Value
Parent
Gets or sets the parent module.
public ILisrtModule Parent { get; set; }
Property Value
TreeItem
Gets the view model for the module.
public ITreeItem TreeItem { get; }
Property Value
Methods
AcknowledgeError()
Acknowledges an error.
public void AcknowledgeError()
CreateServiceViewModel()
Creates the service view model.
protected virtual IDocument CreateServiceViewModel()
Returns
- IDocument
The service view model.
RegisterAlias(SafetyGroupAliasBase)
Registers an additional alias.
public void RegisterAlias(SafetyGroupAliasBase alias)
Parameters
alias
SafetyGroupAliasBaseAlias to register.
Exceptions
- ArgumentNullException
Thrown when
alias
is null.
RegisterAliases()
Registers the additional aliases.
protected virtual void RegisterAliases()
Run()
Runs the group.
public void Run()
ShowServiceView()
Shows the service view.
public void ShowServiceView()
Stop()
Stops the group.
public void Stop()