10#ifndef __RTMultiReceive_h__
11#define __RTMultiReceive_h__ included
19#include <RTEventReceptionInterface.h>
98 std::list<RTEventReceptionInterface*> events;
100 inline bool sendCopy();
An instance of this class represents a capsule instance.
Definition: RTActor.h:44
Abstract description of an event that is expected to be received by a capsule that uses the RTMultiRe...
Definition: RTEventReceptionInterface.h:24
This utility class can be used by a capsule to keep track of the reception of multiple events.
Definition: RTMultiReceive.h:34
void expectEvent(RTEventReceptionInterface *event)
Set up an expectation that the capsule must receive a certain event.
bool isAllEventsReceived()
Answers if all expected events have been received by the capsule.
size_t remainingExpectedEventsCount()
Returns the number of remaining expected events to be received by the capsule.
void reset()
Reset the RTMultiReceive object to its initial state so it can be used again.
bool eventReceived()
Call this function from an internal transition in a state where the capsule is waiting for one or man...
RTMultiReceive(RTActor *actor)
Construction of an RTMultiReceive object that belongs to a certain capsule instance.
~RTMultiReceive()
Destroy the RTMultiReceive object.
void setOrderMatters(bool orderMatters)
Controls whether the order in which expected events are received should matter or not.