BPMN-OS
BPMN for optimization and simulation
Loading...
Searching...
No Matches
ClockTickEvent.cpp
Go to the documentation of this file.
1
#include "
ClockTickEvent.h
"
2
#include "
execution/engine/src/Engine.h
"
3
4
using namespace
BPMNOS::Execution
;
5
6
ClockTickEvent::ClockTickEvent
(
const
SystemState
* systemState)
7
:
Event
(nullptr)
8
, systemState(systemState)
9
{
10
}
11
12
void
ClockTickEvent::processBy
(
Engine
* engine)
const
{
13
engine->
process
(
this
);
14
}
15
16
nlohmann::ordered_json
ClockTickEvent::jsonify
()
const
{
17
nlohmann::ordered_json jsonObject;
18
19
jsonObject[
"event"
] =
"clocktick"
;
20
21
return
jsonObject;
22
}
ClockTickEvent.h
Engine.h
BPMNOS::Execution::Engine
Definition
Engine.h:33
BPMNOS::Execution::Engine::process
void process(const ReadyEvent *event)
Definition
Engine.cpp:138
BPMNOS::Execution::SystemState
A class representing the state that the execution or simulation of a given scenario is in.
Definition
SystemState.h:21
BPMNOS::Execution
Definition
Controller.h:9
BPMNOS::Execution::ClockTickEvent::processBy
void processBy(Engine *engine) const override
Definition
ClockTickEvent.cpp:12
BPMNOS::Execution::ClockTickEvent::ClockTickEvent
ClockTickEvent(const SystemState *systemState)
Definition
ClockTickEvent.cpp:6
BPMNOS::Execution::ClockTickEvent::jsonify
nlohmann::ordered_json jsonify() const override
Definition
ClockTickEvent.cpp:16
BPMNOS::Execution::Event
Definition
Event.h:14