|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.kuka.roboticsAPI.controllerModel.sunrise.api.SPRComponent
com.kuka.roboticsAPI.controllerModel.sunrise.api.Module
com.kuka.roboticsAPI.controllerModel.sunrise.predefinedCompounds.RemoteModule
public abstract class RemoteModule
Base class for module with an online remote connection to a java module.
| Field Summary | |
|---|---|
protected static int |
ERROR
Indicates that an error occurred in the life cycle method. |
protected static int |
READYFORNEXTSTATE
Indicates that the module is ready for the next life cycle state. |
protected static int |
SUCCESS
Indicates that no error occurred in the life cycle method. |
| Constructor Summary | |
|---|---|
protected |
RemoteModule(SPR spr,
Controller controller)
Creates a new remote module. |
| Method Summary | |
|---|---|
protected int |
active()
Called when the SPR is in Active. |
protected InPort |
addInPort(String name,
ISerializableType value)
Adds an inport to this module. |
protected OutPort |
addOutPort(String name,
ISerializableType value)
Adds an outport to this module. |
void |
connectionLost()
Called to indicate that the connection was lost. |
protected int |
getCycleRate()
Gets the cycle rate of this remote module in milliseconds. |
OutPort |
getWatchdogAlarm()
Gets the watchdog outport for this remote module to make assignments. |
int |
getWatchdogTolerance()
Gets the watchdog tolerance. |
void |
handleMessage(Message message)
Handles the given message. |
protected boolean |
isFailOnCycleRateExceed()
Gets if the module goes in invalid of cycle rate exceeded. |
protected int |
maintaining()
Called when the SPR is in Maintaining. |
protected boolean |
needsMaintaining()
Checks whether this module needs the maintaining phase. |
protected void |
needsMaintaining(boolean needsMaintaining)
Sets the flag whether this module needs the maintaining phase. |
protected void |
onSerialization()
Called when the SPR in which this compound is added, is serialized. |
void |
onSPRStateChanged(SPR spr,
SPRState newState)
Called when the state of the given SPR changed. |
protected void |
setCycleRate(int cycleMillis)
Sets the cycle rate of this remote module in milliseconds. |
protected void |
setFailOnCycleRateExceed(boolean failOnCycleRateExceed)
Sets if the module should go in invalid if cycle rate exceeded. |
protected void |
setWatchdogTolerance(int watchdogToleranceMillis)
Sets the tolerance of the watchdog. |
protected int |
tuning()
Called when the SPR is in Tuning. |
protected int |
tuningFinished()
Called when the SPR is in TuningFinished. |
| Methods inherited from class com.kuka.roboticsAPI.controllerModel.sunrise.api.Module |
|---|
getComponentType, getComponentVersion |
| Methods inherited from class com.kuka.roboticsAPI.controllerModel.sunrise.api.SPRComponent |
|---|
addInPort, addInPort, addOutPort, addOutPort, addParameter, getChecksum, getExpressionSegmentString, getInPort, getInPorts, getInstanceName, getName, getOutPort, getOutPorts, getParameter, getParameterList, getSPR, hasSameDataAs, onAsyncEvent, onFinished, onInitialize, onSPRStateChanged, onSPRStateChangedSync, setInstanceName, setName, toString, tryGetParameter |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected static final int ERROR
protected static final int SUCCESS
protected static final int READYFORNEXTSTATE
| Constructor Detail |
|---|
protected RemoteModule(SPR spr,
Controller controller)
spr - The SPR to which this module belongs.controller - The controller for this module.| Method Detail |
|---|
public OutPort getWatchdogAlarm()
protected int getCycleRate()
protected void setCycleRate(int cycleMillis)
cycleMillis - The cycle rate of this remote module in milliseconds.protected void needsMaintaining(boolean needsMaintaining)
needsMaintaining - True if this module needs the maintaining phase.protected boolean needsMaintaining()
public int getWatchdogTolerance()
protected void setWatchdogTolerance(int watchdogToleranceMillis)
watchdogToleranceMillis - The tolerance of the watchdogprotected boolean isFailOnCycleRateExceed()
protected void setFailOnCycleRateExceed(boolean failOnCycleRateExceed)
failOnCycleRateExceed - True if module should go in invalid.
protected final OutPort addOutPort(String name,
ISerializableType value)
name - The name of the port.value - The value for this port.
protected final InPort addInPort(String name,
ISerializableType value)
name - The name of the port.value - The value for this port.
protected void onSerialization()
SPRComponent
onSerialization in class SPRComponentprotected int tuning()
protected int tuningFinished()
protected int active()
protected int maintaining()
public void handleMessage(Message message)
handleMessage in interface IMessageHandlermessage - The message to be handled. Will never be null.
public void onSPRStateChanged(SPR spr,
SPRState newState)
onSPRStateChanged in interface ISPRStateListenerspr - The SPR which changed it's state.newState - The new state of the SPR.public void connectionLost()
connectionLost in interface IMessageHandler
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||