 |
helics
3.0.1
|
9 #include "../common/GuardedTypes.hpp"
10 #include "basic_CoreTypes.hpp"
27 id(gid), key(key_), type(type_)
41 const std::string
key;
46 std::atomic<int32_t> mAvailableMessages{0};
48 std::vector<EndpointInformation> sourceInformation;
49 std::vector<EndpointInformation> targetInformation;
50 std::vector<std::pair<GlobalHandle, std::string_view>> targets;
51 mutable std::string sourceTargets;
52 mutable std::string destinationTargets;
67 void addMessage(std::unique_ptr<Message> message);
90 const std::string& destName,
91 const std::string& destType);
94 const std::string& sourceName,
95 const std::string& sourceType);
99 const std::vector<std::pair<GlobalHandle, std::string_view>>&
getTargets()
const
void removeTarget(GlobalHandle targetId)
Definition: EndpointInfo.cpp:192
bool updateTimeUpTo(Time newTime)
Definition: EndpointInfo.cpp:19
int32_t queueSize(Time maxTime) const
Definition: EndpointInfo.cpp:132
Definition: EndpointInfo.hpp:32
const GlobalHandle id
identifier for the handle
Definition: EndpointInfo.hpp:40
TimeRepresentation< count_time< 9 > > Time
Definition: helicsTime.hpp:27
EndpointInfo(GlobalHandle handle, const std::string &key_, const std::string &type_)
Definition: EndpointInfo.hpp:35
int32_t queueSizeUpTo(Time maxTime) const
Definition: EndpointInfo.cpp:146
std::unique_ptr< Message > getMessage(Time maxTime)
Definition: EndpointInfo.cpp:82
bool hasFilter
indicator that the message has a filter
Definition: EndpointInfo.hpp:55
bool targettedEndpoint
indicator that the endpoint is a targeted endpoint only
Definition: EndpointInfo.hpp:57
const std::string key
name of the endpoint
Definition: EndpointInfo.hpp:41
void clearQueue()
Definition: EndpointInfo.cpp:121
const std::string type
type of the endpoint
Definition: EndpointInfo.hpp:42
Time firstMessageTime() const
Definition: EndpointInfo.cpp:101
the main namespace for the helics co-simulation library User functions will be in the helics namespac...
Definition: AsyncFedCallInfo.hpp:14
const std::vector< std::pair< GlobalHandle, std::string_view > > & getTargets() const
Definition: EndpointInfo.hpp:99
void addMessage(std::unique_ptr< Message > message)
Definition: EndpointInfo.cpp:114
bool updateTimeNextIteration(Time newTime)
Definition: EndpointInfo.cpp:40
const std::string & getSourceTargets() const
Definition: EndpointInfo.cpp:214
void addDestinationTarget(GlobalHandle dest, const std::string &destName, const std::string &destType)
Definition: EndpointInfo.cpp:160
Definition: application_api/Federate.hpp:28
Definition: GlobalFederateId.hpp:128
void addSourceTarget(GlobalHandle dest, const std::string &sourceName, const std::string &sourceType)
Definition: EndpointInfo.cpp:179
const std::string & getDestinationTargets() const
Definition: EndpointInfo.cpp:233
int32_t availableMessages() const
Definition: EndpointInfo.cpp:127
bool updateTimeInclusive(Time newTime)
Definition: EndpointInfo.cpp:61