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;
70 void addMessage(std::unique_ptr<Message> message);
106 const std::vector<std::pair<GlobalHandle, std::string_view>>&
getTargets()
const
118 void setProperty(int32_t option, int32_t value);
119 int32_t getProperty(int32_t option)
const;
Definition: application_api/Federate.hpp:27
Definition: EndpointInfo.hpp:32
int32_t requiredConnections
an exact number of connections required
Definition: EndpointInfo.hpp:60
bool receiveOnly
the endpoint can only receive data and cannot send
Definition: EndpointInfo.hpp:59
const std::string type
type of the endpoint
Definition: EndpointInfo.hpp:42
void disconnectFederate(GlobalFederateId fedToDisconnect)
Definition: EndpointInfo.cpp:236
void addSource(GlobalHandle source, std::string_view sourceName, std::string_view sourceType)
Definition: EndpointInfo.cpp:198
bool hasSource() const
Definition: EndpointInfo.cpp:141
bool updateTimeNextIteration(Time newTime)
Definition: EndpointInfo.cpp:43
void addDestination(GlobalHandle dest, std::string_view destName, std::string_view destType)
Definition: EndpointInfo.cpp:179
bool sourceOnly
the endpoint can only be a source of data and cannot receive data
Definition: EndpointInfo.hpp:58
bool hasFilter
indicator that the message has a filter
Definition: EndpointInfo.hpp:55
int32_t queueSizeUpTo(Time maxTime) const
Definition: EndpointInfo.cpp:165
const std::vector< std::pair< GlobalHandle, std::string_view > > & getTargets() const
Definition: EndpointInfo.hpp:106
bool updateTimeInclusive(Time newTime)
Definition: EndpointInfo.cpp:64
void checkInterfacesForIssues(std::vector< std::pair< int, std::string >> &issues)
Definition: EndpointInfo.cpp:299
bool updateTimeUpTo(Time newTime)
Definition: EndpointInfo.cpp:22
void removeTarget(GlobalHandle targetId)
Definition: EndpointInfo.cpp:211
const GlobalHandle id
identifier for the handle
Definition: EndpointInfo.hpp:40
bool targetedEndpoint
indicator that the endpoint is a targeted endpoint only
Definition: EndpointInfo.hpp:57
int32_t queueSize(Time maxTime) const
Definition: EndpointInfo.cpp:151
void clearQueue()
Definition: EndpointInfo.cpp:125
const std::string & getDestinationTargets() const
Definition: EndpointInfo.cpp:280
const std::string & getSourceTargets() const
Definition: EndpointInfo.cpp:261
int32_t availableMessages() const
Definition: EndpointInfo.cpp:131
EndpointInfo(GlobalHandle handle, std::string_view key_, std::string_view type_)
Definition: EndpointInfo.hpp:35
bool hasConnection() const
Definition: EndpointInfo.cpp:136
std::unique_ptr< Message > getMessage(Time maxTime)
Definition: EndpointInfo.cpp:85
bool hasTarget() const
Definition: EndpointInfo.cpp:146
Time firstMessageTime() const
Definition: EndpointInfo.cpp:104
const std::string key
name of the endpoint
Definition: EndpointInfo.hpp:41
void addMessage(std::unique_ptr< Message > message)
Definition: EndpointInfo.cpp:118
Definition: GlobalFederateId.hpp:75
Definition: GlobalFederateId.hpp:147
the main namespace for the helics co-simulation library User functions will be in the helics namespac...
Definition: AsyncFedCallInfo.hpp:14
TimeRepresentation< count_time< 9 > > Time
Definition: helicsTime.hpp:27