com.kuka.nav.robot
Class SwitchServerCommand

java.lang.Object
  extended by com.kuka.nav.command.AbstractParameterizable
      extended by com.kuka.nav.command.AbstractCommand<SwitchServerCommand,BasicCommandContainer<SwitchServerCommand>>
          extended by com.kuka.nav.robot.SwitchServerCommand
All Implemented Interfaces:
com.kuka.command.ICommand<SwitchServerCommand,BasicCommandContainer<SwitchServerCommand>>, com.kuka.command.IParameterizableCommand<SwitchServerCommand,BasicCommandContainer<SwitchServerCommand>>, com.kuka.parameters.IParameterizable

public final class SwitchServerCommand
extends AbstractCommand<SwitchServerCommand,BasicCommandContainer<SwitchServerCommand>>
implements com.kuka.command.ICommand<SwitchServerCommand,BasicCommandContainer<SwitchServerCommand>>

Requests the change of the server to which the commanded mobile robot connects. The robot must be connected, the new server must be available and the robot id and name must be unique on the new server.


Constructor Summary
protected SwitchServerCommand(com.kuka.parameters.IParameterMap params)
          Copy constructor.
  SwitchServerCommand(String serverAddress, int serverPort)
          Creates a new switch server command.
 
Method Summary
 SwitchServerCommand copy()
           
 String getServerAddress()
           
 int getServerPort()
           
 SwitchServerCommand setServerAddress(String serverAddress)
          Sets the address of the server to change to.
 SwitchServerCommand setServerPort(int serverPort)
          Sets the port of the server to change to.
 
Methods inherited from class com.kuka.nav.command.AbstractCommand
getDescription, self, setDescription
 
Methods inherited from class com.kuka.nav.command.AbstractParameterizable
getParameters, paramHelper
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.kuka.command.ICommand
getDescription, setDescription
 
Methods inherited from interface com.kuka.parameters.IParameterizable
getParameters
 

Constructor Detail

SwitchServerCommand

public SwitchServerCommand(String serverAddress,
                           int serverPort)
Creates a new switch server command.

Parameters:
serverAddress - the address of the new server, either an ip or a name which can be resolved
serverPort - the port of the new server

SwitchServerCommand

protected SwitchServerCommand(com.kuka.parameters.IParameterMap params)
Copy constructor. Creates a mew instance of the class containing the deep copy of the specified parameter map.

Parameters:
params - parameter map containing the command parameters.
Method Detail

setServerAddress

public SwitchServerCommand setServerAddress(String serverAddress)
Sets the address of the server to change to.

Parameters:
serverAddress - the address of the new server, either an ip or a name which can be resolved
Returns:
a reference to this command

setServerPort

public SwitchServerCommand setServerPort(int serverPort)
Sets the port of the server to change to.

Parameters:
serverPort - the port of the new server
Returns:
a reference to this command

getServerAddress

public String getServerAddress()
Returns:
the address of the new server.

getServerPort

public int getServerPort()
Returns:
the port of the new server.

copy

public SwitchServerCommand copy()
Specified by:
copy in interface com.kuka.command.ICommand<SwitchServerCommand,BasicCommandContainer<SwitchServerCommand>>
Specified by:
copy in class AbstractCommand<SwitchServerCommand,BasicCommandContainer<SwitchServerCommand>>


Copyright © 2019. All rights reserved.