C# 클래스 Softing.OPCToolbox.Server.Creator

Helper class used as factory for various object instances of the OPC server components. This class is used by the Toolkit internal mechanisms to instantiate user specific objects. To enable this, the user must extend the Creator class and override the create methods.
파일 보기 프로젝트 열기: SoftingIndustrial/OPC-Classic-SDK

공개 메소드들

메소드 설명
CreateAeAddressSpaceElement ( ) : Softing.OPCToolbox.Server.AeAddressSpaceElement

Creates the AeAddressSpaceElement instance. This method should be overriden when a custom root is wanted.

CreateAeAddressSpaceRoot ( ) : Softing.OPCToolbox.Server.AeAddressSpaceRoot

Creates the AeAddressSpaceRoot instance

CreateDaAddressSpaceElement ( ) : Softing.OPCToolbox.Server.DaAddressSpaceElement

Creates the DaAddressSpaceElement instance. This method should be overriden when a custom root is wanted.

CreateDaAddressSpaceRoot ( ) : Softing.OPCToolbox.Server.DaAddressSpaceRoot

Creates the DaAddressSpaceRoot instance. This method should be overriden when a custom root is wanted.

CreateInternalAeAddressSpaceElement ( string aName, uint anUserData, uint anObjectHandle, uint aParentHandle ) : Softing.OPCToolbox.Server.AeAddressSpaceElement

Creates a new instance of AddressSpaceElement for string based address space only

CreateInternalDaAddressSpaceElement ( string anItemId, string aName, uint anUserData, uint anObjectHandle, uint aParentHandle ) : Softing.OPCToolbox.Server.DaAddressSpaceElement

Creates a new instance of DaAddressSpaceElement for string based address space only

CreateInternalDaAddressSpaceElementEx ( string anItemId, string aName, uint anUserData, uint anObjectHandle, uint aParentHandle, EnumAddressSpaceElementData elementDataFilter, EnumAccessRights accessRights, EnumIoMode ioMode, bool hasChildren, bool isBrowsable, Type dataType ) : Softing.OPCToolbox.Server.DaAddressSpaceElement

Creates a new instance of DaAddressSpaceElement for string based address space only (extended version).
Must return a valid DaAddressSpaceElement object in order to have the Toolkit CORE use this extended method.
If CreateInternalDaAddressSpaceElementEx method is correctly implemented, CreateInternalDaAddressSpaceElement will be ignored (will never be called unless CreateInternalDaAddressSpaceElementEx fails.

CreateRequest ( EnumTransactionType aTransactionType, uint aSessionHandle, Softing.OPCToolbox.Server.DaAddressSpaceElement anElement, int aPropertyId, uint aRequestHandle ) : DaRequest

Toolkit internal creator of a DaRequest. By overloading this method, the user can determine creation of custom Request objects.

CreateSession ( EnumSessionType aType, uint aHandle ) : Softing.OPCToolbox.Server.DaSession

Toolkit internal creator of a DaSession. By overloading this method, the user can determine creation of custom Session objects. The number of connected clients can be limited. This can be achieved by returning null instead of a new instance of the DaSession class if the number of clients exceeds a desired number.

CreateTransaction ( EnumTransactionType aTransactionType, Array aRequests, uint aSessionKey ) : Softing.OPCToolbox.Server.DaTransaction

Toolkit internal creator of a DaTransaction. By overloading this method, the user can determine creation of custom Transaction objects. All parameters should be forwarded directly to the custom Transaction class.

CreateWebTemplate ( ) : WebTemplate

Toolkit internal creator of a WebTemplate. By overloading this method, the user can determine creation of a custom WebTemplate handler instance. If web sever is used, this method shuld be overloaded

메소드 상세

CreateAeAddressSpaceElement() 공개 메소드

Creates the AeAddressSpaceElement instance. This method should be overriden when a custom root is wanted.
public CreateAeAddressSpaceElement ( ) : Softing.OPCToolbox.Server.AeAddressSpaceElement
리턴 Softing.OPCToolbox.Server.AeAddressSpaceElement

CreateAeAddressSpaceRoot() 공개 메소드

Creates the AeAddressSpaceRoot instance
public CreateAeAddressSpaceRoot ( ) : Softing.OPCToolbox.Server.AeAddressSpaceRoot
리턴 Softing.OPCToolbox.Server.AeAddressSpaceRoot

CreateDaAddressSpaceElement() 공개 메소드

Creates the DaAddressSpaceElement instance. This method should be overriden when a custom root is wanted.
public CreateDaAddressSpaceElement ( ) : Softing.OPCToolbox.Server.DaAddressSpaceElement
리턴 Softing.OPCToolbox.Server.DaAddressSpaceElement

CreateDaAddressSpaceRoot() 공개 메소드

Creates the DaAddressSpaceRoot instance. This method should be overriden when a custom root is wanted.
public CreateDaAddressSpaceRoot ( ) : Softing.OPCToolbox.Server.DaAddressSpaceRoot
리턴 Softing.OPCToolbox.Server.DaAddressSpaceRoot

CreateInternalAeAddressSpaceElement() 공개 메소드

Creates a new instance of AddressSpaceElement for string based address space only
public CreateInternalAeAddressSpaceElement ( string aName, uint anUserData, uint anObjectHandle, uint aParentHandle ) : Softing.OPCToolbox.Server.AeAddressSpaceElement
aName string
anUserData uint
anObjectHandle uint
aParentHandle uint
리턴 Softing.OPCToolbox.Server.AeAddressSpaceElement

CreateInternalDaAddressSpaceElement() 공개 메소드

Creates a new instance of DaAddressSpaceElement for string based address space only
public CreateInternalDaAddressSpaceElement ( string anItemId, string aName, uint anUserData, uint anObjectHandle, uint aParentHandle ) : Softing.OPCToolbox.Server.DaAddressSpaceElement
anItemId string Item ID of the element to be created
aName string Iten name of the element to be created
anUserData uint User data for the element to be created
anObjectHandle uint Toolkit CORE object handle of the element to be created
aParentHandle uint Toolkit CORE object handle of the parent of the element to be created
리턴 Softing.OPCToolbox.Server.DaAddressSpaceElement

CreateInternalDaAddressSpaceElementEx() 공개 메소드

Creates a new instance of DaAddressSpaceElement for string based address space only (extended version).
Must return a valid DaAddressSpaceElement object in order to have the Toolkit CORE use this extended method.
If CreateInternalDaAddressSpaceElementEx method is correctly implemented, CreateInternalDaAddressSpaceElement will be ignored (will never be called unless CreateInternalDaAddressSpaceElementEx fails.
public CreateInternalDaAddressSpaceElementEx ( string anItemId, string aName, uint anUserData, uint anObjectHandle, uint aParentHandle, EnumAddressSpaceElementData elementDataFilter, EnumAccessRights accessRights, EnumIoMode ioMode, bool hasChildren, bool isBrowsable, Type dataType ) : Softing.OPCToolbox.Server.DaAddressSpaceElement
anItemId string Item ID of the element to be created
aName string Iten name of the element to be created
anUserData uint User data for the element to be created
anObjectHandle uint Toolkit CORE object handle of the element to be created
aParentHandle uint Toolkit CORE object handle of the parent of the element to be created
elementDataFilter EnumAddressSpaceElementData Type of element data which is not set in the parameters below
accessRights EnumAccessRights Element`s access rights, valid if flag is not set in elementDataFilter
ioMode EnumIoMode Element`s IO mode, valid if is not set in elementDataFilter
hasChildren bool Whether the element has children or not (is node or tag), valid if is not set in elementDataFilter
isBrowsable bool Whether the elementis browsable, valid if is not set in elementDataFilter
dataType Type Element`s data type, valid if flag is not set in elementDataFilter
리턴 Softing.OPCToolbox.Server.DaAddressSpaceElement

CreateRequest() 공개 메소드

Toolkit internal creator of a DaRequest. By overloading this method, the user can determine creation of custom Request objects.
public CreateRequest ( EnumTransactionType aTransactionType, uint aSessionHandle, Softing.OPCToolbox.Server.DaAddressSpaceElement anElement, int aPropertyId, uint aRequestHandle ) : DaRequest
aTransactionType EnumTransactionType
aSessionHandle uint
anElement Softing.OPCToolbox.Server.DaAddressSpaceElement
aPropertyId int
aRequestHandle uint
리턴 DaRequest

CreateSession() 공개 메소드

Toolkit internal creator of a DaSession. By overloading this method, the user can determine creation of custom Session objects. The number of connected clients can be limited. This can be achieved by returning null instead of a new instance of the DaSession class if the number of clients exceeds a desired number.
public CreateSession ( EnumSessionType aType, uint aHandle ) : Softing.OPCToolbox.Server.DaSession
aType EnumSessionType
aHandle uint
리턴 Softing.OPCToolbox.Server.DaSession

CreateTransaction() 공개 메소드

Toolkit internal creator of a DaTransaction. By overloading this method, the user can determine creation of custom Transaction objects. All parameters should be forwarded directly to the custom Transaction class.
public CreateTransaction ( EnumTransactionType aTransactionType, Array aRequests, uint aSessionKey ) : Softing.OPCToolbox.Server.DaTransaction
aTransactionType EnumTransactionType
aRequests Array
aSessionKey uint
리턴 Softing.OPCToolbox.Server.DaTransaction

CreateWebTemplate() 공개 메소드

Toolkit internal creator of a WebTemplate. By overloading this method, the user can determine creation of a custom WebTemplate handler instance. If web sever is used, this method shuld be overloaded
public CreateWebTemplate ( ) : WebTemplate
리턴 WebTemplate