 |
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"
46 void transmitTimingMessagesUpstream(
ActionMessage& msg)
const;
53 checkExecEntry(GlobalFederateId triggerFed = GlobalFederateId{})
override;
constexpr Time timeZero
Definition: helicsTime.hpp:31
virtual Time getNextTime() const override
Definition: ForwardingTimeCoordinator.hpp:61
void setExtraDestData(int32_t data)
Definition: ActionMessage.hpp:161
TimeDependencies dependencies
Definition: BaseTimeCoordinator.hpp:27
std::function< void(const ActionMessage &)> sendMessageFunction
callback used to send the messages
Definition: BaseTimeCoordinator.hpp:29
std::int32_t responseSequenceCounter
Definition: TimeDependencies.hpp:74
GlobalFederateId mSourceId
the identifier for inserting into the source id field of any generated messages;
Definition: BaseTimeCoordinator.hpp:32
base helics enumerations for C++ API's, a namespace wrapper for the definitions defined in helics_enu...
TimeRepresentation< count_time< 9 > > Time
Definition: helicsTime.hpp:27
constexpr Time cBigTime
Definition: helicsTime.hpp:37
Time Te
the next currently scheduled event
Definition: TimeDependencies.hpp:60
Definition: GlobalFederateId.hpp:72
Definition: ActionMessage.hpp:30
std::int32_t sequenceCounter
storage for sequence counter
Definition: BaseTimeCoordinator.hpp:33
bool ignoreMinFed
flag indicating that minFed Controls should not be used
Definition: ForwardingTimeCoordinator.hpp:35
Definition: ForwardingTimeCoordinator.hpp:27
std::int32_t sequenceCounter
the sequence Counter of the request
Definition: TimeDependencies.hpp:73
Time next
next possible message or value
Definition: TimeDependencies.hpp:59
bool executionMode
Definition: BaseTimeCoordinator.hpp:37
bool restrictive_time_policy
flag indicating that a restrictive time policy should be used
Definition: BaseTimeCoordinator.hpp:39
virtual MessageProcessingResult checkExecEntry(GlobalFederateId triggerFed=GlobalFederateId{}) override
Definition: ForwardingTimeCoordinator.cpp:123
GlobalFederateId dest_id
20 fed_id for a targeted message
Definition: ActionMessage.hpp:39
bool noParent
indicator that the coordinator does not have parents
Definition: BaseTimeCoordinator.hpp:34
Definition: TimeDependencies.hpp:93
@ CONTINUE_PROCESSING
the current loop should continue
MessageProcessingResult
Definition: CoreTypes.hpp:64
virtual std::string printTimeStatus() const override
Definition: ForwardingTimeCoordinator.cpp:115
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
bool iterating
flag indicating that the min dependency is iterating
Definition: ForwardingTimeCoordinator.hpp:34
bool update(const TimeData &update)
Definition: TimeDependencies.cpp:168
virtual bool updateTimeFactors() override
Definition: ForwardingTimeCoordinator.cpp:23
@ NEXT_STEP
indicator that the iterations have completed
ActionMessage generateTimeRequest(const TimeData &dep, GlobalFederateId fed, std::int32_t responseCode) const
Definition: BaseTimeCoordinator.cpp:288
virtual void generateDebuggingTimeInfo(Json::Value &base) const
Definition: BaseTimeCoordinator.cpp:118
Time minDe
min dependency event time
Definition: TimeDependencies.hpp:61
action_message_def::action_t action() const noexcept
Definition: ActionMessage.hpp:88
GlobalFederateId minFed
identifier for the min dependency
Definition: TimeDependencies.hpp:63
bool checkIfReadyForExecEntry(bool iterating, bool waiting) const
Definition: TimeDependencies.cpp:454
virtual void generateDebuggingTimeInfo(Json::Value &base) const override
Definition: ForwardingTimeCoordinator.cpp:102
GlobalFederateId source_id
12 – for federate_id or route_id
Definition: ActionMessage.hpp:37