The Robot Application Programming Interface Delegate Project
|
Classes | |
class | PositionConfigHolder |
Public Member Functions | |
void | addConfigImpl (PositionConfig config) |
void | rapidEventReceived (Agent agent, MessageType type, IRapidMessage msg) |
Static Public Member Functions | |
static PositionConfigHolder | getSubscribedConfig (final Agent agent, final MessageType configType, PositionSample data) |
Matches the serial number in JointSample to the latest JointConfig and returns it if true. | |
static PositionConfigHolder | getConfig (final Agent agent, final MessageType configType) |
static synchronized void | createCache (final Agent agent, final MessageType configType) |
static void | addConfig (Agent agent, MessageType configType, PositionConfig config) |
Manually add Config to cache. | |
Protected Member Functions | |
PositionConfigHolder | getLatestConfig () |
PositionConfigHolder | getLatestMatchingConfig (Header hdr) |
Map< String, DataTypeIndex > | getKeyValueMap (PositionConfig config) |
Package Attributes | |
ArrayList< PositionConfigHolder > | history = new ArrayList<PositionConfigHolder>() |
static void addConfig | ( | Agent | agent, |
MessageType | configType, | ||
PositionConfig | config | ||
) | [static] |
Used for client Configs.
agent | |
configType | |
config |
void addConfigImpl | ( | PositionConfig | config | ) |
static synchronized void createCache | ( | final Agent | agent, |
final MessageType | configType | ||
) | [static] |
static PositionConfigHolder getConfig | ( | final Agent | agent, |
final MessageType | configType | ||
) | [static] |
Map<String,DataTypeIndex> getKeyValueMap | ( | PositionConfig | config | ) | [protected] |
PositionConfigHolder getLatestConfig | ( | ) | [protected] |
PositionConfigHolder getLatestMatchingConfig | ( | Header | hdr | ) | [protected] |
static PositionConfigHolder getSubscribedConfig | ( | final Agent | agent, |
final MessageType | configType, | ||
PositionSample | data | ||
) | [static] |
If false, null is returned
TODO: match against history of JointConfig messages
If the client would like to subscribe to the Config message to receive the initial JointSample, the following should be done at the calling class:
JointConfig.getSubscribedConfig(agent, new JointSample());
This will return null, but the JointConfig has been registered to listen for events.
agent | |
configType | |
data |
|
RapidEventCollectorException |
void rapidEventReceived | ( | Agent | agent, |
MessageType | type, | ||
IRapidMessage | msg | ||
) |
ArrayList<PositionConfigHolder> history = new ArrayList<PositionConfigHolder>() [package] |