The Robot Application Programming Interface Delegate Project
RAPID Logo

AssetConfigCache Class Reference

Inheritance diagram for AssetConfigCache:
Collaboration diagram for AssetConfigCache:

List of all members.

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, DataTypeIndexgetKeyValueMap (AssetConfig config)

Package Attributes

ArrayList< AssetConfigHolderhistory = new ArrayList<AssetConfigHolder>()

Member Function Documentation

static void addConfig ( Agent  agent,
AssetConfig  config 
) [static]

Used for client Configs

Parameters:
agent
config

Here is the call graph for this function:

void addConfigImpl ( AssetConfig  config)

Here is the call graph for this function:

static synchronized void createCache ( final Agent  agent) [static]

Here is the call graph for this function:

static synchronized void createCache ( final Agent  agent,
final MessageType  configType 
) [static]

Here is the call graph for this function:

static AssetConfigHolder getConfig ( final Agent  agent) [static]

Here is the call graph for this function:

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.

Parameters:
agent
data
  • should never be null
Returns:
AssetConfigHolder
Exceptions:
RapidEventCollectorException

Here is the call graph for this function:

void rapidEventReceived ( Agent  agent,
MessageType  type,
IRapidMessage  msg 
)

Implements IRapidEventListener.

Here is the call graph for this function:


Member Data Documentation

ArrayList<AssetConfigHolder> history = new ArrayList<AssetConfigHolder>() [package]

The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines