|
||||||||||
| 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
public abstract class SunriseConditionObserver
Class to observe conditions specific for Sunrise.
| Method Summary | |
|---|---|
void |
disable()
Stops observing conditions. |
void |
dispose()
Disposes this condition observer. |
protected void |
disposeInternal()
Disposes this condition observer. |
void |
enable()
Starts observing conditions. |
boolean |
evaluateCondition()
Evaluates if the condition has fired. |
protected abstract 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. |
AbstractCondition |
getCondition()
Gets the observed condition. |
protected String |
getEdgeName(IConditionListener listener)
Sets name and executor of the corresponding edge. |
SPR |
getSPR()
Returns the SPR. |
boolean |
isEnabled()
Get the state of the condition observer. |
boolean |
isEnabledOnStart()
Gets the initial state of the observer. |
void |
onCompoundEvent(SPR spr,
Message message)
Called when one of the SPR compounds has raised an event. |
void |
setConditionID(int conditionId)
Method to initialize the condition ID value - the value will be provided. |
protected void |
setConditionService(SunriseConditionService service)
Sets the condition service that is responsible for the life cycle of this condition observer. |
String |
toString()
|
| Methods inherited from class com.kuka.roboticsAPI.conditionModel.ConditionObserver |
|---|
getNotificationType, getRegisteredEdgeListener |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Method Detail |
|---|
protected void setConditionService(SunriseConditionService service)
service - the condition servicepublic String toString()
toString in class Objectpublic void enable()
enable in class ConditionObserverpublic void disable()
disable in class ConditionObserverpublic boolean isEnabled()
isEnabled in class ConditionObserver
public void onCompoundEvent(SPR spr,
Message message)
onCompoundEvent in interface ICompoundEventListenerspr - The SPR whose compound has raised an event.message - compound event message.
protected abstract com.kuka.roboticsAPI.controllerModel.sunrise.conditions.EdgeListenerExecutor getAndFillExecutor(Message message,
Date time,
int missedEvents,
boolean conditionValue)
message - the message containing condition event specific data.time - the condition event timemissedEvents - the amount of missed eventsconditionValue - the value of the condition.
public SPR getSPR()
public void setConditionID(int conditionId)
conditionId - condition IDpublic AbstractCondition getCondition()
getCondition in class ConditionObserverpublic void dispose()
dispose in class ConditionObserverprotected void disposeInternal()
This method is intended to be called when disposing this observer directly, or when this observer is removed from the condition service.
protected String getEdgeName(IConditionListener listener)
listener - Corresponding listener
public boolean evaluateCondition()
ConditionObserver
evaluateCondition in class ConditionObserverpublic boolean isEnabledOnStart()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||