The Robot Application Programming Interface Delegate Project
|
Classes | |
class | AssetConfigHolder |
Public Member Functions | |
void | addConfigImpl (AssetConfig config) |
void | rapidEventReceived (Agent agent, MessageType type, IRapidMessage msg) |
Static Public Member Functions | |
static AssetConfigHolder | getSubscribedConfig (final Agent agent, AssetState data) |
Matches the serial number in JointSample to the latest JointConfig and returns it if true. | |
static AssetConfigHolder | getConfig (final Agent agent) |
static synchronized void | createCache (final Agent agent) |
static synchronized void | createCache (final Agent agent, final MessageType configType) |
static void | addConfig (Agent agent, AssetConfig config) |
manually add Config to cache. | |
Protected Member Functions | |
AssetConfigHolder | getLatestConfig () |
AssetConfigHolder | getLatestMatchingConfig (Header hdr) |
Map< String, DataTypeIndex > | getKeyValueMap (AssetConfig config) |
Package Attributes | |
ArrayList< AssetConfigHolder > | history = new ArrayList<AssetConfigHolder>() |
static void addConfig | ( | Agent | agent, |
AssetConfig | config | ||
) | [static] |
Used for client Configs
agent | |
config |
void addConfigImpl | ( | AssetConfig | config | ) |
static synchronized void createCache | ( | final Agent | agent | ) | [static] |
static synchronized void createCache | ( | final Agent | agent, |
final MessageType | configType | ||
) | [static] |
static AssetConfigHolder getConfig | ( | final Agent | agent | ) | [static] |
Map<String,DataTypeIndex> getKeyValueMap | ( | AssetConfig | config | ) | [protected] |
AssetConfigHolder getLatestConfig | ( | ) | [protected] |
AssetConfigHolder getLatestMatchingConfig | ( | Header | hdr | ) | [protected] |
static AssetConfigHolder getSubscribedConfig | ( | final Agent | agent, |
AssetState | 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 | |
data |
|
RapidEventCollectorException |
void rapidEventReceived | ( | Agent | agent, |
MessageType | type, | ||
IRapidMessage | msg | ||
) |
ArrayList<AssetConfigHolder> history = new ArrayList<AssetConfigHolder>() [package] |