A base class for model controllers.
More...
Inherits UnifiedAutomation.UaBase.IModelMapper, INotifyPropertyChanged, UnifiedAutomation.UaServer.INotifyPropertyChangeRequested, and UnifiedAutomation.UaServer.INotifyStatusCodeInfo.
Inherited by UnifiedAutomation.UaServer.BaseEventModel, UnifiedAutomation.UaServer.BaseObjectModel, and UnifiedAutomation.UaServer.BaseVariableModel.
|
bool | HasStatusCodes => m_statusCodes != null && m_statusCodes.Count > 0 |
|
|
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...
|
|
A base class for model controllers.
virtual ModelHandle UnifiedAutomation.UaServer.ModelControllerBase.GetModelHandle |
( |
StringTable |
namespaceUris, |
|
|
object |
instance |
|
) |
| |
|
virtual |
Gets the value associated with the mapping.
- Parameters
-
context | The request context. |
mapping | The mapping. |
- Returns
- The value. null if he mapping was not understood.
Implements UnifiedAutomation.UaBase.IModelMapper.
void UnifiedAutomation.UaServer.ModelControllerBase.RaisePropertyChangedEvent |
( |
[CallerMemberName] string |
propertyName = null | ) |
|
|
protected |
Raises an property change event.
- Parameters
-
propertyName | The name of the property. |
void UnifiedAutomation.UaServer.ModelControllerBase.RaisePropertyChangeRequestedEvent< T > |
( |
T |
value, |
|
|
[CallerMemberName] string |
propertyName = null |
|
) |
| |
|
protected |
Called when the value of a property is supposed to be changed.
- Template Parameters
-
T | The type of the requested value. |
- Parameters
-
value | The requested value. |
propertyName | The property name. |
bool UnifiedAutomation.UaServer.ModelControllerBase.SetField< T > |
( |
ref T |
field, |
|
|
T |
value, |
|
|
[CallerMemberName] string |
propertyName = null |
|
) |
| |
|
protected |
Sets the backing field to the new value, and triggers a property change event, if the value has changed.
- Template Parameters
-
T | The type of the backing field. |
- Parameters
-
field | The backing field. |
value | The new value. |
propertyName | The property name. |
- Returns
- Retrieves
true
when the value was changed, otherwise false
.
void UnifiedAutomation.UaServer.ModelControllerBase.SetStatusCode |
( |
string |
propertyName, |
|
|
StatusCode |
statusCode |
|
) |
| |
Sets the status code of the given property.
- Parameters
-
propertyName | The property name. |
statusCode | The status code. |
Sets the value associated with the mapping.
- Parameters
-
context | The request context. |
mapping | The mapping. |
value | The value. |
- Returns
- True if the mapping was understood. False otherwise.
Implements UnifiedAutomation.UaBase.IModelMapper.
ModelHandle UnifiedAutomation.UaServer.ModelControllerBase.ModelHandle |
|
getset |
Gets or sets the metadata handle.
The metadata handle.
object UnifiedAutomation.UaServer.ModelControllerBase.UserData |
|
getset |
Gets or sets the user data.
The user data.
PropertyChangedEventHandler UnifiedAutomation.UaServer.ModelControllerBase.PropertyChanged |
Occurs when a property value changes.
The documentation for this class was generated from the following file:
- D:/work/uasdknet_master/src/UaServer/Controllers/ModelControllerBase.cs