#include <mtsCollectorEvent.h>
Inheritance diagram for mtsCollectorEvent:


Definition at line 45 of file mtsCollectorEvent.h.
typedef cmnNamedMap<mtsInterfaceRequired> mtsCollectorEvent::InterfacesRequiredMap [protected] |
We need to keep a list of components the event collector will connect from. Each component can then have one or more provided interface and for each provided interface we will need to create a required interface. For this, we use a map of maps.
Definition at line 63 of file mtsCollectorEvent.h.
typedef cmnNamedMap<InterfacesRequiredMap> mtsCollectorEvent::ComponentsMap [protected] |
We need to keep a list of components the event collector will connect from. Each component can then have one or more provided interface and for each provided interface we will need to create a required interface. For this, we use a map of maps.
Definition at line 64 of file mtsCollectorEvent.h.
| mtsCollectorEvent::mtsCollectorEvent | ( | const std::string & | collectorName, | |
| const CollectorFileFormat | fileFormat | |||
| ) |
Constructor, requires to name the collector task.
| mtsComponent* mtsCollectorEvent::CheckComponent | ( | const std::string & | componentName | ) | const [protected] |
Utility methods to check availibility of components, interfaces and events
| mtsInterfaceProvided* mtsCollectorEvent::CheckInterface | ( | const mtsComponent * | componentPointer, | |
| const std::string & | interfaceName | |||
| ) | const [protected] |
Utility methods to check availibility of components, interfaces and events
| mtsInterfaceRequired* mtsCollectorEvent::GetInterfaceRequiredFor | ( | const mtsComponent * | componentPointer, | |
| const mtsInterfaceProvided * | interfacePointer | |||
| ) | [protected] |
Get the required interface associated to a specific connection defined by the component and interface. If the required interface doesn't exist yet, a new one is being created.
| void mtsCollectorEvent::SaveEventVoid | ( | const CollectorEventVoid * | event | ) | [protected] |
Save the event information
| void mtsCollectorEvent::SaveEventWrite | ( | const CollectorEventWrite * | event, | |
| const mtsGenericObject & | payload | |||
| ) | [protected] |
Save the event information and payload
| bool mtsCollectorEvent::CheckCollectingStatus | ( | void | ) | [protected] |
Update and return the collecting status based on the scheduled start/stop time and current time.
| void mtsCollectorEvent::Run | ( | void | ) | [virtual] |
Thread-related methods
Implements mtsTask.
| void mtsCollectorEvent::Startup | ( | void | ) | [virtual] |
Set some initial values
Implements mtsCollectorBase.
| void mtsCollectorEvent::Initialize | ( | void | ) |
Initialization
Reimplemented from mtsComponent.
| virtual std::string mtsCollectorEvent::GetDefaultOutputName | ( | void | ) | [virtual] |
Generate default file name, without the prefix (txt, csv, cdat)
Implements mtsCollectorBase.
| bool mtsCollectorEvent::AddObservedComponent | ( | const std::string & | componentName | ) |
Tells the collector to collect all events coming from a given component (all interfaces and all events).
| bool mtsCollectorEvent::AddObservedComponent | ( | const mtsComponent * | componentPointer | ) |
Tells the collector to collect all events coming from a given component (all interfaces and all events). This method assumes the pointer is valid.
| bool mtsCollectorEvent::AddObservedInterface | ( | const std::string & | componentName, | |
| const std::string & | interfaceName | |||
| ) |
Tells the collector to collect all events coming from a given interface (all events).
| bool mtsCollectorEvent::AddObservedInterface | ( | const mtsComponent * | componentPointer, | |
| const mtsInterfaceProvided * | interfacePointer | |||
| ) | [protected] |
Tells the collector to collect all events coming from a given interface (all events). This methods assumes that both pointers are valid.
| bool mtsCollectorEvent::AddObservedEventVoid | ( | const std::string & | componentName, | |
| const std::string & | interfaceName, | |||
| const std::string & | eventName | |||
| ) |
Tells the collector to collect all events coming from a given event.
| bool mtsCollectorEvent::AddObservedEventWrite | ( | const std::string & | componentName, | |
| const std::string & | interfaceName, | |||
| const std::string & | eventName | |||
| ) |
Tells the collector to collect all events coming from a given event.
| bool mtsCollectorEvent::AddObservedEventVoid | ( | const mtsComponent * | componentPointer, | |
| const mtsInterfaceProvided * | interfacePointer, | |||
| const std::string & | eventName | |||
| ) | [protected] |
Tells the collector to collect all events coming from a given event. These methods assumes that all pointers are valid.
| bool mtsCollectorEvent::AddObservedEventWrite | ( | const mtsComponent * | componentPointer, | |
| const mtsInterfaceProvided * | interfacePointer, | |||
| const std::string & | eventName | |||
| ) | [protected] |
Tells the collector to collect all events coming from a given event. These methods assumes that all pointers are valid.
| void mtsCollectorEvent::PrintHeader | ( | const CollectorFileFormat & | fileFormat | ) | [protected] |
Print out the event names which are being collected.
| bool mtsCollectorEvent::Connect | ( | void | ) |
| void mtsCollectorEvent::StartCollection | ( | const mtsDouble & | delayInSeconds | ) | [virtual] |
Methods defined as virtual in base class to control stop/start collection with delay. For the event collector, these methods will enable/disable all event observers.
Implements mtsCollectorBase.
| void mtsCollectorEvent::StopCollection | ( | const mtsDouble & | delayInSeconds | ) | [virtual] |
Methods defined as virtual in base class to control stop/start collection with delay. For the event collector, these methods will enable/disable all event observers.
Implements mtsCollectorBase.
ComponentsMap mtsCollectorEvent::ObservedComponents [protected] |
We need to keep a list of components the event collector will connect from. Each component can then have one or more provided interface and for each provided interface we will need to create a required interface. For this, we use a map of maps.
Definition at line 65 of file mtsCollectorEvent.h.
size_t mtsCollectorEvent::EventCounter [protected] |
Counter used to give a unique Id to each event, starts at 1
Definition at line 113 of file mtsCollectorEvent.h.
std::vector<CollectorEventVoid *> mtsCollectorEvent::EventsVoid [protected] |
Lists of event handlers
Definition at line 117 of file mtsCollectorEvent.h.
std::vector<CollectorEventWrite *> mtsCollectorEvent::EventsWrite [protected] |
Lists of event handlers
Definition at line 118 of file mtsCollectorEvent.h.
bool mtsCollectorEvent::Collecting [protected] |
Flag indicating if the collector is started
Definition at line 122 of file mtsCollectorEvent.h.
double mtsCollectorEvent::ScheduledStartTime [protected] |
Scheduled start. If time is set to zero, there is no scheduled start
Definition at line 126 of file mtsCollectorEvent.h.
double mtsCollectorEvent::ScheduledStopTime [protected] |
Scheduled start. If time is set to zero, there is no scheduled start
Definition at line 130 of file mtsCollectorEvent.h.
const osaTimeServer* mtsCollectorEvent::TimeServer [protected] |
Pointer on manager's time server
Definition at line 137 of file mtsCollectorEvent.h.