|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.kuka.roboticsAPI.controllerModel.sunrise.Primitive
com.kuka.roboticsAPI.controllerModel.sunrise.SprPrimitive
public class SprPrimitive
A Primitive consisting of exactly one SPR that has the same life cycle as the Primitive.
| Constructor Summary | |
|---|---|
SprPrimitive(SunriseExecutionContainer container,
SPR spr)
Creates a new instance of this Primitive. |
|
SprPrimitive(SunriseExecutionContainer container,
SPR spr,
boolean canResumeAfterPause)
Creates a new instance of this Primitive. |
|
| Method Summary | |
|---|---|
void |
cancel()
Cancels the primitive. |
boolean |
canResumeAfterPause()
Indicates that the corresponding SPR can be resumed after a pause. |
Collection<SPR> |
getAllSprs()
Returns all SPRs that this Primitive consists of. |
SPR |
getSPR()
Returns the SPR of this SprPrimitive. |
protected void |
handleSprStateChanged(SPR eventSpr,
SPRState newState)
Called when the state of the given SPR changed. |
String |
toString()
|
protected void |
unregisterAllSprListener()
Unregisters this primitive from ALL SPR state events. |
| Methods inherited from class com.kuka.roboticsAPI.controllerModel.sunrise.Primitive |
|---|
addStateListener, createFiredConditionInfo, getContainer, getRedundancy, getState, handleSprCompoundEvent, mapSunriseStateToCommandState, registerAsSprListener, removeStateListener, setState, stateFromSpr, unregisterAsSprListener |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public SprPrimitive(SunriseExecutionContainer container,
SPR spr)
container - the container that this primitive belongs tospr - the SPR that makes up this primitive. The SPR must be resumable after a pause.
public SprPrimitive(SunriseExecutionContainer container,
SPR spr,
boolean canResumeAfterPause)
container - the container that this primitive belongs tospr - the SPR that makes up this primitive.canResumeAfterPause - Indicates whether the SPR is resumable after a pause or not.| Method Detail |
|---|
public SPR getSPR()
SprPrimitive.
public Collection<SPR> getAllSprs()
getAllSprs in class Primitivepublic String toString()
toString in class Object
protected void handleSprStateChanged(SPR eventSpr,
SPRState newState)
Primitive
handleSprStateChanged in class PrimitiveeventSpr - The SPR which changed it's state.newState - The new state of the SPR.public boolean canResumeAfterPause()
public void cancel()
Cancels all SPRs belonging to the primitive.
cancel in class Primitiveprotected void unregisterAllSprListener()
PrimitivePrimitive.handleSprStateChanged(SPR, SPRState) and Primitive.handleSprCompoundEvent(SPR, Message).
unregisterAllSprListener in class Primitive
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||