Home Reference Source
public interface | source

Connector

Tangojs connector interface. This class contains backend-specific logic. Each connector plugin have to provide implementation of this interface.

Method Summary

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

get_device_property(devname: string, propnames: string[]): Promise<DbDatum[], Error>

public
public
public
public
public
public
public

Public Methods

public delete_device_property(devname: string, propnames: string[]): Promise<undefined, Error> source

Params:

NameTypeAttributeDescription
devname string
propnames string[]

Return:

Promise<undefined, Error>

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

Params:

NameTypeAttributeDescription
devname string
cmdname string
argin undefined | DeviceData

public device_command_list_query(devname: string): Promise<CommandInfo[], Error> source

Params:

NameTypeAttributeDescription
devname string

Return:

Promise<CommandInfo[], Error>

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

Params:

NameTypeAttributeDescription
devname string
cmdname string

public get_device_attribute_info(devname: string, attnames: string[]): Promise<AttributeInfo[], Error> source

Params:

NameTypeAttributeDescription
devname string
attnames string[]

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

Params:

NameTypeAttributeDescription
devname string

Return:

Promise<string[], Error>

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

Params:

NameTypeAttributeDescription
pattern string

Return:

Promise<string[], Error>

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

Params:

NameTypeAttributeDescription
pattern string

Return:

Promise<string[], Error>

public get_device_info(devname: string): Promise<DeviceInfo, Error> source

Params:

NameTypeAttributeDescription
devname string

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

Params:

NameTypeAttributeDescription
pattern string

Return:

Promise<string[], Error>

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

Params:

NameTypeAttributeDescription
pattern string

Return:

Promise<string[], Error>

public get_device_property(devname: string, propnames: string[]): Promise<DbDatum[], Error> source

Params:

NameTypeAttributeDescription
devname string
propnames string[]

Return:

Promise<DbDatum[], Error>

public get_device_property_list(devname: string, pattern: string): Promise<string[], Error> source

Params:

NameTypeAttributeDescription
devname string
pattern string

Return:

Promise<string[], Error>

public get_device_state(devname: string): Promise<DevState, Error> source

Params:

NameTypeAttributeDescription
devname string

Return:

Promise<DevState, Error>

public get_device_status(devname: string): Promise<string, Error> source

Params:

NameTypeAttributeDescription
devname string

Return:

Promise<string, Error>

public put_device_property(devname: string, properties: DbDatum[]): Promise<undefined, Error> source

Params:

NameTypeAttributeDescription
devname string
properties DbDatum[]

Return:

Promise<undefined, Error>

public read_device_attribute(devname: string, attname: string[]): Promise<DeviceAttribute[], Error> source

Params:

NameTypeAttributeDescription
devname string
attname string[]

public write_device_attribute(devname: string, attrs: DeviceAttribute[]): Promise<undefined, Error> source

Params:

NameTypeAttributeDescription
devname string
attrs DeviceAttribute[]

Return:

Promise<undefined, Error>

public write_read_device_attribute(devname: string, attrs: DeviceAttribute[]): Promise<DeviceAttribute[], Error> source

Params:

NameTypeAttributeDescription
devname string
attrs DeviceAttribute[]