|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.kuka.roboticsAPI.commandModel.Action<T>
T - Type of the overriding class. Used for fluent interface.public abstract class Action<T extends Action<T>>
Serves as base class for all actions.
An action is a part of a instruction which describes some action to be performed. The action is device-independent.
| Constructor Summary | |
|---|---|
protected |
Action()
Creates a new instance with a default parameter set type. |
protected |
Action(com.kuka.common.params.IParameterSetBuilder<?> paramBuilder)
Creates a new instance with parameters that are built with the given parameter set builder. |
| Method Summary | |
|---|---|
void |
acquireResources(Device device)
Prepares the action. |
protected void |
addParameter(com.kuka.common.params.IParameter<?> newParam)
Adds the given parameter to the set of this action's parameters. |
T |
addParams(com.kuka.common.params.IParameterSet params)
Adds the parameters from the given set to this action. |
com.kuka.common.params.IParameterSet |
getParams()
Gets the parameter set with which the motion is parameterized. |
void |
releaseResources(Device device)
Called when the instruction which is associated with the action is released. |
void |
removeParameter(Class<? extends com.kuka.common.params.IParameter<?>> param)
Removes the given parameter from the set of this action's parameters. |
protected T |
self()
Returns a reference to this object. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected Action()
protected Action(com.kuka.common.params.IParameterSetBuilder<?> paramBuilder)
paramBuilder - parameter set builder| Method Detail |
|---|
protected final T self()
public void acquireResources(Device device)
An action is part of an instruction, and the prepare method passes the device part of the instruction to the action so that it can determine if the device is appropriate for the action.
acquireResources in interface IActiondevice - The device part of the instruction in which the action is
contained.public void releaseResources(Device device)
releaseResources in interface IActiondevice - The device part of the instruction in which the action is
contained.public final com.kuka.common.params.IParameterSet getParams()
getParams in interface IParameterizablepublic final T addParams(com.kuka.common.params.IParameterSet params)
params - parameters to set for this action.
protected final void addParameter(com.kuka.common.params.IParameter<?> newParam)
newParam - the new parameterpublic final void removeParameter(Class<? extends com.kuka.common.params.IParameter<?>> param)
param - the parameter to remove
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||