pion::plugins::TransformReactor Class Reference

#include <TransformReactor.hpp>

Inherits pion::platform::Reactor.

List of all members.


Detailed Description

TransformReactor: creates new Events that are derived from the Events it receives (Work in progress...)

Definition at line 39 of file TransformReactor.hpp.

Public Member Functions

 TransformReactor (void)
 constructs a new TransformReactor object
virtual ~TransformReactor ()
 virtual destructor: this class is meant to be extended
virtual void setConfig (const pion::platform::Vocabulary &v, const xmlNodePtr config_ptr)
virtual void updateVocabulary (const pion::platform::Vocabulary &v)
virtual void process (const pion::platform::EventPtr &e)

Classes

class  EmptySetTermException
 exception thrown if source term is missing from assign term transformation More...
class  EmptyTermException
 exception thrown if the TransformReactor configuration does not define a Term for a Comparison More...
class  EmptyTransformationException
 exception thrown if a set value is missing from transformation configuration More...
class  EmptyTypeException
 exception thrown if the TransformReactor configuration does not define a Comparison type More...
class  EmptyValueException
 exception thrown if the TransformReactor configuration does not define a Term for a Comparison More...
class  InvalidTransformation
 exception thrown if the TransformReactor configuration does not define a Term for a Comparison More...
class  TransformFailureException
 exception thrown if an exception is caught from transform() More...
class  UnknownTermException
 exception thrown if the TransformReactor configuration uses an unknown Term for a Comparison More...


Member Function Documentation

void pion::plugins::TransformReactor::process ( const pion::platform::EventPtr e  )  [virtual]

modifies Events according to transformation rules and delivers the resulting Events to the output connections.

Parameters:
e pointer to the Event to process

Reimplemented from pion::platform::Reactor.

Definition at line 220 of file TransformReactor.cpp.

References pion::platform::EventFactory::create(), pion::platform::Reactor::deliverEvent(), pion::platform::PlatformPlugin::getId(), pion::platform::PlatformPlugin::getReactionEngine(), and pion::platform::Reactor::stop().

void pion::plugins::TransformReactor::setConfig ( const pion::platform::Vocabulary v,
const xmlNodePtr  config_ptr 
) [virtual]

sets configuration parameters for this Reactor

Parameters:
v the Vocabulary that this Reactor will use to describe Terms
config_ptr pointer to a list of XML nodes containing Reactor configuration parameters

Reimplemented from pion::platform::Reactor.

Definition at line 105 of file TransformReactor.cpp.

References pion::platform::Reactor::ConfigWriteLock, pion::platform::Vocabulary::findTerm(), and pion::platform::PlatformPlugin::getId().

void pion::plugins::TransformReactor::updateVocabulary ( const pion::platform::Vocabulary v  )  [virtual]

this updates the Vocabulary information used by this Reactor; it should be called whenever the global Vocabulary is updated

Parameters:
v the Vocabulary that this Reactor will use to describe Terms

Reimplemented from pion::platform::Reactor.

Definition at line 208 of file TransformReactor.cpp.

References pion::platform::Reactor::ConfigWriteLock.


The documentation for this class was generated from the following files:
Generated on Wed Apr 13 16:38:36 2011 for pion-platform by  doxygen 1.4.7