 |
helics
3.0.1
|
Go to the documentation of this file.
8 #include "../common/GuardedTypes.hpp"
9 #include "EndpointInfo.hpp"
10 #include "FederateIdExtra.hpp"
11 #include "InputInfo.hpp"
12 #include "PublicationInfo.hpp"
13 #include "gmlc/containers/DualMappedPointerVector.hpp"
15 #include "json/forwards.h"
29 const PublicationInfo* getPublication(
const std::string& pubName)
const;
33 const InputInfo* getInput(
const std::string& inputName)
const;
35 InputInfo* getInput(
const std::string& inputName);
37 const EndpointInfo* getEndpoint(
const std::string& endpointName)
const;
39 EndpointInfo* getEndpoint(
const std::string& endpointName);
43 const std::string& key,
44 const std::string& type,
45 const std::string& units);
47 const std::string& key,
48 const std::string& type,
49 const std::string& units);
51 const std::string& endpointName,
52 const std::string& type);
54 auto getEndpoints() {
return endpoints.lock(); }
55 auto getPublications() {
return publications.lock(); }
56 auto getInputs() {
return inputs.lock(); }
57 auto getEndpoints()
const {
return endpoints.lock_shared(); }
58 auto getPublications()
const {
return publications.lock_shared(); }
59 auto getInputs()
const {
return inputs.lock_shared(); }
60 auto cgetEndpoints()
const {
return endpoints.lock_shared(); }
61 auto cgetPublications()
const {
return publications.lock_shared(); }
62 auto cgetInputs()
const {
return inputs.lock_shared(); }
71 bool setPublicationProperty(
InterfaceHandle id, int32_t option, int32_t value);
72 bool setEndpointProperty(
InterfaceHandle id, int32_t option, int32_t value);
75 int32_t getPublicationProperty(
InterfaceHandle id, int32_t option)
const;
86 std::atomic<GlobalFederateId> global_id;
87 bool only_update_on_change{
90 gmlc::containers::DualMappedPointerVector<PublicationInfo, std::string, InterfaceHandle>>
93 gmlc::containers::DualMappedPointerVector<EndpointInfo, std::string, InterfaceHandle>>
96 gmlc::containers::DualMappedPointerVector<InputInfo, std::string, InterfaceHandle>>
Definition: InterfaceInfo.hpp:26
Definition: EndpointInfo.hpp:32
base helics enumerations for C++ API's, a namespace wrapper for the definitions defined in helics_enu...
Definition: LocalFederateId.hpp:65
void GenerateDataFlowGraph(Json::Value &base) const
Definition: InterfaceInfo.cpp:463
Definition: GlobalFederateId.hpp:68
int32_t getInputProperty(InterfaceHandle id, int32_t option) const
Definition: InterfaceInfo.cpp:221
@ CONNECTIONS
print summary+ federate level connection information
Definition: loggingHelper.hpp:26
bool getChangeUpdateFlag() const
Definition: InterfaceInfo.hpp:68
void setGlobalId(GlobalFederateId newglobalId)
Definition: InterfaceInfo.hpp:64
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
bool setInputProperty(InterfaceHandle id, int32_t option, int32_t value)
Definition: InterfaceInfo.cpp:116
Definition: application_api/Federate.hpp:28
std::vector< std::pair< int, std::string > > checkInterfacesForIssues()
Definition: InterfaceInfo.cpp:317