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

Event emitted when an account balance changes. More...

#include <event.hpp>

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

Public Member Functions

 AccountEvent (SimTime timestamp, std::string source_id, std::string account_id, double balance, double delta, std::string reason)
 
const char * type_name () const override
 Returns the type name of this event (for debugging/logging)
 
const std::string & account_id () const
 
double balance () const
 
double delta () const
 
const std::string & reason () 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 account_id_
 
double balance_
 
double delta_
 
std::string reason_
 

Additional Inherited Members

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

Detailed Description

Event emitted when an account balance changes.

Definition at line 129 of file event.hpp.

Constructor & Destructor Documentation

◆ AccountEvent()

financesim::AccountEvent::AccountEvent ( SimTime  timestamp,
std::string  source_id,
std::string  account_id,
double  balance,
double  delta,
std::string  reason 
)
inline

Definition at line 131 of file event.hpp.

Member Function Documentation

◆ account_id()

const std::string & financesim::AccountEvent::account_id ( ) const
inline

Definition at line 142 of file event.hpp.

References account_id_.

Referenced by PYBIND11_MODULE().

Here is the caller graph for this function:

◆ balance()

double financesim::AccountEvent::balance ( ) const
inline

Definition at line 143 of file event.hpp.

References balance_.

Referenced by PYBIND11_MODULE().

Here is the caller graph for this function:

◆ delta()

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

Definition at line 144 of file event.hpp.

References delta_.

Referenced by PYBIND11_MODULE().

Here is the caller graph for this function:

◆ reason()

const std::string & financesim::AccountEvent::reason ( ) const
inline

Definition at line 145 of file event.hpp.

References reason_.

Referenced by PYBIND11_MODULE().

Here is the caller graph for this function:

◆ type_name()

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

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

Implements financesim::Event.

Definition at line 140 of file event.hpp.

Member Data Documentation

◆ account_id_

std::string financesim::AccountEvent::account_id_
private

Definition at line 148 of file event.hpp.

Referenced by account_id().

◆ balance_

double financesim::AccountEvent::balance_
private

Definition at line 149 of file event.hpp.

Referenced by balance().

◆ delta_

double financesim::AccountEvent::delta_
private

Definition at line 150 of file event.hpp.

Referenced by delta().

◆ reason_

std::string financesim::AccountEvent::reason_
private

Definition at line 151 of file event.hpp.

Referenced by reason().


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