|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.kuka.roboticsAPI.conditionModel.ConditionObserver
com.kuka.roboticsAPI.controllerModel.sunrise.conditions.SunriseConditionObserver
com.kuka.roboticsAPI.controllerModel.sunrise.conditions.SunriseTriggerConditionObserver
public class SunriseTriggerConditionObserver
Class to observe trigger conditions specific for Sunrise.
| Constructor Summary | |
|---|---|
SunriseTriggerConditionObserver(ICondition condition,
ITriggerAction listener,
SPR spr,
AbstractMotionContainer motionContainer,
RequestService requestService)
Constructor to create a sunrise trigger observer. |
|
| Method Summary | |
|---|---|
void |
disable()
Stops observing conditions. |
protected void |
disposeInternal()
Disposes this condition observer. |
void |
enable()
Starts observing conditions. |
boolean |
evaluateCondition()
Evaluates if the condition has fired. |
protected com.kuka.roboticsAPI.controllerModel.sunrise.conditions.EdgeListenerExecutor |
getAndFillExecutor(Message message,
Date time,
int missedEvents,
boolean conditionValue)
Gets the executor for the executor for the this type of condition and fills it with the executor specific data from the message. |
ITriggerAction |
getRegisteredEdgeListener()
Gets the registered edge listener of a condition observer. |
void |
onStateChanged(IExecutionContainer container,
ExecutionState state)
Called when the state of the container changed it's state. |
| Methods inherited from class com.kuka.roboticsAPI.controllerModel.sunrise.conditions.SunriseConditionObserver |
|---|
dispose, getCondition, getEdgeName, getSPR, isEnabled, isEnabledOnStart, onCompoundEvent, setConditionID, setConditionService, toString |
| Methods inherited from class com.kuka.roboticsAPI.conditionModel.ConditionObserver |
|---|
getNotificationType |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public SunriseTriggerConditionObserver(ICondition condition,
ITriggerAction listener,
SPR spr,
AbstractMotionContainer motionContainer,
RequestService requestService)
condition - The conditionlistener - The listener for observing.spr - The SPR.motionContainer - the motion container that owns the trigger condition observer.requestService - the request service for enabling / disabling the events.| Method Detail |
|---|
public ITriggerAction getRegisteredEdgeListener()
ConditionObserver
getRegisteredEdgeListener in class ConditionObserver
protected com.kuka.roboticsAPI.controllerModel.sunrise.conditions.EdgeListenerExecutor getAndFillExecutor(Message message,
Date time,
int missedEvents,
boolean conditionValue)
SunriseConditionObserver
getAndFillExecutor in class SunriseConditionObservermessage - the message containing condition event specific data.time - the condition event timemissedEvents - the amount of missed eventsconditionValue - the value of the condition.
public void onStateChanged(IExecutionContainer container,
ExecutionState state)
IContainerStateListener
onStateChanged in interface IContainerStateListenercontainer - The container which changed it's state.state - The actual state of the container.public void enable()
SunriseConditionObserver
enable in class SunriseConditionObserverpublic void disable()
SunriseConditionObserver
disable in class SunriseConditionObserverpublic boolean evaluateCondition()
ConditionObserver
evaluateCondition in class SunriseConditionObserverprotected void disposeInternal()
SunriseConditionObserverThis method is intended to be called when disposing this observer directly, or when this observer is removed from the condition service.
disposeInternal in class SunriseConditionObserver
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||