CCA

Port-Triggered Processing will process the component if new input arrived at a certain defined input port. More...

#include <PortTriggered.h>

Inheritance diagram for cca::PortTriggered:
Collaboration diagram for cca::PortTriggered:

List of all members.

Public Member Functions

virtual bool processOnTick () const
 Should the node be processed now, given a new tick arrived?
virtual bool processOnInputs (ProcessingStrategy::NamedInputPorts inputs) const
 Should the node be processed given the items at the input ports? Returns, if this processing strategy wants the node to be processed when the current tick arrives.
virtual std::string print () const
 Printing information about this node.

Static Public Member Functions

static StrategyPtr port (const std::string &portname)
 Creates StrategyPtr to PortTriggered strategy.

Protected Member Functions

 PortTriggered (const std::string &portname)

Protected Attributes

std::string portname

Detailed Description

Port-Triggered Processing will process the component if new input arrived at a certain defined input port.

Definition at line 44 of file PortTriggered.h.


Constructor & Destructor Documentation

cca::PortTriggered::PortTriggered ( const std::string &  portname) [protected]

Definition at line 47 of file PortTriggered.cpp.


Member Function Documentation

StrategyPtr cca::PortTriggered::port ( const std::string &  portname) [static]

Creates StrategyPtr to PortTriggered strategy.

Parameters:
portindexIndex of the port that triggers processing, if new input arrives. Index starting at 0.
Returns:
Pointer to this ProcessingStrategy

Definition at line 43 of file PortTriggered.cpp.

Referenced by cca::Splitter< DTOTYPE >::Splitter().

Here is the caller graph for this function:

string cca::PortTriggered::print ( ) const [virtual]

Printing information about this node.

Reimplemented from cca::ProcessingStrategy.

Definition at line 63 of file PortTriggered.cpp.

References cca::ProcessingStrategy::name, and portname.

Should the node be processed given the items at the input ports? Returns, if this processing strategy wants the node to be processed when the current tick arrives.

This method should be called on each tick.

Returns:
Whether to process the node right now.

Implements cca::ProcessingStrategy.

Definition at line 55 of file PortTriggered.cpp.

References portname.

bool cca::PortTriggered::processOnTick ( ) const [virtual]

Should the node be processed now, given a new tick arrived?

Returns, if this processing strategy wants the node to be processed when the current tick arrives. This method should be called on each tick.

Returns:
Whether to process the node right now.

Implements cca::ProcessingStrategy.

Definition at line 51 of file PortTriggered.cpp.


Member Data Documentation

std::string cca::PortTriggered::portname [protected]

Definition at line 87 of file PortTriggered.h.

Referenced by print(), and processOnInputs().


The documentation for this class was generated from the following files: