FinanceSim
0.1.0
Financial Simulation Library
Loading...
Searching...
No Matches
time.hpp
Go to the documentation of this file.
1
#pragma once
2
3
namespace
financesim
{
4
6
using
SimTime
= double;
7
9
enum class
ExecutionTiming
{
10
StartOfPeriod
,
11
EndOfPeriod
12
};
13
16
struct
Schedule
{
17
SimTime
start_time
= 0.0;
// When the model starts executing (days)
18
SimTime
stop_time
= -1.0;
// When the model stops (-1 = never)
19
SimTime
rate
= 1.0;
// Execution interval in days
20
ExecutionTiming
timing
=
ExecutionTiming::StartOfPeriod
;
21
};
22
23
}
// namespace financesim
financesim
Definition
event.hpp:7
financesim::SimTime
double SimTime
Represents a point in simulation time (continuous, in days)
Definition
time.hpp:6
financesim::ExecutionTiming
ExecutionTiming
Configuration for when a model executes within its period.
Definition
time.hpp:9
financesim::ExecutionTiming::StartOfPeriod
@ StartOfPeriod
financesim::ExecutionTiming::EndOfPeriod
@ EndOfPeriod
financesim::Schedule
Definition
time.hpp:16
financesim::Schedule::timing
ExecutionTiming timing
Definition
time.hpp:20
financesim::Schedule::start_time
SimTime start_time
Definition
time.hpp:17
financesim::Schedule::rate
SimTime rate
Definition
time.hpp:19
financesim::Schedule::stop_time
SimTime stop_time
Definition
time.hpp:18
src
core
time.hpp
Generated by
1.9.8