 |
helics
3.3.0
|
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;
68 void addMessage(std::unique_ptr<Message> message);
96 const std::vector<std::pair<GlobalHandle, std::string_view>>&
getTargets()
const
108 void setProperty(int32_t option, int32_t value);
109 int32_t getProperty(int32_t option)
const;
void removeTarget(GlobalHandle targetId)
Definition: EndpointInfo.cpp:195
bool updateTimeUpTo(Time newTime)
Definition: EndpointInfo.cpp:22
int32_t queueSize(Time maxTime) const
Definition: EndpointInfo.cpp:135
void addDestination(GlobalHandle dest, std::string_view destName, std::string_view destType)
Definition: EndpointInfo.cpp:163
Definition: EndpointInfo.hpp:32
const GlobalHandle id
identifier for the handle
Definition: EndpointInfo.hpp:40
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
bool targetedEndpoint
indicator that the endpoint is a targeted endpoint only
Definition: EndpointInfo.hpp:57
int32_t queueSizeUpTo(Time maxTime) const
Definition: EndpointInfo.cpp:149
void addSource(GlobalHandle source, std::string_view sourceName, std::string_view sourceType)
Definition: EndpointInfo.cpp:182
std::unique_ptr< Message > getMessage(Time maxTime)
Definition: EndpointInfo.cpp:85
bool hasFilter
indicator that the message has a filter
Definition: EndpointInfo.hpp:55
@ CONNECTIONS
print summary+federate level connection information
Definition: logging.hpp:27
EndpointInfo(GlobalHandle handle, std::string_view key_, std::string_view type_)
Definition: EndpointInfo.hpp:35
int32_t required_connections
an exact number of connections required
Definition: EndpointInfo.hpp:58
const std::string key
name of the endpoint
Definition: EndpointInfo.hpp:41
void clearQueue()
Definition: EndpointInfo.cpp:124
void checkInterfacesForIssues(std::vector< std::pair< int, std::string >> &issues)
Definition: EndpointInfo.cpp:255
const std::string type
type of the endpoint
Definition: EndpointInfo.hpp:42
Time firstMessageTime() const
Definition: EndpointInfo.cpp:104
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:96
void addMessage(std::unique_ptr< Message > message)
Definition: EndpointInfo.cpp:117
bool updateTimeNextIteration(Time newTime)
Definition: EndpointInfo.cpp:43
const std::string & getSourceTargets() const
Definition: EndpointInfo.cpp:217
Definition: application_api/Federate.hpp:28
Definition: GlobalFederateId.hpp:144
const std::string & getDestinationTargets() const
Definition: EndpointInfo.cpp:236
int32_t availableMessages() const
Definition: EndpointInfo.cpp:130
bool updateTimeInclusive(Time newTime)
Definition: EndpointInfo.cpp:64