.NET Based OPC UA Client/Server SDK
3.3.0.530
|
This VariableType defines the general characteristics of a DiscreteItem that can have two states. More...
Inherits UnifiedAutomation.UaServer.DiscreteItemModel.
Public Member Functions | |||
TwoStateDiscreteModel () | |||
Initializes a new instance of the TwoStateDiscreteModel class. More... | |||
TwoStateDiscreteModel (TwoStateDiscreteModel template, DummyArgument dummy=null) | |||
Initializes a new instance of the TwoStateDiscreteModel class. More... | |||
Public Member Functions inherited from UnifiedAutomation.UaServer.DiscreteItemModel | |||
DiscreteItemModel () | |||
Initializes a new instance of the DiscreteItemModel class. More... | |||
DiscreteItemModel (DiscreteItemModel template, DummyArgument dummy=null) | |||
Initializes a new instance of the DiscreteItemModel class. More... | |||
Public Member Functions inherited from UnifiedAutomation.UaServer.DataItemModel | |||
DataItemModel () | |||
Initializes a new instance of the DataItemModel class. More... | |||
DataItemModel (DataItemModel template, DummyArgument dummy=null) | |||
Initializes a new instance of the DataItemModel class. More... | |||
Public Member Functions inherited from UnifiedAutomation.UaServer.BaseDataVariableModel | |||
BaseDataVariableModel () | |||
Initializes a new instance of the BaseDataVariableModel class. More... | |||
BaseDataVariableModel (BaseDataVariableModel template, DummyArgument dummy=null) | |||
Initializes a new instance of the BaseDataVariableModel class. More... | |||
Public Member Functions inherited from UnifiedAutomation.UaServer.BaseVariableModel | |||
BaseVariableModel () | |||
Initializes a new instance of the BaseVariableModel class. More... | |||
BaseVariableModel (BaseVariableModel template, DummyArgument dummy=null) | |||
Initializes a new instance of the BaseVariableModel class. More... | |||
Public Member Functions inherited from UnifiedAutomation.UaServer.ModelControllerBase | |||
virtual ModelHandle | GetModelHandle (StringTable namespaceUris, object instance) | ||
Gets the metadata handle. More... | |||
virtual DataValue | GetValue (IMapperContext context, ModelMapping mapping) | ||
Gets the value associated with the mapping. More... | |||
virtual bool | SetValue (IMapperContext context, ModelMapping mapping, DataValue value) | ||
Sets the value associated with the mapping. More... | |||
StatusCode | GetStatusCode (string propertyName) | ||
Retrieve the status code for the given property. If no status code was explicitly set, StatusCodes.Good will be returned.
| |||
void | SetStatusCode (string propertyName, StatusCode statusCode) | ||
Sets the status code of the given property. More... | |||
Properties | |
new bool | Value [get, set] |
Gets or sets the value. More... | |
LocalizedText | FalseState [get, set] |
FalseState contains a string to be associated with this DataItem when it is FALSE. More... | |
LocalizedText | TrueState [get, set] |
TrueState contains a string to be associated with this DataItem when it is TRUE. More... | |
Properties inherited from UnifiedAutomation.UaServer.DataItemModel | |
string | Definition [get, set] |
A vendor-specific, human readable string that specifies how the value of this DataItem is calculated. More... | |
double | ValuePrecision [get, set] |
Specifies the maximum precision that the server can maintain for the item based on restrictions in the target environment. More... | |
Properties inherited from UnifiedAutomation.UaServer.BaseVariableModel | |
object | Value [get, set] |
Gets or sets the value. More... | |
Properties inherited from UnifiedAutomation.UaServer.ModelControllerBase | |
ModelHandle | ModelHandle [get, set] |
Gets or sets the metadata handle. More... | |
object | UserData [get, set] |
Gets or sets the user data. More... | |
Properties inherited from UnifiedAutomation.UaServer.INotifyStatusCodeInfo | |
bool | HasStatusCodes [get] |
true if no property has an explicit set status code. Hence when all status codes are implicit StatusCodes.Good. More... | |
Additional Inherited Members | |
Public Attributes inherited from UnifiedAutomation.UaServer.ModelControllerBase | |
bool | HasStatusCodes => m_statusCodes != null && m_statusCodes.Count > 0 |
Protected Member Functions inherited from UnifiedAutomation.UaServer.ModelControllerBase | |
void | RaisePropertyChangedEvent ([CallerMemberName] string propertyName=null) |
Raises an property change event. More... | |
void | RaisePropertyChangeRequestedEvent< T > (T value, [CallerMemberName] string propertyName=null) |
Called when the value of a property is supposed to be changed. More... | |
bool | SetField< T > (ref T field, T value, [CallerMemberName] string propertyName=null) |
Sets the backing field to the new value, and triggers a property change event, if the value has changed. More... | |
Events inherited from UnifiedAutomation.UaServer.ModelControllerBase | |
PropertyChangedEventHandler | PropertyChanged |
Occurs when a property value changes. More... | |
EventHandler < PropertyChangeRequestedEventArgs > | PropertyChangeRequested |
The event is emitted just before the value will be changed, and gives the observer the opportunity to reject or adjust (e.g. clamp) the property change by setting the PropertyChangeRequestedEventArgs.StatusCode and PropertyChangeRequestedEventArgs.Value properties. More... | |
EventHandler < StatusCodeChangedEventArgs > | StatusCodeChanged |
Events inherited from UnifiedAutomation.UaServer.INotifyPropertyChangeRequested | |
EventHandler < PropertyChangeRequestedEventArgs > | PropertyChangeRequested |
The property change request event. More... | |
Events inherited from UnifiedAutomation.UaServer.INotifyStatusCodeInfo | |
EventHandler < StatusCodeChangedEventArgs > | StatusCodeChanged |
Occurs if the status code of a property was changed. More... | |
This VariableType defines the general characteristics of a DiscreteItem that can have two states.
The value of the DiscreteItem is delivered as boolean but the TrueState and FalseState properties defined by the TwoStateDiscreteType provides display strings for the two possible states.
The StatusCode delivered with the value also contains an informational bit called SemanticsChanged. Servers that implement Data Access shall set this Bit in notifications if any of the FalseState or TrueState (changes can cause misinterpretation by users or (scripting) programs) Properties are changed. Clients that use any of these Properties should re-read them before they process the data value.
In addition a server can send SemanticChangeEvents if the value of the Property EnumStrings is changed. To indicate this capability, the SemanticChange flag must be set in the AccessLevel and UserAccessLevel attributes of this variable.
UnifiedAutomation.UaServer.TwoStateDiscreteModel.TwoStateDiscreteModel | ( | ) |
Initializes a new instance of the TwoStateDiscreteModel class.
UnifiedAutomation.UaServer.TwoStateDiscreteModel.TwoStateDiscreteModel | ( | TwoStateDiscreteModel | template, |
DummyArgument | dummy = null |
||
) |
Initializes a new instance of the TwoStateDiscreteModel class.
template | The template. |
dummy | Dummy argument to enable writing own constructors that are called by the generated code. |
|
getset |
FalseState contains a string to be associated with this DataItem when it is FALSE.
This is typically used for a contact when it is in the open (zero) state. for example:"STOP","OPEN","DISABLE","UNSAFE", etc.
If the item contains an array then this lookup table shall apply to all elements in the array.
|
getset |
TrueState contains a string to be associated with this DataItem when it is TRUE.
This is typically used for a contact when it is in the closed (non-zero) state. for example:"RUN","CLOSE","ENABLE","SAFE", etc.
If the item contains an array then this lookup table shall apply to all elements in the array.
|
getset |
Gets or sets the value.