 |
helics
3.3.0
|
9 #include "ActionMessage.hpp"
10 #include "BaseTimeCoordinator.hpp"
11 #include "CoreFederateInfo.hpp"
12 #include "TimeDependencies.hpp"
14 #include "json/forwards.h"
28 Time currentMinTime{Time::minVal()};
29 TimeState currentTimeState{TimeState::initialized};
30 Time nextEvent{Time::maxVal()};
44 void transmitTimingMessagesUpstream(
ActionMessage& msg)
const;
48 void sendTimeUpdateRequest(
Time triggerTime);
53 checkExecEntry(GlobalFederateId triggerFed = GlobalFederateId{})
override;
constexpr Time timeZero
Definition: helicsTime.hpp:31
void setExtraDestData(int32_t data)
Definition: ActionMessage.hpp:161
TimeDependencies dependencies
Definition: BaseTimeCoordinator.hpp:27
bool verifySequenceCounter(Time tmin, std::int32_t sq)
Definition: TimeDependencies.cpp:596
std::function< void(const ActionMessage &)> sendMessageFunction
callback used to send the messages
Definition: BaseTimeCoordinator.hpp:29
TimeState
Definition: TimeDependencies.hpp:20
GlobalFederateId mSourceId
the identifier for inserting into the source id field of any generated messages;
Definition: BaseTimeCoordinator.hpp:32
Definition: GlobalTimeCoordinator.hpp:25
base helics enumerations for C++ API's, a namespace wrapper for the definitions defined in helics_enu...
@ HELICS_LOG_LEVEL_WARNING
Definition: helics_enums.h:192
TimeRepresentation< count_time< 9 > > Time
Definition: helicsTime.hpp:27
constexpr Time cBigTime
Definition: helicsTime.hpp:37
virtual bool updateTimeFactors() override
Definition: GlobalTimeCoordinator.cpp:75
Definition: GlobalFederateId.hpp:72
Definition: ActionMessage.hpp:30
std::int32_t sequenceCounter
storage for sequence counter
Definition: BaseTimeCoordinator.hpp:33
uint16_t counter
26 counter for filter tracking or message counter
Definition: ActionMessage.hpp:41
bool executionMode
Definition: BaseTimeCoordinator.hpp:37
int32_t messageID
8 – message ID for a variety of purposes
Definition: ActionMessage.hpp:36
GlobalFederateId dest_id
20 fed_id for a targeted message
Definition: ActionMessage.hpp:39
Time Te
48 event time
Definition: ActionMessage.hpp:45
@ CONTINUE_PROCESSING
the current loop should continue
MessageProcessingResult
Definition: CoreTypes.hpp:64
Time Tdemin
56 min dependent event time
Definition: ActionMessage.hpp:46
Time actionTime
40 the time an action took place or will take place //32
Definition: ActionMessage.hpp:44
virtual std::string printTimeStatus() const override
Definition: GlobalTimeCoordinator.cpp:164
Definition: BaseTimeCoordinator.hpp:25
the main namespace for the helics co-simulation library User functions will be in the helics namespac...
Definition: AsyncFedCallInfo.hpp:14
virtual void generateDebuggingTimeInfo(Json::Value &base) const override
Definition: GlobalTimeCoordinator.cpp:154
@ NEXT_STEP
indicator that the iterations have completed
virtual void generateDebuggingTimeInfo(Json::Value &base) const
Definition: BaseTimeCoordinator.cpp:118
virtual MessageProcessingResult checkExecEntry(GlobalFederateId triggerFed=GlobalFederateId{}) override
Definition: GlobalTimeCoordinator.cpp:171
action_message_def::action_t action() const noexcept
Definition: ActionMessage.hpp:88
bool iterating
flag indicating that the min dependency is iterating
Definition: GlobalTimeCoordinator.hpp:33
virtual Time getNextTime() const override
Definition: GlobalTimeCoordinator.hpp:61
bool checkIfReadyForExecEntry(bool iterating, bool waiting) const
Definition: TimeDependencies.cpp:454
GlobalFederateId source_id
12 – for federate_id or route_id
Definition: ActionMessage.hpp:37