onbon.bx06
Class Bx6GControllerServer

java.lang.Object
  extended by onbon.bx06.Bx6GController
      extended by onbon.bx06.Bx6GControllerServer

public final class Bx6GControllerServer
extends Bx6GController

BX6G TCP 服務器控制器。

Author:
ONBON

Nested Class Summary
 
Nested classes/interfaces inherited from class onbon.bx06.Bx6GController
Bx6GController.RunMode
 
Field Summary
 
Fields inherited from class onbon.bx06.Bx6GController
bx6Card, header, pingStatus, screenProfile, series, TIMEOUT
 
Method Summary
 void disconnect()
          中断连线。
 String getName()
          取得名称。
 String getNetId()
          取得 Net 编号。
 Bx6GController.RunMode getRunMode()
          取得运行模式。
 boolean isConnected()
          取得是否连线。
 byte[] send(onbon.bx06.message.Bx06MessageHeader header, onbon.bx06.message.Request req, String uiaID)
          执行命令。
 byte[] send(onbon.bx06.message.Request req, String uiaID)
          执行命令。
 
Methods inherited from class onbon.bx06.Bx6GController
createFileReader, createFileReader, createFileWriter, createFileWriter, execute, execute, genTxId, getControllerAddress, getHeader, getOutputBuffer, getScreenProfile, getSeries, isConfigured, ping, setControllerAddress, toString, updatePingStatus
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

getNetId

public String getNetId()
取得 Net 编号。

Returns:
Net 编号。

getName

public String getName()
Description copied from class: Bx6GController
取得名称。

Specified by:
getName in class Bx6GController
Returns:
名称。

isConnected

public boolean isConnected()
Description copied from class: Bx6GController
取得是否连线。

Specified by:
isConnected in class Bx6GController
Returns:
是否连线。

getRunMode

public Bx6GController.RunMode getRunMode()
Description copied from class: Bx6GController
取得运行模式。

Specified by:
getRunMode in class Bx6GController
Returns:
运行模式。

disconnect

public void disconnect()
Description copied from class: Bx6GController
中断连线。

Specified by:
disconnect in class Bx6GController

send

public byte[] send(onbon.bx06.message.Bx06MessageHeader header,
                   onbon.bx06.message.Request req,
                   String uiaID)
Description copied from class: Bx6GController
执行命令。

Specified by:
send in class Bx6GController
Parameters:
header - 讯息表头。
req - 命令。
uiaID - 命令编号。
Returns:
执行结果。

send

public byte[] send(onbon.bx06.message.Request req,
                   String uiaID)
Description copied from class: Bx6GController
执行命令。

Specified by:
send in class Bx6GController
Parameters:
req - 命令。
uiaID - 命令编号。
Returns:
执行结果。


Copyright © 2020 onbon. All rights reserved.