|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.kuka.roboticsAPI.RoboticsAPIContext
com.kuka.roboticsAPI.RoboticsAPILazyDeviceContext
public class RoboticsAPILazyDeviceContext
Device context that initializes the controllers on demand.
| Field Summary |
|---|
| Fields inherited from class com.kuka.roboticsAPI.RoboticsAPIContext |
|---|
_controllers, DEFAULT_FILE_NAME |
| Constructor Summary | |
|---|---|
protected |
RoboticsAPILazyDeviceContext(Class<?> applicationContext,
URL configFile)
Creates a new context instance. |
| Method Summary | |
|---|---|
boolean |
controllersInitialized()
indicates whether the controller is initialized. |
static RoboticsAPILazyDeviceContext |
create()
Creates a new RoboticsAPIContext out of the config file which is located on the default package scope. |
static RoboticsAPILazyDeviceContext |
create(Class<?> applicationContext)
Creates a new RoboticsAPIContext out of the config file which is located on the default package scope. |
static RoboticsAPILazyDeviceContext |
createFromFile(Class<?> applicationContext,
File configFile)
Creates a new RoboticsAPIContext out of the given config file. |
static RoboticsAPILazyDeviceContext |
createFromFile(File configFile)
Creates a new RoboticsAPIContext out of the given config file. |
static RoboticsAPILazyDeviceContext |
createFromResource(Class<?> applicationContext,
String resourceName)
Creates a new RoboticsAPIContext out of the given configuration file. |
static RoboticsAPILazyDeviceContext |
createFromResource(String resourceName)
Creates a new RoboticsAPIContext out of the given configuration file. |
static RoboticsAPILazyDeviceContext |
createFromURL(Class<?> applicationContext,
URL configURL)
Creates a new RoboticsAPIContext out of the given config URL. |
void |
dispose()
Disposes this context and all included resources. |
BootStateControllerInitializationBehaviour |
getControllerInitializeBehavior()
Gets the initialization behavior of the controller. |
void |
initializeControllers()
Initialize the controller. |
protected Controller |
loadControllers(Iterable<com.kuka.common.ParameterSet> descriptions,
Map<String,Controller> controllers,
Map<String,com.kuka.common.ParameterSet> invalidControllers)
Loads all controllers from the parameter set descriptions. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
protected RoboticsAPILazyDeviceContext(Class<?> applicationContext,
URL configFile)
applicationContext - The application context. Can be null.configFile - The configuration file. Can be null.| Method Detail |
|---|
public void initializeControllers()
public boolean controllersInitialized()
protected Controller loadControllers(Iterable<com.kuka.common.ParameterSet> descriptions,
Map<String,Controller> controllers,
Map<String,com.kuka.common.ParameterSet> invalidControllers)
RoboticsAPIContext
loadControllers in class RoboticsAPIContextdescriptions - The set of descriptions. The "Class"-Attribute describes the type of the controller, the "Name"
attribute the name.controllers - The map in which the created controllers should get added.invalidControllers - The map in which invalid controllers should get added (if graceful initialization is on).
public static RoboticsAPILazyDeviceContext create()
public static RoboticsAPILazyDeviceContext create(Class<?> applicationContext)
applicationContext - The application context.
public static RoboticsAPILazyDeviceContext createFromResource(String resourceName)
resourceName - The resource file. null is not allowed.
public static RoboticsAPILazyDeviceContext createFromResource(Class<?> applicationContext,
String resourceName)
applicationContext - The application context.resourceName - The resource file. null is not allowed.
public static RoboticsAPILazyDeviceContext createFromFile(File configFile)
configFile - The config file. null is not allowed.
public static RoboticsAPILazyDeviceContext createFromFile(Class<?> applicationContext,
File configFile)
applicationContext - The application context.configFile - The config file. null is not allowed.
public static RoboticsAPILazyDeviceContext createFromURL(Class<?> applicationContext,
URL configURL)
applicationContext - The application context.configURL - The URL to the config file. null is not allowed.
public void dispose()
dispose in class RoboticsAPIContextpublic BootStateControllerInitializationBehaviour getControllerInitializeBehavior()
getControllerInitializeBehavior in class RoboticsAPIContext
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||