BPMN-OS
BPMN for optimization and simulation
Loading...
Searching...
No Matches
BestFirstEntry.h
Go to the documentation of this file.
1
#ifndef BPMNOS_Execution_BestFirstEntry_H
2
#define BPMNOS_Execution_BestFirstEntry_H
3
4
#include <
bpmn++.h
>
5
#include "
execution/controller/src/GreedyDispatcher.h
"
6
#include "
execution/controller/src/Evaluator.h
"
7
#include "
execution/controller/src/decisions/EntryDecision.h
"
8
9
namespace
BPMNOS::Execution
{
10
11
/**
12
* @brief Class dispatching the best entry event for a token awaiting the entry at an activity.
13
*/
14
class
BestFirstEntry
:
public
GreedyDispatcher
< std::weak_ptr<const Token>, std::weak_ptr<const DecisionRequest> > {
15
public
:
16
BestFirstEntry
(
Evaluator
*
evaluator
);
17
void
connect
(
Mediator
* mediator)
override
;
18
void
notice
(
const
Observable
* observable)
override
;
19
};
20
21
}
// namespace BPMNOS::Execution
22
23
#endif
// BPMNOS_Execution_BestFirstEntry_H
24
EntryDecision.h
Evaluator.h
GreedyDispatcher.h
bpmn++.h
BPMNOS::Execution::BestFirstEntry
Class dispatching the best entry event for a token awaiting the entry at an activity.
Definition
BestFirstEntry.h:14
BPMNOS::Execution::BestFirstEntry::connect
void connect(Mediator *mediator) override
Definition
BestFirstEntry.cpp:12
BPMNOS::Execution::BestFirstEntry::notice
void notice(const Observable *observable) override
Definition
BestFirstEntry.cpp:19
BPMNOS::Execution::BestFirstEntry::BestFirstEntry
BestFirstEntry(Evaluator *evaluator)
Definition
BestFirstEntry.cpp:7
BPMNOS::Execution::Evaluator
Represents an abstract base class for a pending Evaluator.
Definition
Evaluator.h:15
BPMNOS::Execution::GreedyDispatcher
Class for dispatching the event with the best evaluation.
Definition
GreedyDispatcher.h:18
BPMNOS::Execution::GreedyDispatcher< std::weak_ptr< const Token >, std::weak_ptr< const DecisionRequest > >::evaluator
Evaluator * evaluator
Definition
GreedyDispatcher.h:27
BPMNOS::Execution
Definition
Controller.h:9
BPMNOS::Execution::Mediator
Represents an abstract base class for a class that is an event listener and notifier.
Definition
Mediator.h:13
BPMNOS::Execution::Observable
Definition
Observable.h:6