|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.kuka.roboticsAPI.BootStateControllerInitializationBehaviour
public class BootStateControllerInitializationBehaviour
Controller initialize behavior that monitors the boot states of the controller.
| Constructor Summary | |
|---|---|
BootStateControllerInitializationBehaviour()
|
|
| Method Summary | |
|---|---|
void |
addControllerListener(IControllerBootStateListener listener)
Adds a listener. |
void |
afterInitialize(Controller controller)
Called from the afterInitialize method of the controller. |
void |
dispose()
Disposes this instance. |
protected void |
fireControllerBootStateChanged(Controller contr)
Informs all listeners about a change of the boot state of the controller. |
String |
getBootErrorDetails(Controller controller)
Gets the boot state of the controller. |
ControllerBootInfo |
getBootInfo(Controller controller)
Gets the boot info object of the controller. |
com.kuka.roboticsAPI.controllerModel.ControllerBootState |
getBootState(Controller controller)
Gets the boot state of the controller. |
void |
initializationError(Controller controller,
RuntimeException ex)
Handles exceptions that occur during the initialization phase of the controller. |
void |
initialize(Controller controller)
Initializes the behavior with default values. |
void |
onEvent(Controller controller,
String event,
Message eventMessage)
Handles events that occurred on the controller. |
void |
onInitialize(Controller controller)
Called from the onInitialize method of the controller. |
void |
removeControllerListener(IControllerBootStateListener listener)
Removes a listener. |
void |
setBootErrorTimeout(int value)
Sets the maximum timeout (in ms) for the onInitialize method. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BootStateControllerInitializationBehaviour()
| Method Detail |
|---|
public void addControllerListener(IControllerBootStateListener listener)
listener - The listener that will be registered. null is not allowed.
The same listener instance can be registered only once. Multiple registration attempts for the same listener instance will be ignored.
public void removeControllerListener(IControllerBootStateListener listener)
listener - The listener that will be unregistered. null is not allowed.public void initialize(Controller controller)
initialize in interface IControllerInitializeBehaviourcontroller - the corresponding controllerpublic void onInitialize(Controller controller)
onInitialize in interface IControllerInitializeBehaviourcontroller - the corresponding controllerpublic void afterInitialize(Controller controller)
afterInitialize in interface IControllerInitializeBehaviourcontroller - the corresponding controller
public void onEvent(Controller controller,
String event,
Message eventMessage)
onEvent in interface IControllerInitializeBehaviourcontroller - the corresponding controllerevent - the occurred eventeventMessage - received event messageprotected void fireControllerBootStateChanged(Controller contr)
contr - the controller with the changed boot state.
public void initializationError(Controller controller,
RuntimeException ex)
initializationError in interface IControllerInitializeBehaviourcontroller - the corresponding controllerex - exception that was thrownpublic com.kuka.roboticsAPI.controllerModel.ControllerBootState getBootState(Controller controller)
controller - the controller
public ControllerBootInfo getBootInfo(Controller controller)
controller - the controller
public String getBootErrorDetails(Controller controller)
controller - the controller
public void setBootErrorTimeout(int value)
value - the maximum timeout (in ms) for the onInitialize method.public void dispose()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||