概述
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 )