onbon.bx06.cmd.tcp
Class SetupAddressCmd

java.lang.Object
  extended by onbon.bx06.cmd.tcp.SetupAddressCmd
All Implemented Interfaces:
Bx6GRequestCmd<onbon.bx06.message.global.ACK>

public final class SetupAddressCmd
extends Object
implements Bx6GRequestCmd<onbon.bx06.message.global.ACK>

设定网路位址与运行方式。

Author:
ONBON

Constructor Summary
SetupAddressCmd()
          建构子。
 
Method Summary
 Bx6GResponseCmd<onbon.bx06.message.global.ACK> accept(Bx6GController controller)
          利用指定控制器进行请求发送与回应处理。
 int getMode()
          取得控制器连接模式。 0:单机直连(PC 与控制器直接连接)。
1:自动获取(DHCP)。
2:手动设置(Static IP)。
3:服务器模式(动态IP)。
 onbon.bx06.message.tcp.EthernetSetIP.ServerSetting getServerSetting()
          取得服务器模式位址组态。
 onbon.bx06.message.tcp.EthernetSetIP.StaticSetting getStaticSetting()
          取得静态位址组态。
 void setMode(int mode)
          设置控制器连接模式。
0:单机直连(PC 与控制器直接连接)。
1:自动获取(DHCP)。
2:手动设置(Static IP)。
3:服务器模式(动态IP)。
 void setServerSetting(onbon.bx06.message.tcp.EthernetSetIP.ServerSetting serverSetting)
          设定服务器模式位址组态。
 void setStaticSetting(onbon.bx06.message.tcp.EthernetSetIP.StaticSetting staticSetting)
          设定静态位址组态。
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SetupAddressCmd

public SetupAddressCmd()
建构子。

Method Detail

getMode

public int getMode()
取得控制器连接模式。 0:单机直连(PC 与控制器直接连接)。
1:自动获取(DHCP)。
2:手动设置(Static IP)。
3:服务器模式(动态IP)。

Returns:
控制器连接模式。

setMode

public void setMode(int mode)
设置控制器连接模式。
0:单机直连(PC 与控制器直接连接)。
1:自动获取(DHCP)。
2:手动设置(Static IP)。
3:服务器模式(动态IP)。

Parameters:
mode - 控制器连接模式。

getStaticSetting

public onbon.bx06.message.tcp.EthernetSetIP.StaticSetting getStaticSetting()
取得静态位址组态。

Returns:
静态位址组态。

setStaticSetting

public void setStaticSetting(onbon.bx06.message.tcp.EthernetSetIP.StaticSetting staticSetting)
设定静态位址组态。

Parameters:
staticSetting - 静态位址组态。

getServerSetting

public onbon.bx06.message.tcp.EthernetSetIP.ServerSetting getServerSetting()
取得服务器模式位址组态。

Returns:
服务器模式位址组态。

setServerSetting

public void setServerSetting(onbon.bx06.message.tcp.EthernetSetIP.ServerSetting serverSetting)
设定服务器模式位址组态。

Parameters:
serverSetting - 服务器模式位址组态。

accept

public Bx6GResponseCmd<onbon.bx06.message.global.ACK> accept(Bx6GController controller)
Description copied from interface: Bx6GRequestCmd
利用指定控制器进行请求发送与回应处理。

Specified by:
accept in interface Bx6GRequestCmd<onbon.bx06.message.global.ACK>
Parameters:
controller - 控制器。
Returns:
回应结果。


Copyright © 2020 onbon. All rights reserved.