C# 클래스 OSAE.OSAEObjectManager

파일 보기 프로젝트 열기: opensourceautomation/Open-Source-Automation 1 사용 예제들

공개 메소드들

메소드 설명
EventTrigger ( string objectName, string eventName, string parameter1 = null, string parameter2 = null, string source = null ) : void

Add an entry to the event log table

GetObjectByAddress ( string address ) : OSAEObject

Returns an OSAEObject with the specified address

GetObjectByName ( string name ) : OSAEObject

Returns an OSAEObject with the specified name

GetObjectMethods ( string ObjectName ) : OSAEMethodCollection
GetObjectsByBaseType ( string ObjectBaseType ) : OSAEObjectCollection

Returns all objects with the specified base type

GetObjectsByContainer ( string ContainerName ) : OSAEObjectCollection

Returns a Dataset of all objects in a specified container

GetObjectsByOwner ( string ObjectOwner ) : OSAEObjectCollection
GetObjectsByPropertyValue ( string property, string value ) : OSAEObjectCollection

Returns an OSAEObject with the specified property

GetObjectsByType ( string ObjectType ) : OSAEObjectCollection

Returns a Dataset of all objects of specified type

ObjectAdd ( string name, string alias, string description, string objectType, string address, string container, int minTrustLevel, bool enabled ) : void

Create a new object

ObjectDelete ( string Name ) : void

Delete an object

ObjectDeleteByAddress ( string address ) : void

Delete an object

ObjectExists ( string objectName ) : bool

Returns true or false whether the object with the specified address exists

ObjectExistsByAddress ( string address ) : bool

Returns true or false whether the object with the specified address exists

ObjectExistsInContainer ( string pObject, string pContainer ) : bool

Returns true or false whether the object with the specified address exists

ObjectExport ( string ObjectName ) : string

Get Export script for object

ObjectUpdate ( string oldName, string newName, string alias, string description, string objectType, string address, string container, int minTrustLevel, bool enabled ) : void

Update an existing object

메소드 상세

EventTrigger() 공개 정적인 메소드

Add an entry to the event log table
public static EventTrigger ( string objectName, string eventName, string parameter1 = null, string parameter2 = null, string source = null ) : void
objectName string Object Name
eventName string Event Name
parameter1 string
parameter2 string
source string
리턴 void

GetObjectByAddress() 공개 정적인 메소드

Returns an OSAEObject with the specified address
public static GetObjectByAddress ( string address ) : OSAEObject
address string
리턴 OSAEObject

GetObjectByName() 공개 정적인 메소드

Returns an OSAEObject with the specified name
public static GetObjectByName ( string name ) : OSAEObject
name string
리턴 OSAEObject

GetObjectMethods() 공개 정적인 메소드

public static GetObjectMethods ( string ObjectName ) : OSAEMethodCollection
ObjectName string
리턴 OSAEMethodCollection

GetObjectsByBaseType() 공개 정적인 메소드

Returns all objects with the specified base type
public static GetObjectsByBaseType ( string ObjectBaseType ) : OSAEObjectCollection
ObjectBaseType string
리턴 OSAEObjectCollection

GetObjectsByContainer() 공개 정적인 메소드

Returns a Dataset of all objects in a specified container
public static GetObjectsByContainer ( string ContainerName ) : OSAEObjectCollection
ContainerName string
리턴 OSAEObjectCollection

GetObjectsByOwner() 공개 정적인 메소드

public static GetObjectsByOwner ( string ObjectOwner ) : OSAEObjectCollection
ObjectOwner string
리턴 OSAEObjectCollection

GetObjectsByPropertyValue() 공개 정적인 메소드

Returns an OSAEObject with the specified property
public static GetObjectsByPropertyValue ( string property, string value ) : OSAEObjectCollection
property string
value string
리턴 OSAEObjectCollection

GetObjectsByType() 공개 정적인 메소드

Returns a Dataset of all objects of specified type
public static GetObjectsByType ( string ObjectType ) : OSAEObjectCollection
ObjectType string
리턴 OSAEObjectCollection

ObjectAdd() 공개 정적인 메소드

Create a new object
public static ObjectAdd ( string name, string alias, string description, string objectType, string address, string container, int minTrustLevel, bool enabled ) : void
name string
alias string
description string
objectType string
address string
container string
minTrustLevel int
enabled bool
리턴 void

ObjectDelete() 공개 정적인 메소드

Delete an object
public static ObjectDelete ( string Name ) : void
Name string
리턴 void

ObjectDeleteByAddress() 공개 정적인 메소드

Delete an object
public static ObjectDeleteByAddress ( string address ) : void
address string
리턴 void

ObjectExists() 공개 정적인 메소드

Returns true or false whether the object with the specified address exists
public static ObjectExists ( string objectName ) : bool
objectName string
리턴 bool

ObjectExistsByAddress() 공개 정적인 메소드

Returns true or false whether the object with the specified address exists
public static ObjectExistsByAddress ( string address ) : bool
address string
리턴 bool

ObjectExistsInContainer() 공개 정적인 메소드

Returns true or false whether the object with the specified address exists
public static ObjectExistsInContainer ( string pObject, string pContainer ) : bool
pObject string
pContainer string
리턴 bool

ObjectExport() 공개 정적인 메소드

Get Export script for object
public static ObjectExport ( string ObjectName ) : string
ObjectName string
리턴 string

ObjectUpdate() 공개 정적인 메소드

Update an existing object
public static ObjectUpdate ( string oldName, string newName, string alias, string description, string objectType, string address, string container, int minTrustLevel, bool enabled ) : void
oldName string
newName string
alias string
description string
objectType string
address string
container string
minTrustLevel int
enabled bool
리턴 void