The Robot Application Programming Interface Delegate Project
RAPID Logo

FileQueueConfigCache Class Reference

Inheritance diagram for FileQueueConfigCache:
Collaboration diagram for FileQueueConfigCache:

List of all members.

Classes

class  FileQueueConfigHolder

Public Member Functions

void addConfigImpl (FileQueueConfig config)
void rapidEventReceived (Agent agent, MessageType type, IRapidMessage msg)

Static Public Member Functions

static FileQueueConfigHolder getSubscribedConfig (final Agent agent, final MessageType configType, FileQueueSample data)
 Matches the serial number in JointSample to the latest JointConfig and returns it if true.
static FileQueueConfigHolder getConfig (final Agent agent, final MessageType configType)
static synchronized void createCache (final Agent agent, MessageType configType)
static void addConfig (Agent agent, MessageType configType, FileQueueConfig config)
 Manually add Config to cache.
static void addConfig (String agentName, MessageType configType, FileQueueConfig config)

Protected Member Functions

FileQueueConfigHolder getLatestConfig ()
FileQueueConfigHolder getLatestMatchingConfig (Header hdr)

Package Attributes

ArrayList< FileQueueConfigHolderhistory = new ArrayList<FileQueueConfigHolder>()

Member Function Documentation

static void addConfig ( Agent  agent,
MessageType  configType,
FileQueueConfig  config 
) [static]

Used for client Configs.

Parameters:
agent
configType
config

Here is the call graph for this function:

static void addConfig ( String  agentName,
MessageType  configType,
FileQueueConfig  config 
) [static]

Here is the call graph for this function:

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

Here is the call graph for this function:

static FileQueueConfigHolder getConfig ( final Agent  agent,
final MessageType  configType 
) [static]

Here is the call graph for this function:

FileQueueConfigHolder getLatestConfig ( ) [protected]
FileQueueConfigHolder getLatestMatchingConfig ( Header  hdr) [protected]
static FileQueueConfigHolder getSubscribedConfig ( final Agent  agent,
final MessageType  configType,
FileQueueSample  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
configType
data
  • should never be null
Returns:
FileQueueConfigHolder
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<FileQueueConfigHolder> history = new ArrayList<FileQueueConfigHolder>() [package]

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