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
()
7
:
Event
(nullptr)
8
{
9
}
10
11
void
ClockTickEvent::processBy
(
Engine
* engine)
const
{
12
engine->
process
(
this
);
13
}
14
15
nlohmann::ordered_json
ClockTickEvent::jsonify
()
const
{
16
nlohmann::ordered_json jsonObject;
17
18
jsonObject[
"event"
] =
"clocktick"
;
19
20
return
jsonObject;
21
}
ClockTickEvent.h
Engine.h
BPMNOS::Execution::Engine
Definition
Engine.h:30
BPMNOS::Execution::Engine::process
void process(const ReadyEvent *event)
Definition
Engine.cpp:129
BPMNOS::Execution
Definition
Controller.h:9
BPMNOS::Execution::ClockTickEvent::processBy
void processBy(Engine *engine) const override
Definition
ClockTickEvent.cpp:11
BPMNOS::Execution::ClockTickEvent::jsonify
nlohmann::ordered_json jsonify() const override
Definition
ClockTickEvent.cpp:15
BPMNOS::Execution::ClockTickEvent::ClockTickEvent
ClockTickEvent()
Definition
ClockTickEvent.cpp:6
BPMNOS::Execution::Event
Definition
Event.h:14