BPMN-OS
BPMN for optimization and simulation
Loading...
Searching...
No Matches
BPMNOS::Execution::Metronome Class Reference

Class creating a clock tick event each time fetchEvent() after sleeping in order to synchronize with real time. More...

Detailed Description

Definition at line 14 of file Metronome.h.

#include <Metronome.h>

Inheritance diagram for BPMNOS::Execution::Metronome:

Public Member Functions

 Metronome (unsigned int clockTickDuration=1000)
 
std::shared_ptr< EventdispatchEvent (const SystemState *systemState) override
 
void initialize (unsigned int clockTickDuration)
 Change clockTickDuration and set timestamp to current time and.
 
- Public Member Functions inherited from BPMNOS::Execution::EventDispatcher
virtual ~EventDispatcher ()=default
 
virtual void connect (Mediator *mediator)
 
virtual void notice (Event *event)
 

Constructor & Destructor Documentation

◆ Metronome()

Metronome::Metronome ( unsigned int clockTickDuration = 1000)

Definition at line 7 of file Metronome.cpp.

Member Function Documentation

◆ dispatchEvent()

std::shared_ptr< Event > Metronome::dispatchEvent ( const SystemState * systemState)
overridevirtual

Implements BPMNOS::Execution::EventDispatcher.

Definition at line 17 of file Metronome.cpp.

◆ initialize()

void Metronome::initialize ( unsigned int clockTickDuration)

Definition at line 12 of file Metronome.cpp.


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