pfp::core::PFPObserver Class Referenceabstract
+ Inheritance diagram for pfp::core::PFPObserver:
+ Collaboration diagram for pfp::core::PFPObserver:

Public Member Functions

virtual void counter_added (const std::string &module_name, const std::string &counter_name, double simulation_time=0)=0
 Function called by the NPU when a counter is added to a module. More...
 
virtual void counter_removed (const std::string &module_name, const std::string &counter_name, double simulation_time=0)=0
 Function called by the NPU when a counter is removed from a module. More...
 
virtual void counter_updated (const std::string &module_name, const std::string &counter_name, std::size_t new_value, double simulation_time)=0
 Function called by the NPU when a counter is updated. More...
 
virtual void data_written (const std::string &from_module, const std::shared_ptr< pfp::core::TrType > data, double simulation_time)=0
 Function called by the NPU when data is written by a module. More...
 
virtual void data_read (const std::string &to_module, const std::shared_ptr< pfp::core::TrType > data, double simulation_time)=0
 Function called by the NPU when data is read by a module. More...
 
virtual void data_dropped (const std::string &in_module, const std::shared_ptr< pfp::core::TrType > data, const std::string &drop_reason, double simulation_time)=0
 Function called by the NPU when data is dropped in a module. More...
 
virtual void thread_begin (const std::string &teu_mod, const std::string &tec_mod, std::size_t thread_id, std::size_t packet_id, double simulation_time)=0
 Function called by the NPU when a TEU thread begins. More...
 
virtual void thread_end (const std::string &teu_mod, const std::string &tec_mod, std::size_t thread_id, std::size_t packet_id, double simulation_time)=0
 Function called by the NPU when a TEU thread ends. More...
 
virtual void thread_idle (const std::string &teu_mod, const std::string &tec_mod, std::size_t thread_id, std::size_t packet_id, double simulation_time)=0
 Function called by the NPU when a TEU thread starts idling. More...
 
virtual void core_busy (const std::string &teu_mod, const std::string &tec_mod, double simulation_time)=0
 
virtual void core_idle (const std::string &teu_mod, const std::string &tec_mod, double simulation_time)=0
 

Protected Member Functions

virtual ~PFPObserver ()=default
 Default destructor.
 

Member Function Documentation

virtual void pfp::core::PFPObserver::counter_added ( const std::string &  module_name,
const std::string &  counter_name,
double  simulation_time = 0 
)
pure virtual

Function called by the NPU when a counter is added to a module.

Parameters
module_nameModule name to which counter was added
counter_nameName of the counter
simulation_timeSimulation time at which counter was added (defaults to 0 since counters are typically added before simulation begins)

Implemented in pfp::core::db::DebugObserver.

virtual void pfp::core::PFPObserver::counter_removed ( const std::string &  module_name,
const std::string &  counter_name,
double  simulation_time = 0 
)
pure virtual

Function called by the NPU when a counter is removed from a module.

Parameters
module_nameModule name from which counter was removed
counter_nameName of the counter
simulation_timeSimulation time at which counter was removed (defaults to 0 since counters are typically removed before simulation begins)

Implemented in pfp::core::db::DebugObserver.

+ Here is the caller graph for this function:

virtual void pfp::core::PFPObserver::counter_updated ( const std::string &  module_name,
const std::string &  counter_name,
std::size_t  new_value,
double  simulation_time 
)
pure virtual

Function called by the NPU when a counter is updated.

Parameters
module_nameModule containing updated counter
counter_nameName of the counter
new_valueCurrent value of the counter
simulation_timeSimulation time at which counter value was updated

Implemented in pfp::core::db::DebugObserver.

+ Here is the caller graph for this function:

virtual void pfp::core::PFPObserver::data_dropped ( const std::string &  in_module,
const std::shared_ptr< pfp::core::TrType data,
const std::string &  drop_reason,
double  simulation_time 
)
pure virtual

Function called by the NPU when data is dropped in a module.

Parameters
in_moduleModule name in which data was dropped
dataJSON representation of data
simulation_timeSimulation time at which event occurred

Implemented in pfp::core::db::DebugObserver.

+ Here is the caller graph for this function:

virtual void pfp::core::PFPObserver::data_read ( const std::string &  to_module,
const std::shared_ptr< pfp::core::TrType data,
double  simulation_time 
)
pure virtual

Function called by the NPU when data is read by a module.

Parameters
to_moduleModule name of the receiving module
dataJSON representation of data
simulation_timeSimulation time at which event occurred

Implemented in pfp::core::db::DebugObserver.

+ Here is the caller graph for this function:

virtual void pfp::core::PFPObserver::data_written ( const std::string &  from_module,
const std::shared_ptr< pfp::core::TrType data,
double  simulation_time 
)
pure virtual

Function called by the NPU when data is written by a module.

Parameters
from_moduleModule name of the transmitting module
dataJSON representation of data
simulation_timeSimulation time at which event occurred

Implemented in pfp::core::db::DebugObserver.

+ Here is the caller graph for this function:

virtual void pfp::core::PFPObserver::thread_begin ( const std::string &  teu_mod,
const std::string &  tec_mod,
std::size_t  thread_id,
std::size_t  packet_id,
double  simulation_time 
)
pure virtual

Function called by the NPU when a TEU thread begins.

Parameters
teu_modTEU in which thread was started
tec_modTEC containing the TEU in which the thread was started
thread_idID number of the thread
simulation_timeSimulation time at which event occurred

Implemented in pfp::core::db::DebugObserver.

virtual void pfp::core::PFPObserver::thread_end ( const std::string &  teu_mod,
const std::string &  tec_mod,
std::size_t  thread_id,
std::size_t  packet_id,
double  simulation_time 
)
pure virtual

Function called by the NPU when a TEU thread ends.

Parameters
teu_modTEU in which thread was ended
tec_modTEC containing the TEU in which the thread was ended
thread_idID number of the thread
simulation_timeSimulation time at which event occurred

Implemented in pfp::core::db::DebugObserver.

virtual void pfp::core::PFPObserver::thread_idle ( const std::string &  teu_mod,
const std::string &  tec_mod,
std::size_t  thread_id,
std::size_t  packet_id,
double  simulation_time 
)
pure virtual

Function called by the NPU when a TEU thread starts idling.

Parameters
teu_modTEU in which thread is idling
tec_modTEC containing the TEU in which the thread is idling
thread_idID number of the thread
simulation_timeSimulation time at which event occurred

Implemented in pfp::core::db::DebugObserver.


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