com.kuka.nav.command
Class Action<T extends Action<T,E>,E extends ActionContainer<T,?>>

java.lang.Object
  extended by com.kuka.nav.command.AbstractParameterizable
      extended by com.kuka.nav.command.AbstractCommand<T,E>
          extended by com.kuka.nav.command.Action<T,E>
Type Parameters:
T - The type of the command whose runtime information is managed by the container.
E - The type describing the methods of an unit responsible for the management of the runtime information of a navigation action.
All Implemented Interfaces:
com.kuka.command.ICommand<T,E>, com.kuka.command.IParameterizableCommand<T,E>, com.kuka.parameters.IParameterizable
Direct Known Subclasses:
ChangeMapCommand, HonkAction, LocalizeCommand

public abstract class Action<T extends Action<T,E>,E extends ActionContainer<T,?>>
extends AbstractCommand<T,E>

Base class for navigation actions.


Constructor Summary
protected Action(Class<T> paramType)
          Creates a new navigation action.
protected Action(com.kuka.parameters.IParameterMap params)
          Copy constructor.
 
Method Summary
 int getTimeout()
          Gets the timeout of this action.
 T setTimeout(int timeout)
          Sets the timeout of the action.
 
Methods inherited from class com.kuka.nav.command.AbstractCommand
copy, 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.parameters.IParameterizable
getParameters
 

Constructor Detail

Action

protected Action(Class<T> paramType)
Creates a new navigation action.

Parameters:
paramType - the corresponding parameter type

Action

protected Action(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

setTimeout

public final T setTimeout(int timeout)
Sets the timeout of the action. Must be greater than 0.

Parameters:
timeout - The timeout of the action in seconds
Returns:
This action (fluent pattern).
Throws:
IllegalArgumentException - if timeout is not greater than 0.

getTimeout

public final int getTimeout()
Gets the timeout of this action.

Returns:
The timeout in seconds


Copyright © 2019. All rights reserved.