FinanceSim 0.1.0
Financial Simulation Library
Loading...
Searching...
No Matches
financesim::AssetEvent Class Reference

Event emitted when asset value changes. More...

#include <event.hpp>

Inheritance diagram for financesim::AssetEvent:
[legend]
Collaboration diagram for financesim::AssetEvent:
[legend]

Public Member Functions

 AssetEvent (SimTime timestamp, std::string source_id, std::string asset_id, double value, double delta)
 
const char * type_name () const override
 Returns the type name of this event (for debugging/logging)
 
const std::string & asset_id () const
 
double value () const
 
double delta () const
 
- Public Member Functions inherited from financesim::Event
virtual ~Event ()=default
 
SimTime timestamp () const
 Time at which this event was generated.
 
const std::string & source_id () const
 Source model ID that generated this event.
 

Private Attributes

std::string asset_id_
 
double value_
 
double delta_
 

Additional Inherited Members

- Protected Member Functions inherited from financesim::Event
 Event (SimTime timestamp, std::string source_id)
 

Detailed Description

Event emitted when asset value changes.

Definition at line 85 of file event.hpp.

Constructor & Destructor Documentation

◆ AssetEvent()

financesim::AssetEvent::AssetEvent ( SimTime  timestamp,
std::string  source_id,
std::string  asset_id,
double  value,
double  delta 
)
inline

Definition at line 87 of file event.hpp.

Member Function Documentation

◆ asset_id()

const std::string & financesim::AssetEvent::asset_id ( ) const
inline

Definition at line 96 of file event.hpp.

References asset_id_.

Referenced by PYBIND11_MODULE().

Here is the caller graph for this function:

◆ delta()

double financesim::AssetEvent::delta ( ) const
inline

Definition at line 98 of file event.hpp.

References delta_.

Referenced by PYBIND11_MODULE().

Here is the caller graph for this function:

◆ type_name()

const char * financesim::AssetEvent::type_name ( ) const
inlineoverridevirtual

Returns the type name of this event (for debugging/logging)

Implements financesim::Event.

Definition at line 94 of file event.hpp.

◆ value()

double financesim::AssetEvent::value ( ) const
inline

Definition at line 97 of file event.hpp.

References value_.

Referenced by PYBIND11_MODULE().

Here is the caller graph for this function:

Member Data Documentation

◆ asset_id_

std::string financesim::AssetEvent::asset_id_
private

Definition at line 101 of file event.hpp.

Referenced by asset_id().

◆ delta_

double financesim::AssetEvent::delta_
private

Definition at line 103 of file event.hpp.

Referenced by delta().

◆ value_

double financesim::AssetEvent::value_
private

Definition at line 102 of file event.hpp.

Referenced by value().


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