Home Reference Source
public class | source

DeviceProxy

Constructor Summary

Public Constructor
public

constructor(devname: string)

Method Summary

Public Methods
public
public
public
public
public
public
public
public
public
public
public
public
public
public
public
public

Public Constructors

public constructor(devname: string) source

Params:

NameTypeAttributeDescription
devname string

Public Methods

public command_inout(cmdname: string, argin: undefined | DeviceData): Promise<DeviceData, Error> source

Params:

NameTypeAttributeDescription
cmdname string
argin undefined | DeviceData

public command_list_query(): Promise<CommandInfo[], Error> source

Return:

Promise<CommandInfo[], Error>

public command_query(cmdname: string): Promise<CommandInfo, Error> source

Params:

NameTypeAttributeDescription
cmdname string

public delete_property(propnames: string | string[] | DbDatum[]): Promise<undefined, Error> source

Params:

NameTypeAttributeDescription
propnames string | string[] | DbDatum[]

Return:

Promise<undefined, Error>

public get_attribute_info(attnames: undefined | string | string[]): Promise<AttributeInfo, Error> | Promise<AttributeInfo[], Error> source

Params:

NameTypeAttributeDescription
attnames undefined | string | string[]

public get_attribute_list(): Promise<string[], Error> source

Return:

Promise<string[], Error>

public get_info(): Promise<DeviceInfo, Error> source

public get_property(propnames: string | string[] | DbDatum[]): Promise<DbDatum, Error> | Promise<DbDatum[], Error> source

Params:

NameTypeAttributeDescription
propnames string | string[] | DbDatum[]

public get_property_list(pattern: string | string[] | DbDatum[]): Promise<string[], Error> source

Params:

NameTypeAttributeDescription
pattern string | string[] | DbDatum[]

Return:

Promise<string[], Error>

public name(): Promise<string, Error> source

Return:

Promise<string, Error>

public put_property(properties: DbDatum | DbDatum[]): Promise<undefined, Error> source

Params:

NameTypeAttributeDescription
properties DbDatum | DbDatum[]

Return:

Promise<undefined, Error>

public read_attribute(attnames: string | string[]): Promise<DeviceAttribute, Error> | Promise<DeviceAttribute[], Error> source

Params:

NameTypeAttributeDescription
attnames string | string[]

public state(): Promise<DevState, Error> source

Return:

Promise<DevState, Error>

public status(): Promise<string, Error> source

Return:

Promise<string, Error>

public write_attribute(attrs: DeviceAttribute | DeviceAttribute[]): Promise<undefined, Error> source

Params:

NameTypeAttributeDescription
attrs DeviceAttribute | DeviceAttribute[]

Return:

Promise<undefined, Error>

public write_read_attribute(attrs: DeviceAttribute | DeviceAttribute[]): Promise<DeviceAttribute, Error> | Promise<DeviceAttribute[], Error> source

Params:

NameTypeAttributeDescription
attrs DeviceAttribute | DeviceAttribute[]