 |
helics
2.8.1
|
8 #include "../common/GuardedTypes.hpp"
9 #include "EndpointInfo.hpp"
10 #include "InputInfo.hpp"
11 #include "PublicationInfo.hpp"
12 #include "federate_id_extra.hpp"
13 #include "gmlc/containers/DualMappedPointerVector.hpp"
15 #include "json/forwards.h"
28 const PublicationInfo* getPublication(
const std::string& pubName)
const;
32 const InputInfo* getInput(
const std::string& inputName)
const;
34 InputInfo* getInput(
const std::string& inputName);
36 const EndpointInfo* getEndpoint(
const std::string& endpointName)
const;
38 EndpointInfo* getEndpoint(
const std::string& endpointName);
42 const std::string& key,
43 const std::string& type,
44 const std::string& units);
46 const std::string& key,
47 const std::string& type,
48 const std::string& units);
50 const std::string& endpointName,
51 const std::string& type);
53 auto getEndpoints() {
return endpoints.lock(); }
54 auto getPublications() {
return publications.lock(); }
55 auto getInputs() {
return inputs.lock(); }
56 auto getEndpoints()
const {
return endpoints.lock_shared(); }
57 auto getPublications()
const {
return publications.lock_shared(); }
58 auto getInputs()
const {
return inputs.lock_shared(); }
59 auto cgetEndpoints()
const {
return endpoints.lock_shared(); }
60 auto cgetPublications()
const {
return publications.lock_shared(); }
61 auto cgetInputs()
const {
return inputs.lock_shared(); }
70 bool setPublicationProperty(
interface_handle id, int32_t option, int32_t value);
71 bool setEndpointProperty(
interface_handle id, int32_t option, int32_t value);
85 std::atomic<global_federate_id> global_id;
86 bool only_update_on_change{
89 gmlc::containers::DualMappedPointerVector<PublicationInfo, std::string, interface_handle>>
92 gmlc::containers::DualMappedPointerVector<EndpointInfo, std::string, interface_handle>>
95 gmlc::containers::DualMappedPointerVector<InputInfo, std::string, interface_handle>>
@ connections
print summary+ federate level connection information
Definition: loggingHelper.hpp:25
Definition: InterfaceInfo.hpp:25
Definition: EndpointInfo.hpp:19
int32_t getInputProperty(interface_handle id, int32_t option) const
Definition: InterfaceInfo.cpp:221
base helics enumerations for C++ API's, a namespace wrapper for the definitions defined in helics_enu...
Definition: global_federate_id.hpp:68
void GenerateDataFlowGraph(Json::Value &base) const
Definition: InterfaceInfo.cpp:463
bool setInputProperty(interface_handle id, int32_t option, int32_t value)
Definition: InterfaceInfo.cpp:116
bool getChangeUpdateFlag() const
Definition: InterfaceInfo.hpp:67
Definition: federate_id.hpp:65
void setChangeUpdateFlag(bool updateFlag)
Definition: InterfaceInfo.cpp:45
the main namespace for the helics co-simulation library User functions will be in the helics namespac...
Definition: AsyncFedCallInfo.hpp:14
void generateInferfaceConfig(Json::Value &base) const
Definition: InterfaceInfo.cpp:406
Definition: PublicationInfo.hpp:17
Definition: application_api/Federate.hpp:26
std::vector< std::pair< int, std::string > > checkInterfacesForIssues()
Definition: InterfaceInfo.cpp:317
@ ip
using both types of ports (tcp/or udp) for communication
void setGlobalId(global_federate_id newglobalId)
Definition: InterfaceInfo.hpp:63