|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.kuka.roboticsAPI.applicationModel.tasks.RoboticsAPITask
com.kuka.roboticsAPI.applicationModel.RoboticsAPIApplication
public abstract class RoboticsAPIApplication
Base class for RoboticsAPI applications.
Available types for Dependency Injection| Constructor Summary | |
|---|---|
protected |
RoboticsAPIApplication()
This constructor is meant to be used with dependency injection. |
protected |
RoboticsAPIApplication(RoboticsAPIContext context)
Creates a new instance of the application with specified context, without logging or task manager capabilities. |
protected |
RoboticsAPIApplication(RoboticsAPIContext context,
com.kuka.task.ITaskLogger logger,
com.kuka.task.ITaskManager taskManager)
Creates a new instance of the application with specified context. |
| Method Summary | ||
|---|---|---|
|
createFromTemplate(String name)
Creates an instance if SpatialObject (or its specialization) based on the template with the given name. |
|
IApplicationControl |
getApplicationControl()
Gets the application control interface for the application. |
|
IApplicationUI |
getApplicationUI()
Gets the application UI interface for the application. |
|
ObjectFrame |
getFrame(String name)
Gets a persistent frame with the given name. |
|
IRecovery |
getRecovery()
Gets the interface for recovery. |
|
void |
onApplicationStateChanged(RoboticsAPIApplicationState state)
Called from the framework when the application state has changed. |
|
void |
runApplication()
Convenience method that initializes, runs and disposes the application. |
|
| Methods inherited from class com.kuka.roboticsAPI.applicationModel.tasks.RoboticsAPITask |
|---|
dispose, getApplicationData, getContext, getController, getDevice, getDevice, getLogger, getObserverManager, getRobot, getRobot, getTaskFunction, getTaskManager, initialize |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.kuka.roboticsAPI.applicationModel.tasks.ILegacyRoboticsAPITask |
|---|
getContext, getLogger |
| Methods inherited from interface com.kuka.task.IRoboticsAPITask |
|---|
dispose, initialize, run |
| Constructor Detail |
|---|
protected RoboticsAPIApplication()
protected RoboticsAPIApplication(RoboticsAPIContext context)
RoboticsAPITask.getLogger() or the task manager (
RoboticsAPITask.getTaskManager() and RoboticsAPITask.getTaskFunction(Class)).
context - context of the task. It will be disposed when this task is disposed.
protected RoboticsAPIApplication(RoboticsAPIContext context,
com.kuka.task.ITaskLogger logger,
com.kuka.task.ITaskManager taskManager)
context - context of the task. It will be disposed when this task is disposed.logger - the logger that will be returned by RoboticsAPITask.getLogger()taskManager - the task manager that will be returned by RoboticsAPITask.getTaskManager() and is used by
RoboticsAPITask.getTaskFunction(Class)| Method Detail |
|---|
public void runApplication()
The dispose method will be called, even if an exception is thrown during initialization or run.
RoboticsAPITask.initialize(),
IRoboticsAPITask.run(),
RoboticsAPITask.dispose()public final ObjectFrame getFrame(String name)
name - The name of the frame.
IllegalStateException - if the context is not available because the application was not properly initializedpublic final <T extends SpatialObject> T createFromTemplate(String name)
SpatialObject (or its specialization) based on the template with the given name.
T - The type of the created instance.name - The name of a template.
IllegalStateException - if the context is not available because the application was not properly initializedpublic void onApplicationStateChanged(RoboticsAPIApplicationState state)
onApplicationStateChanged in interface IRoboticsAPIApplicationstate - The new state of the robotics API application.public IApplicationUI getApplicationUI()
getApplicationUI in class RoboticsAPITaskIllegalArgumentException - if UI engine is not configured for the application.public IApplicationControl getApplicationControl()
IllegalStateException - if the context is not available because the application was not properly initializedpublic IRecovery getRecovery()
getRecovery in class RoboticsAPITask
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||