|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.kuka.roboticsAPI.controllerModel.sunrise.api.ReturnValues
public final class ReturnValues
Return values is the compound which tells Sunrise which data-flow elements are registered as return values.
| Field Summary | |
|---|---|
static int |
SUNRISE_PORT_NAME_LENGTH
Must match DF_VARIABLE_NAME_LENGTH in Sunrise and ParameterNameLength in connectionLib. |
| Constructor Summary | |
|---|---|
ReturnValues()
|
|
| Method Summary | |
|---|---|
void |
dumpValues()
Dumps the last received values of all registered ports to Log. |
Map<Integer,OutPort> |
getRegisteredPorts()
Gets all registered outports. |
Object |
getValue(OutPort port,
SPRState state)
Gets the latest value of a port for a given state. |
boolean |
hasSameDataAs(Object obj)
|
boolean |
isEmpty()
Determines if any return values are registered. |
void |
onReturnValuesReceived(SPRState sprState,
byte[] returnValues)
New return values have been received. |
void |
registerValueOrder(Message message)
Registers the value order of the return values. |
int |
size()
Gets the amount of registered return values. |
String |
toString()
|
static void |
useHistory(boolean useHistory)
Indicates if the history functionality of the return values should be used. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final int SUNRISE_PORT_NAME_LENGTH
| Constructor Detail |
|---|
public ReturnValues()
| Method Detail |
|---|
public static void useHistory(boolean useHistory)
This flag affects the history functionality for every SPR on every SunriseController.
useHistory - Tells the return values wheather the history should be used, or not.public void registerValueOrder(Message message)
message - The message from Sunrise containing the IO config list.public int size()
public void onReturnValuesReceived(SPRState sprState,
byte[] returnValues)
sprState - The state for which the values come in.returnValues - The BLOB containing the raw return values.
public Object getValue(OutPort port,
SPRState state)
port - The port.state - The state.
public String toString()
toString in class Objectpublic void dumpValues()
public Map<Integer,OutPort> getRegisteredPorts()
The method returns the underlying map and can be modified directly.
public boolean isEmpty()
public boolean hasSameDataAs(Object obj)
hasSameDataAs in interface com.kuka.common.IDataEquatable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||