9#include "../helics_enums.h"
14namespace action_message_def {
15 constexpr int32_t cmd_info_basis = 0x10000000;
122 cmd_info_basis + 707,
212#define CMD_IGNORE action_message_def::action_t::cmd_ignore
213#define CMD_INVALID action_message_def::action_t::cmd_invalid
214#define CMD_TICK action_message_def::action_t::cmd_tick
215#define CMD_REG_BROKER action_message_def::action_t::cmd_reg_broker
216#define CMD_PRIORITY_DISCONNECT action_message_def::action_t::cmd_priority_disconnect
217#define CMD_USER_DISCONNECT action_message_def::action_t::cmd_user_disconnect
218#define CMD_TIMEOUT_DISCONNECT action_message_def::action_t::cmd_timeout_disconnect
219#define CMD_GLOBAL_DISCONNECT action_message_def::action_t::cmd_global_disconnect
220#define CMD_DISCONNECT action_message_def::action_t::cmd_disconnect
221#define CMD_DISCONNECT_NAME action_message_def::action_t::cmd_disconnect_name
222#define CMD_DISCONNECT_CHECK action_message_def::action_t::cmd_disconnect_check
223#define CMD_DISCONNECT_FED action_message_def::action_t::cmd_disconnect_fed
224#define CMD_BROADCAST_DISCONNECT action_message_def::action_t::cmd_broadcast_disconnect
226#define CMD_DISCONNECT_CORE action_message_def::action_t::cmd_disconnect_core
227#define CMD_DISCONNECT_BROKER action_message_def::action_t::cmd_disconnect_broker
228#define CMD_DISCONNECT_FED_ACK action_message_def::action_t::cmd_disconnect_fed_ack
229#define CMD_DISCONNECT_CORE_ACK action_message_def::action_t::cmd_disconnect_core_ack
230#define CMD_DISCONNECT_BROKER_ACK action_message_def::action_t::cmd_disconnect_broker_ack
231#define CMD_CONNECTION_ERROR action_message_def::action_t::cmd_connection_error
233#define CMD_CHECK_CONNECTIONS action_message_def::action_t::cmd_check_connections
234#define CMD_PING action_message_def::action_t::cmd_ping
235#define CMD_PING_PRIORITY action_message_def::action_t::cmd_ping_priority
237#define CMD_BROKER_PING action_message_def::action_t::cmd_broker_setup
238#define CMD_PING_REPLY action_message_def::action_t::cmd_ping_reply
239#define CMD_BROKER_SETUP action_message_def::action_t::cmd_broker_setup
240#define CMD_BROKER_LOCATION action_message_def::action_t::cmd_broker_location
242#define CMD_INIT action_message_def::action_t::cmd_init
243#define CMD_INIT_NOT_READY action_message_def::action_t::cmd_init_not_ready
244#define CMD_INIT_GRANT action_message_def::action_t::cmd_init_grant
245#define CMD_TIMING_INFO action_message_def::action_t::cmd_timing_info
246#define CMD_EXEC_REQUEST action_message_def::action_t::cmd_exec_request
247#define CMD_EXEC_GRANT action_message_def::action_t::cmd_exec_grant
248#define CMD_EXEC_CHECK action_message_def::action_t::cmd_exec_check
249#define CMD_REG_ROUTE action_message_def::action_t::cmd_register_route
250#define CMD_ROUTE_ACK action_message_def::action_t::cmd_route_ack
251#define CMD_STOP action_message_def::action_t::cmd_stop
252#define CMD_TERMINATE_IMMEDIATELY action_message_def::action_t::cmd_terminate_immediately
253#define CMD_TIME_REQUEST action_message_def::action_t::cmd_time_request
254#define CMD_TIME_GRANT action_message_def::action_t::cmd_time_grant
255#define CMD_FORCE_TIME_GRANT action_message_def::action_t::cmd_force_time_grant
256#define CMD_TIME_CHECK action_message_def::action_t::cmd_time_check
257#define CMD_GRANT_TIMEOUT_CHECK action_message_def::action_t::cmd_grant_timeout_check
258#define CMD_REQUEST_CURRENT_TIME action_message_def::action_t::cmd_request_current_time
259#define CMD_USER_RETURN action_message_def::action_t::cmd_user_return
261#define CMD_TIME_BLOCK action_message_def::action_t::cmd_time_block
262#define CMD_TIME_UNBLOCK action_message_def::action_t::cmd_time_unblock
264#define CMD_TIME_BARRIER_REQUEST action_message_def::action_t::cmd_time_barrier_request
265#define CMD_TIME_BARRIER action_message_def::action_t::cmd_time_barrier
266#define CMD_TIME_BARRIER_CLEAR action_message_def::action_t::cmd_time_barrier_clear
268#define CMD_SEND_MESSAGE action_message_def::action_t::cmd_send_message
269#define CMD_SEND_FOR_FILTER action_message_def::action_t::cmd_send_for_filter
270#define CMD_SEND_FOR_FILTER_AND_RETURN action_message_def::action_t::cmd_send_for_filter_return
271#define CMD_SEND_FOR_DEST_FILTER_AND_RETURN \
272 action_message_def::action_t::cmd_send_for_dest_filter_return
273#define CMD_NULL_MESSAGE action_message_def::action_t::cmd_null_message
274#define CMD_NULL_DEST_MESSAGE action_message_def::action_t::cmd_null_dest_message
275#define CMD_FILTER_RESULT action_message_def::action_t::cmd_filter_result
276#define CMD_DEST_FILTER_RESULT action_message_def::action_t::cmd_dest_filter_result
278#define CMD_PUB action_message_def::action_t::cmd_pub
279#define CMD_LOG action_message_def::action_t::cmd_log
280#define CMD_REMOTE_LOG action_message_def::action_t::cmd_remote_log
281#define CMD_WARNING action_message_def::action_t::cmd_warning
282#define CMD_ERROR action_message_def::action_t::cmd_error
283#define CMD_GLOBAL_ERROR action_message_def::action_t::cmd_global_error
284#define CMD_LOCAL_ERROR action_message_def::action_t::cmd_local_error
285#define CMD_ERROR_CHECK action_message_def::action_t::cmd_error_check
287#define CMD_RESEND action_message_def::action_t::cmd_resend
289#define CMD_REG_PUB action_message_def::action_t::cmd_reg_pub
290#define CMD_ADD_PUBLISHER action_message_def::action_t::cmd_add_publisher
291#define CMD_REG_INPUT action_message_def::action_t::cmd_reg_input
292#define CMD_ADD_SUBSCRIBER action_message_def::action_t::cmd_add_subscriber
294#define CMD_REG_TRANSLATOR action_message_def::action_t::cmd_reg_translator
296#define CMD_ADD_NAMED_ENDPOINT action_message_def::action_t::cmd_add_named_endpoint
297#define CMD_ADD_NAMED_FILTER action_message_def::action_t::cmd_add_named_filter
298#define CMD_ADD_NAMED_PUBLICATION action_message_def::action_t::cmd_add_named_publication
299#define CMD_ADD_NAMED_INPUT action_message_def::action_t::cmd_add_named_input
301#define CMD_REMOVE_NAMED_ENDPOINT action_message_def::action_t::cmd_remove_named_endpoint
302#define CMD_REMOVE_NAMED_FILTER action_message_def::action_t::cmd_remove_named_filter
303#define CMD_REMOVE_NAMED_PUBLICATION action_message_def::action_t::cmd_remove_named_publication
304#define CMD_REMOVE_NAMED_INPUT action_message_def::action_t::cmd_remove_named_input
306#define CMD_REMOVE_ENDPOINT action_message_def::action_t::cmd_remove_endpoint
307#define CMD_REMOVE_FILTER action_message_def::action_t::cmd_remove_filter
308#define CMD_REMOVE_PUBLICATION action_message_def::action_t::cmd_remove_publication
309#define CMD_REMOVE_SUBSCRIBER action_message_def::action_t::cmd_remove_subscriber
311#define CMD_CLOSE_INTERFACE action_message_def::action_t::cmd_close_interface
313#define CMD_DATA_LINK action_message_def::action_t::cmd_data_link
314#define CMD_FILTER_LINK action_message_def::action_t::cmd_filter_link
315#define CMD_ENDPOINT_LINK action_message_def::action_t::cmd_endpoint_link
316#define CMD_ADD_ALIAS action_message_def::action_t::cmd_add_alias
318#define CMD_REMOVE_NAMED_TARGET action_message_def::action_t::cmd_remove_named_target
319#define CMD_REMOVE_TARGET action_message_def::action_t::cmd_remove_target
321#define CMD_REG_ENDPOINT action_message_def::action_t::cmd_reg_end
322#define CMD_ADD_ENDPOINT action_message_def::action_t::cmd_add_endpoint
324#define CMD_REG_DATASINK action_message_def::action_t::cmd_reg_datasink
326#define CMD_REG_FILTER action_message_def::action_t::cmd_reg_filter
327#define CMD_ADD_FILTER action_message_def::action_t::cmd_add_filter
329#define CMD_SEARCH_DEPENDENCY action_message_def::action_t::cmd_search_dependency
330#define CMD_ADD_DEPENDENCY action_message_def::action_t::cmd_add_dependency
331#define CMD_REMOVE_DEPENDENCY action_message_def::action_t::cmd_remove_dependency
332#define CMD_ADD_DEPENDENT action_message_def::action_t::cmd_add_dependent
333#define CMD_REMOVE_DEPENDENT action_message_def::action_t::cmd_remove_dependent
334#define CMD_ADD_INTERDEPENDENCY action_message_def::action_t::cmd_add_interdependency
335#define CMD_REMOVE_INTERDEPENDENCY action_message_def::action_t::cmd_remove_interdependency
337#define CMD_REG_FED action_message_def::action_t::cmd_reg_fed
338#define CMD_BROKER_ACK action_message_def::action_t::cmd_broker_ack
339#define CMD_FED_ACK action_message_def::action_t::cmd_fed_ack
340#define CMD_PROTOCOL_PRIORITY action_message_def::action_t::cmd_protocol_priority
341#define CMD_PROTOCOL action_message_def::action_t::cmd_protocol
342#define CMD_PROTOCOL_BIG action_message_def::action_t::cmd_protocol_big
344#define CMD_FED_CONFIGURE_TIME action_message_def::action_t::cmd_fed_configure_time
345#define CMD_FED_CONFIGURE_INT action_message_def::action_t::cmd_fed_configure_int
346#define CMD_FED_CONFIGURE_FLAG action_message_def::action_t::cmd_fed_configure_flag
347#define CMD_INTERFACE_CONFIGURE action_message_def::action_t::cmd_interface_configure
349#define CMD_CORE_CONFIGURE action_message_def::action_t::cmd_core_configure
350#define CMD_BROKER_CONFIGURE action_message_def::action_t::cmd_broker_configure
351#define CMD_BASE_CONFIGURE action_message_def::action_t::cmd_base_configure
352#define CMD_INTERFACE_TAG action_message_def::action_t::cmd_interface_tag
353#define CMD_CORE_TAG action_message_def::action_t::cmd_core_tag
354#define CMD_BROKER_TAG action_message_def::action_t::cmd_broker_tag
355#define CMD_PROFILER_DATA action_message_def::action_t::cmd_profiler_data
356#define CMD_SET_PROFILER_FLAG action_message_def::action_t::cmd_set_profiler_flag
358#define CMD_ACK action_message_def::action_t::cmd_ack
359#define CMD_PRIORITY_ACK action_message_def::action_t::cmd_priority_ack
361#define CMD_QUERY action_message_def::action_t::cmd_query
362#define CMD_QUERY_ORDERED action_message_def::action_t::cmd_query_ordered
363#define CMD_BROKER_QUERY action_message_def::action_t::cmd_broker_query
364#define CMD_BROKER_QUERY_ORDERED action_message_def::action_t::cmd_broker_query_ordered
365#define CMD_INTERFACE_QUERY action_message_def::action_t::cmd_interface_query
366#define CMD_QUERY_REPLY action_message_def::action_t::cmd_query_reply
367#define CMD_QUERY_REPLY_ORDERED action_message_def::action_t::cmd_query_reply_ordered
368#define CMD_SET_GLOBAL action_message_def::action_t::cmd_set_global
370#define CMD_SEND_COMMAND action_message_def::action_t::cmd_send_command
371#define CMD_SEND_COMMAND_ORDERED action_message_def::action_t::cmd_send_command_ordered
372#define CMD_COMMAND_RESPONSE action_message_def::action_t::cmd_command_response
373#define CMD_COMMAND_RESPONSE_ORDERED action_message_def::action_t::cmd_command_response_ordered
375#define CMD_MULTI_MESSAGE action_message_def::action_t::cmd_multi_message
378#define PROTOCOL_PING 10
379#define PROTOCOL_PONG 11
380#define CLOSE_RECEIVER 23425215
382#define PAUSE_TRANSMITTER 453623
383#define ALLOW_MESSAGES 453624
384#define UNPAUSE_TRANSMITTER 453625
387#define REMOVE_ROUTE 244
388#define CONNECTION_INFORMATION 299
389#define CONNECTION_REQUEST 301
390#define CONNECTION_ACK 304
391#define CONNECTION_TEST 307
392#define NEW_BROKER_INFORMATION 333
393#define DISCONNECT 2523
394#define DISCONNECT_ERROR 2623
395#define DELAY_CONNECTION 3795
397#define NAME_NOT_FOUND 2726
398#define RECONNECT_TRANSMITTER 1997
399#define RECONNECT_RECEIVER 1999
401#define PORT_DEFINITIONS 1451
402#define QUERY_PORTS 1453
403#define REQUEST_PORTS 1455
404#define SET_USED_PORTS 1457
408#define UPDATE_FILTER_OPERATOR 572
409#define UPDATE_TRANSLATOR_OPERATOR 574
410#define UPDATE_FEDERATE_OPERATOR 576
411#define UPDATE_QUERY_CALLBACK 581
412#define UPDATE_LOGGING_CALLBACK 592
413#define UPDATE_LOGGING_FILE 594
414#define REQUEST_TICK_FORWARDING 607
422enum CommandErrorCodes :
int {
423 lost_server_connection_code = -5,
424 connection_error_code = -2,
425 already_init_error_code = 5,
426 duplicate_federate_name_error_code = 6,
427 duplicate_broker_name_error_code = 7,
428 mismatch_broker_key_error_code = 9,
429 max_federate_count_exceeded = 11,
430 max_broker_count_exceeded = 13,
431 broker_terminating = 14,
432 multiple_wait_for_current_time_flags = 15,
433 duplicate_federate_id = 17
action_t
Definition ActionMessageDefintions.hpp:20
@ cmd_interface_query
send a query to a core
@ cmd_user_return
return from processing
@ cmd_update_filter_op
command to update a filter op [should only used internal to a core]
@ cmd_ping
request for an Echo response
@ cmd_search_dependency
command to add a dependency by name
@ cmd_disconnect_fed
disconnect a federate
@ cmd_add_dependency
command to send a federate dependency information
@ cmd_local_error
indicate a local error within a federate/core/broker
@ cmd_send_command
command to send a command to a command interface
@ cmd_disconnect_core
disconnect a core
@ cmd_command_response_ordered
command containing a response to a command
@ cmd_disconnect_broker
disconnect a broker
@ cmd_remove_subscriber
cmd to remove a target from connection
@ cmd_add_dependent
command to add a dependent to a federate
@ cmd_global_disconnect
disconnect a federation
@ cmd_command_response
command containing a response to a command
@ cmd_error
indicate an error with a federate
@ cmd_resend
command to resend some data
@ cmd_time_grant
grant a time or iteration
@ cmd_fed_configure_flag
command to update the configuration of a federate a flag parameter
@ cmd_init_not_ready
retract an init ready command
@ cmd_fed_configure_time
command to update the configuration of a federate a time parameter
@ cmd_check_connections
command to check for any connections
@ cmd_reg_pub
register a publication
@ cmd_disconnect_fed_ack
federate disconnect ack
@ cmd_core_tag
command to update a tag on a core
@ cmd_set_global
set a global value
@ cmd_warning
indicate some sort of warning
@ cmd_time_barrier_request
request a time barrier
@ cmd_route_ack
acknowledge reply to a route registration
@ cmd_ping_priority
request for an Echo response on priority channel
@ cmd_query_ordered
send a query along the synchronous paths instead of priority channels
@ cmd_add_named_input
command to add a named input as a target
@ cmd_multi_message
cmd that encapsulates a bunch of messages in its payload
@ cmd_interface_configure
command to update the configuration of an interface
@ cmd_query
send a query this is a priority command
@ cmd_reg_fed
register a federate
@ cmd_exec_grant
grant entry to exec mode or iterate
@ cmd_remove_named_publication
cmd to remove a publication from connection by name
@ cmd_reg_input
register an input interface
@ cmd_disconnect_broker_ack
ack for broker disconnect
@ cmd_reg_end
register an endpoint
@ cmd_disconnect_name
disconnect a broker or core by name vs id
@ cmd_query_reply
response to a query
@ cmd_reg_broker
for a broker to connect with a higher level broker
@ cmd_fed_configure_int
command to update the configuration of a federate an int parameter
@ cmd_broker_location
command to define a new broker location
@ cmd_request_current_time
command to request the current time status of a federate
@ priority_null_info_command
@ cmd_disconnect_check
check for a disconnect
@ cmd_init_grant
grant entry to initialization mode
@ cmd_terminate_immediately
immediate halt no-disconnect;
@ cmd_remove_interdependency
command to remove a federate as both dependent and a dependency
@ cmd_disconnect_core_ack
ack for core disconnect
@ cmd_register_route
instructions to create a direct route to another federate
@ cmd_protocol_big
command used in the protocol stacks with the additional info
@ cmd_time_check
command to run a check on whether time can be granted
@ cmd_add_named_endpoint
command to add a named endpoint as a target
@ null_info_command
biggest command that doesn't have the info structure
@ cmd_add_subscriber
notify of a subscription
@ cmd_timing_info
send some information to dependents on timing
@ cmd_log
log a message with the root broker
@ cmd_add_named_filter
command to add named filter as a target
@ cmd_close_interface
cmd to close all communications from an interface
@ cmd_interface_tag
command to update a tag on an interface
@ cmd_reg_translator
register a translator
@ cmd_force_time_grant
command to force grant a time regardless of other considerations
@ cmd_query_reply_ordered
response to a query on normal paths
@ cmd_timeout_disconnect
command specifying a disconnect from a timeout
@ cmd_bye
message stating this is the last communication from a federate
@ cmd_protocol_priority
priority command used by protocol stacks and ignored by core
@ cmd_remove_filter
cmd to remove a filter from connection
@ cmd_null_message
used when a filter drops a message but it needs to return
@ cmd_broker_setup
command to load the setup information for a broker
@ cmd_tick
command for a timer tick
@ cmd_time_barrier_clear
clear a global time barrier
@ cmd_time_barrier
setup a global time barrier
@ cmd_remove_named_input
cmd to remove a target from connection by name
@ cmd_connection_error
cmd indicating a connection error with a broker/federate
@ cmd_broker_tag
command to update a tag on a broker
@ cmd_protocol
command used in the protocol stacks and ignored by the core
@ cmd_dest_filter_result
the result of a destination filter going back to its originator
@ cmd_profiler_data
command for profiler data
@ cmd_error_check
check some status for error and error timeouts
@ cmd_send_for_filter
send a message to be filtered and forward on to the destination
@ cmd_send_for_filter_return
send a message back to its originator after filtering
@ cmd_ping_reply
response to a ping request
@ cmd_null_dest_message
used when a destination filter drops a message
@ cmd_add_interdependency
command to add a federate as both dependent and a dependency
@ cmd_grant_timeout_check
@ cmd_send_route
command to define a route information
@ cmd_remove_publication
cmd to remove a publication from connection
@ cmd_priority_disconnect
command to disconnect a broker from a higher level broker
@ cmd_time_block
prevent a federate from granting time until the block is cleared
@ cmd_data_link
command to connect a publication with an endpoint
@ cmd_add_publisher
notify of a publication
@ cmd_remove_endpoint
cmd to remove an endpoint
@ cmd_add_endpoint
notify of a source endpoint
@ cmd_reg_datasink
register a sink interface
@ cmd_set_profiler_flag
command to activate profiling
@ cmd_reg_filter
register a filter
@ cmd_exec_request
request an iteration or entry to execution mode
@ cmd_user_disconnect
command specifying that a user has issued a disconnect signal
@ cmd_core_configure
command to update the configuration of a core
@ cmd_send_message
send a message
@ cmd_remove_dependent
command to remove a dependent from a federates consideration
@ cmd_invalid
indicates that command has generated an invalid state
@ cmd_remove_named_endpoint
cmd to remove an endpoint
@ cmd_send_command_ordered
command to send a command to a command interface
@ cmd_remote_log
send a log message to a remote host
@ cmd_broadcast_disconnect
a broadcast disconnect message
@ cmd_remove_dependency
command to remove a dependency
@ cmd_filter_result
the results of a filter message going back to its originator
@ cmd_add_filter
notify of a destination filter
@ cmd_time_unblock
clear a time block
@ cmd_exec_check
command to run a check on execution entry
@ cmd_add_named_publication
command to add a named publication as a target
@ cmd_disconnect
disconnect command
@ cmd_broker_query_ordered
send a query to a core
@ cmd_base_configure
command to update the configuration of a broker/core base
@ cmd_fed_ack
a reply with the global id or an error if the fed registration failed
@ cmd_time_request
request a time or iteration
@ cmd_ack
acknowledge command to for various purposes
@ cmd_priority_ack
doesn't do anything
@ cmd_init
request entry to init mode
@ cmd_send_for_dest_filter_return
send a message to a destination filter for processing
@ cmd_add_route
command to define a route
@ cmd_add_alias
command to add an alias for an interface
@ cmd_filter_link
command to add a target to a filter
@ cmd_broker_configure
command to update the configuration of a broker
@ cmd_broker_query
send a query to a core
@ cmd_remove_named_filter
cmd to remove a filter from connection by name
@ cmd_endpoint_link
command to link endpoints
@ cmd_broker_ping
ping to send to a broker to also ping subbrokers and cores
the main namespace for the helics co-simulation library User functions will be in the helics namespac...
Definition AsyncFedCallInfo.hpp:14
const char * commandErrorString(int errorCode)
Definition ActionMessage.cpp:874
const char * actionMessageType(action_message_def::action_t action)
Definition ActionMessage.cpp:857