C# 클래스 Opc.Ua.Com.Server.ComDaGroup

A class that implements a COM DA group.
상속: IDisposable
파일 보기 프로젝트 열기: OPCFoundation/UA-.NET 1 사용 예제들

Private Properties

프로퍼티 타입 설명
AddItemToSubscription void
CheckUpdateTimerStatus void
GetSession Opc.Ua.Client.Session
OnAsyncRead void
OnAsyncWrite void
OnUpdate void
Refresh void
RemoveItemFromSubscription void
ScheduleNextUpdate void
SetFatalError void
ThrowIfDisposed void
TraceState void
UpdateCache void
UpdateReadResult void

공개 메소드들

메소드 설명
AsyncRead ( uint maxAge, int transactionId, int serverHandles, int &cancelId ) : int[]

Starts an asynchronous read operation.

AsyncWrite ( int transactionId, int serverHandles, DaValue values, int &cancelId ) : int[]

Starts an asynchronous write operation.

Cancel ( int cancelId ) : bool

Cancels an asynchronous operation.

ClearItemDeadbands ( int serverHandles ) : int[]

Clears the deadbands for the items.

ClearItemSamplingRates ( int serverHandles ) : int[]

Clears the sampling rates for the items.

Clone ( string groupName ) : ComDaGroup

Clones the group.

ComDaGroup ( ComDaGroupManager manager, string name, int serverHandle ) : System

Initializes a new instance of the ComDaGroup class.

CreateItems ( ComDaCreateItemRequest requests, bool validateOnly ) : void

Creates the items.

DeleteItems ( int serverHandles ) : int[]

Deletes the items.

Dispose ( ) : void

Frees any unmanaged resources.

GetItemAttributes ( ) : OpcRcw.Da.OPCITEMATTRIBUTES[]

Gets the item attributes.

GetItemBufferEnabled ( int serverHandles, int bufferEnabled ) : int[]

Gets whether buffering is enabled for the items.

GetItemDeadbands ( int serverHandles, float deadbands ) : int[]

Gets the deadband for the items.

GetItemSamplingRates ( int serverHandles, int samplingRates ) : int[]

Gets the sampling rates for the items.

OnDataChange ( Subscription subscription, DataChangeNotification notification, IList stringTable ) : void

Called when a data change arrives.

RecreateItems ( ) : void

Recreates the items.

Refresh ( uint maxAge, int transactionId, int &cancelId ) : void

Starts an asynchronous refresh operation.

Remove ( ) : void

Removes this group from the server.

SetActive ( int serverHandles, bool active ) : int[]

Sets the active state for the items.

SetActive ( bool active ) : void

Sets the active state for the group,

SetCallback ( IComDaGroupCallback callback ) : void

Sets the callback.

SetClientHandles ( int serverHandles, int clientHandles ) : int[]

Sets the client handles.

SetDataTypes ( int serverHandles, short dataTypes ) : int[]

Sets the data types.

SetDeadband ( float deadband ) : void

Sets the deadband for the group,

SetEnabled ( bool enabled ) : void

Sets the enabled state for the group.

SetItemBufferEnabled ( int serverHandles, int bufferEnabled ) : int[]

Sets whether buffering is enabled for the items.

SetItemDeadbands ( int serverHandles, float deadbands ) : int[]

Sets the deadband for the items.

SetItemSamplingRates ( int serverHandles, int samplingRates, int revisedSamplingRates ) : int[]

Sets the sampling rate for the items.

SetKeepAliveTime ( int keepAliveTime ) : int

Sets the keep alive time.

SetName ( string groupName ) : void

Sets the name.

SetUpdateRate ( int updateRate ) : int

Sets the update rate for the group,

SyncRead ( uint maxAge, int serverHandles, bool isInitialRefresh, int clientHandles ) : DaValue[]

Performs n synchronous read operation.

SyncWrite ( int serverHandles, DaValue values ) : int[]

Performs n synchronous write operation.

UpdateCacheWithQuality ( short quality ) : void

Updates the cache with quality.

UpdateDeadbandFilters ( IList items ) : void

Updates the deadband filters.

보호된 메소드들

메소드 설명
Dispose ( bool disposing ) : void

An overrideable version of the Dispose.

비공개 메소드들

메소드 설명
AddItemToSubscription ( Opc.Ua.Com.Server.ComDaGroupItem item ) : void
CheckUpdateTimerStatus ( ) : void

Checks the update timer status.

GetSession ( ) : Session

Gets the session associated with the group.

OnAsyncRead ( object state ) : void

Called to process an asynchronous read.

OnAsyncWrite ( object state ) : void

Called to process an asynchronous write.

OnUpdate ( object state ) : void

Called when it is time to send an update.

Refresh ( uint maxAge, int transactionId, bool isFirstUpdate, int &cancelId ) : void

Starts an asynchronous refresh operation.

RemoveItemFromSubscription ( Opc.Ua.Com.Server.ComDaGroupItem item ) : void
ScheduleNextUpdate ( ) : void

Schedules the next update.

SetFatalError ( Opc.Ua.Com.Server.ComDaGroupItem itemsInRequest, int results, Exception e, int defaultError ) : void

Sets the error for all items after an unexpected error occurs.

ThrowIfDisposed ( ) : void

Throws if disposed.

TraceState ( string context ) : void

Dumps the current state of the browser.

UpdateCache ( Opc.Ua.Com.Server.ComDaGroupItem item, DaValue value, bool isInitialRefresh ) : void

Updates the cache.

UpdateReadResult ( Opc.Ua.Com.Server.ComDaGroupItem item, DaValue value ) : void

Updates the read result by converting the value to the requested data type.

메소드 상세

AsyncRead() 공개 메소드

Starts an asynchronous read operation.
public AsyncRead ( uint maxAge, int transactionId, int serverHandles, int &cancelId ) : int[]
maxAge uint The max age.
transactionId int The transaction id.
serverHandles int The server handles.
cancelId int The cancel id.
리턴 int[]

AsyncWrite() 공개 메소드

Starts an asynchronous write operation.
public AsyncWrite ( int transactionId, int serverHandles, DaValue values, int &cancelId ) : int[]
transactionId int The transaction id.
serverHandles int The server handles.
values DaValue The values.
cancelId int The cancel id.
리턴 int[]

Cancel() 공개 메소드

Cancels an asynchronous operation.
public Cancel ( int cancelId ) : bool
cancelId int The cancel id.
리턴 bool

ClearItemDeadbands() 공개 메소드

Clears the deadbands for the items.
public ClearItemDeadbands ( int serverHandles ) : int[]
serverHandles int The server handles.
리턴 int[]

ClearItemSamplingRates() 공개 메소드

Clears the sampling rates for the items.
public ClearItemSamplingRates ( int serverHandles ) : int[]
serverHandles int The server handles.
리턴 int[]

Clone() 공개 메소드

Clones the group.
public Clone ( string groupName ) : ComDaGroup
groupName string Name of the new group.
리턴 ComDaGroup

ComDaGroup() 공개 메소드

Initializes a new instance of the ComDaGroup class.
public ComDaGroup ( ComDaGroupManager manager, string name, int serverHandle ) : System
manager ComDaGroupManager The group manager.
name string The name.
serverHandle int The server handle.
리턴 System

CreateItems() 공개 메소드

Creates the items.
public CreateItems ( ComDaCreateItemRequest requests, bool validateOnly ) : void
requests ComDaCreateItemRequest The requests.
validateOnly bool if set to true if the items only need to be validated.
리턴 void

DeleteItems() 공개 메소드

Deletes the items.
public DeleteItems ( int serverHandles ) : int[]
serverHandles int The server handles.
리턴 int[]

Dispose() 공개 메소드

Frees any unmanaged resources.
public Dispose ( ) : void
리턴 void

Dispose() 보호된 메소드

An overrideable version of the Dispose.
protected Dispose ( bool disposing ) : void
disposing bool
리턴 void

GetItemAttributes() 공개 메소드

Gets the item attributes.
public GetItemAttributes ( ) : OpcRcw.Da.OPCITEMATTRIBUTES[]
리턴 OpcRcw.Da.OPCITEMATTRIBUTES[]

GetItemBufferEnabled() 공개 메소드

Gets whether buffering is enabled for the items.
public GetItemBufferEnabled ( int serverHandles, int bufferEnabled ) : int[]
serverHandles int The server handles.
bufferEnabled int Whether buffering is enabled.
리턴 int[]

GetItemDeadbands() 공개 메소드

Gets the deadband for the items.
public GetItemDeadbands ( int serverHandles, float deadbands ) : int[]
serverHandles int The server handles.
deadbands float The deadbands.
리턴 int[]

GetItemSamplingRates() 공개 메소드

Gets the sampling rates for the items.
public GetItemSamplingRates ( int serverHandles, int samplingRates ) : int[]
serverHandles int The server handles.
samplingRates int The sampling rates.
리턴 int[]

OnDataChange() 공개 메소드

Called when a data change arrives.
public OnDataChange ( Subscription subscription, DataChangeNotification notification, IList stringTable ) : void
subscription Subscription The subscription.
notification DataChangeNotification The notification.
stringTable IList The string table.
리턴 void

RecreateItems() 공개 메소드

Recreates the items.
public RecreateItems ( ) : void
리턴 void

Refresh() 공개 메소드

Starts an asynchronous refresh operation.
public Refresh ( uint maxAge, int transactionId, int &cancelId ) : void
maxAge uint The max age.
transactionId int The transaction id.
cancelId int The cancel id.
리턴 void

Remove() 공개 메소드

Removes this group from the server.
public Remove ( ) : void
리턴 void

SetActive() 공개 메소드

Sets the active state for the items.
public SetActive ( int serverHandles, bool active ) : int[]
serverHandles int The server handles.
active bool if set to true the items are activated.
리턴 int[]

SetActive() 공개 메소드

Sets the active state for the group,
public SetActive ( bool active ) : void
active bool if set to true the group is activated.
리턴 void

SetCallback() 공개 메소드

Sets the callback.
public SetCallback ( IComDaGroupCallback callback ) : void
callback IComDaGroupCallback The callback.
리턴 void

SetClientHandles() 공개 메소드

Sets the client handles.
public SetClientHandles ( int serverHandles, int clientHandles ) : int[]
serverHandles int The server handles.
clientHandles int The client handles.
리턴 int[]

SetDataTypes() 공개 메소드

Sets the data types.
public SetDataTypes ( int serverHandles, short dataTypes ) : int[]
serverHandles int The server handles.
dataTypes short The data types.
리턴 int[]

SetDeadband() 공개 메소드

Sets the deadband for the group,
public SetDeadband ( float deadband ) : void
deadband float The deadband.
리턴 void

SetEnabled() 공개 메소드

Sets the enabled state for the group.
public SetEnabled ( bool enabled ) : void
enabled bool if set to true the group is enabled.
리턴 void

SetItemBufferEnabled() 공개 메소드

Sets whether buffering is enabled for the items.
public SetItemBufferEnabled ( int serverHandles, int bufferEnabled ) : int[]
serverHandles int The server handles.
bufferEnabled int Whether buffering is enabled.
리턴 int[]

SetItemDeadbands() 공개 메소드

Sets the deadband for the items.
public SetItemDeadbands ( int serverHandles, float deadbands ) : int[]
serverHandles int The server handles.
deadbands float The deadbands.
리턴 int[]

SetItemSamplingRates() 공개 메소드

Sets the sampling rate for the items.
public SetItemSamplingRates ( int serverHandles, int samplingRates, int revisedSamplingRates ) : int[]
serverHandles int The server handles.
samplingRates int The sampling rates.
revisedSamplingRates int The revised sampling rates.
리턴 int[]

SetKeepAliveTime() 공개 메소드

Sets the keep alive time.
public SetKeepAliveTime ( int keepAliveTime ) : int
keepAliveTime int The keep alive time.
리턴 int

SetName() 공개 메소드

Sets the name.
public SetName ( string groupName ) : void
groupName string Name of the group.
리턴 void

SetUpdateRate() 공개 메소드

Sets the update rate for the group,
public SetUpdateRate ( int updateRate ) : int
updateRate int The update rate.
리턴 int

SyncRead() 공개 메소드

Performs n synchronous read operation.
public SyncRead ( uint maxAge, int serverHandles, bool isInitialRefresh, int clientHandles ) : DaValue[]
maxAge uint The max age.
serverHandles int The server handles.
isInitialRefresh bool if set to true the read is being done as part of the initial refresh for active items.
clientHandles int The client handles (must be allocated by the caller).
리턴 DaValue[]

SyncWrite() 공개 메소드

Performs n synchronous write operation.
public SyncWrite ( int serverHandles, DaValue values ) : int[]
serverHandles int The server handles.
values DaValue The values.
리턴 int[]

UpdateCacheWithQuality() 공개 메소드

Updates the cache with quality.
public UpdateCacheWithQuality ( short quality ) : void
quality short The quality.
리턴 void

UpdateDeadbandFilters() 공개 메소드

Updates the deadband filters.
public UpdateDeadbandFilters ( IList items ) : void
items IList The items.
리턴 void