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