9 #include "../application_api/MessageFederate.hpp"
10 #include "helicsApp.hpp"
27 class HELICS_CXX_EXPORT
Echo:
public App {
34 explicit Echo(std::vector<std::string> args);
39 Echo(
int argc,
char* argv[]);
51 Echo(std::string_view name,
const std::shared_ptr<Core>& core,
const FederateInfo& fedInfo);
62 Echo(std::string_view name,
const std::string& jsonString);
67 Echo& operator=(
Echo&& other_echo) noexcept;
72 virtual void runTo(
Time stopTime_input)
override;
78 void addEndpoint(std::string_view endpointName, std::string_view endpointType =
"");
85 void setEchoDelay(
Time delay);
92 virtual void loadJsonFile(
const std::string& jsonFile,
93 bool enableFederateInterfaceRegistration)
override;
102 std::deque<Endpoint> endpoints;
104 size_t echoCounter = 0;
105 std::mutex delayTimeLock;
Definition: Endpoints.hpp:21
Definition: FederateInfo.hpp:28
Definition: helicsApp.hpp:32
auto endpointCount() const
Definition: Echo.hpp:88
auto echoCount() const
Definition: Echo.hpp:81
the main namespace for the helics co-simulation library User functions will be in the helics namespac...
Definition: AsyncFedCallInfo.hpp:14
constexpr Time timeZero
Definition: helicsTime.hpp:31
TimeRepresentation< count_time< 9 > > Time
Definition: helicsTime.hpp:27