|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.kuka.roboticsAPI.commandModel.AbstractControllerCommand
com.kuka.roboticsAPI.commandModel.Instruction
public class Instruction
An instruction is a controller command which contains an action and a device.
If an instruction is executed, the controller to which the command is sent will be determined by the controller of the device of this instruction.
| Constructor Summary | |
|---|---|
Instruction(IAction action,
Device device)
Creates a new instruction out of the given action and the device. |
|
| Method Summary | |
|---|---|
void |
acquireResources(ICommandContainer container)
Asks the command to acquire it's resources that are needed for execution. |
IAction |
getAction()
Gets the action for this instruction. |
Controller |
getController()
Gets the controller to which the command is targeted. |
Device |
getDevice()
Gets device for this instruction. |
ICommandRuntimeData |
getRuntimeData()
Gets the runtime data object associated with the command. |
void |
releaseResources(ICommandContainer container)
Tells the command to release it's resources. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Instruction(IAction action,
Device device)
action - The action for the instruction. null is not
allowed.device - The device for the instruction. null is not
allowed.| Method Detail |
|---|
public final Controller getController()
null is not allowed!public final Device getDevice()
public IAction getAction()
public void acquireResources(ICommandContainer container)
throws InterruptedException
This method can block until the resources are available. The method is called before the command is passed to the controller. Implementing classes should throw an exception if preparation fails.
acquireResources in interface IControllerCommandacquireResources in class AbstractControllerCommandcontainer - The container which will be used for the execution of the
command.
InterruptedException - The method may throw an InterruptedException if waiting was
interrupted.public void releaseResources(ICommandContainer container)
releaseResources in interface IControllerCommandreleaseResources in class AbstractControllerCommandcontainer - The container which was used for the execution of the command.public String toString()
toString in class Objectpublic ICommandRuntimeData getRuntimeData()
null.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||