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

Class recording all token changes. More...

Detailed Description

Definition at line 50 of file Recorder.h.

#include <Recorder.h>

Inheritance diagram for BPMNOS::Execution::Recorder:

Public Member Functions

 Recorder (size_t maxSize=std::numeric_limits< size_t >::max())
 
 Recorder (std::ostream &os, size_t maxSize=std::numeric_limits< size_t >::max())
 
 ~Recorder ()
 
void subscribe (Engine *engine)
 
void notice (const Observable *observable) override
 
nlohmann::ordered_json find (nlohmann::json include, nlohmann::json exclude=nlohmann::json()) const
 Returns a json array containing all log entries matching the include object and not matching the exclude object.
 
- Public Member Functions inherited from BPMNOS::Execution::Observer

Public Attributes

BPMNOS::number objective
 The global objective.
 
nlohmann::ordered_json log
 A json object of the entire log.
 

Constructor & Destructor Documentation

◆ Recorder() [1/2]

Recorder::Recorder ( size_t maxSize = std::numeric_limits<size_t>::max())

Definition at line 7 of file Recorder.cpp.

◆ Recorder() [2/2]

Recorder::Recorder ( std::ostream & os,
size_t maxSize = std::numeric_limits<size_t>::max() )

Definition at line 12 of file Recorder.cpp.

◆ ~Recorder()

Recorder::~Recorder ( )

Definition at line 21 of file Recorder.cpp.

Member Function Documentation

◆ find()

nlohmann::ordered_json Recorder::find ( nlohmann::json include,
nlohmann::json exclude = nlohmann::json() ) const

Definition at line 97 of file Recorder.cpp.

◆ notice()

void Recorder::notice ( const Observable * observable)
overridevirtual

Implements BPMNOS::Execution::Observer.

Definition at line 38 of file Recorder.cpp.

◆ subscribe()

void Recorder::subscribe ( Engine * engine)

Definition at line 30 of file Recorder.cpp.

Member Data Documentation

◆ log

nlohmann::ordered_json BPMNOS::Execution::Recorder::log

Definition at line 60 of file Recorder.h.

◆ objective

BPMNOS::number BPMNOS::Execution::Recorder::objective

Definition at line 59 of file Recorder.h.


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