|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.kuka.roboticsAPI.controllerModel.ControllerService
com.kuka.roboticsAPI.controllerModel.ConditionService
com.kuka.roboticsAPI.controllerModel.sunrise.conditions.SunriseConditionService
public class SunriseConditionService
Class to create and remove condition observers.
| Constructor Summary | |
|---|---|
SunriseConditionService()
|
|
| Method Summary | |
|---|---|
ConditionObserver |
createAndEnableConditionObserver(ICondition condition,
NotificationType notificationType,
IConditionListener edgeListener)
Creates and enables a condition observer. |
ConditionObserver |
createConditionObserver(ICondition condition,
NotificationType notificationType,
IConditionListener edgeListener)
Creates a condition observer. |
static SunriseConditionObserver |
createNewObserver(ICondition condition,
NotificationType notificationType,
IConditionListener edgeListener,
SunriseExecutionService executionService,
IContainerStateListener containerStateListener,
boolean isEnabledOnStart)
This function is only used by the framework. |
protected void |
dispose()
Disposes this service. |
List<ConditionObserver> |
getConditionObservers()
Get a collection of all registered condition observers. |
SunriseController |
getController()
Gets the controller associated with this service. |
void |
removeConditionObserver(ConditionObserver observer)
Removes the corresponding condition observer. |
| Methods inherited from class com.kuka.roboticsAPI.controllerModel.ControllerService |
|---|
getContext, initialize |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SunriseConditionService()
| Method Detail |
|---|
public ConditionObserver createConditionObserver(ICondition condition,
NotificationType notificationType,
IConditionListener edgeListener)
ConditionService
createConditionObserver in class ConditionServicecondition - Condition to be observednotificationType - Notification options of the ConditionObserveredgeListener - Corresponding edge listener
public ConditionObserver createAndEnableConditionObserver(ICondition condition,
NotificationType notificationType,
IConditionListener edgeListener)
ConditionService
createAndEnableConditionObserver in class ConditionServicecondition - Condition to be observednotificationType - Notification options of the ConditionObserveredgeListener - Corresponding edge listener
public static SunriseConditionObserver createNewObserver(ICondition condition,
NotificationType notificationType,
IConditionListener edgeListener,
SunriseExecutionService executionService,
IContainerStateListener containerStateListener,
boolean isEnabledOnStart)
createConditionObserver(com.kuka.roboticsAPI.conditionModel.ICondition, com.kuka.roboticsAPI.conditionModel.NotificationType, com.kuka.roboticsAPI.conditionModel.IConditionListener) for creating new ConditionObservers.
Creates a new SunriseConditionObserver and sends the necessary SPR to Sunrise.
NOTE: The state of the ConditionObserver and the corresponding SPR is NOT managed by the SunriseConditionService. So if this function is used, you have to call the dispose()-function all by yourself. Also note, that ConditionObservers, which are created by this function, will not count into the maximum number of allowed condition observers.
condition - The condition for the observer.notificationType - The notification type, on which the condition should reactedgeListener - The EdgeListener which implements the callback-functions.executionService - The SunriseExecutionService to send the corresponding SPR.containerStateListener - The ContainerListener to monitor the execution of the SPR.isEnabledOnStart - The initial state of the condition observer (enabled
or disabled)
public void removeConditionObserver(ConditionObserver observer)
ConditionService
removeConditionObserver in class ConditionServiceobserver - The corresponding condition observer to be removedprotected void dispose()
ControllerService
dispose in class ControllerServicepublic SunriseController getController()
ControllerService
getController in class ControllerServicepublic List<ConditionObserver> getConditionObservers()
getConditionObservers in class ConditionService
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||