概述
JS类可以在xwui浏览器中使用,用于访问DM2016系统资源。
JS类DeviceMgr
属性
size
当前设备数量。只读。
方法
int getIndexByName( string name )
根据名字name获取设备索引号。
int getIndexById( int id )
根据ID获取设备索引号。
string getName( int idx )
获取指定索引idx设备的设备名.
int getId( int idx )
获取指定索引idx设备的ID。
string getDesc( int idx )
获取指定索引idx设备的描述。
int getStatusSize( int idx )
获取指定索引idx设备的状态量数量。
int getDiscreteSize( int idx )
获取指定索引idx设备的离散量数量。
int getMeasureSize( int idx )
获取指定索引idx设备的测量量数量。
int getCumulantSize( int idx )
获取指定索引idx设备的累计量数量。
int getRemoteCtlSize( int idx )
获取指定索引idx设备的远控数量。
int getParameterSize( int idx )
获取指定索引idx设备的参数数量。
int getActionSize( int idx )
获取指定索引idx设备的动作数量。
bool isAlive( int idx )
获取指定索引idx设备是否在线。
int getLastState( int idx )
获取指定索引idx设备的最终状态。
string getLastStateTs( int idx )
获取指定索引idx设备的最后状态更新时刻。
int getRxCnt( int idx )
获取指定索引idx设备接收计数器。
string getRxStartTs( int idx )
获取指定索引idx设备开始接收起始时刻。
string getLastRxTs( int idx )
获取指定索引idx设备最后接收时刻。
int getTxCnt(int idx )
获取指定索引idx设备发送计数器。
string getTxStartTs( int idx )