@@ -12,18 +12,24 @@ typedef struct Environment Environment;
1212typedef enum JoiningPolicy JoiningPolicy ;
1313typedef struct TimerConfig TimerConfig ;
1414
15- enum JoiningPolicy { JOIN_IMMEDIATELY = 0 , JOIN_ALIGNED_WITH_SHORT_TIMER = 1 , JOIN_AT_HYPER_PERIOD = 2 };
15+ enum JoiningPolicy { JOIN_IMMEDIATELY = 0 , JOIN_TIMER_ALIGNED = 1 , JOIN_AT_HYPER_PERIOD = 2 };
1616
1717/** Represents the state of a neighbor. */
1818typedef struct {
19- bool core_federate ; // Whether this federate can be not available
20- bool handshake_response_received ; // Whether a handshake response has been received from this neighbor.
21- bool handshake_request_received ; // Whether a handshake response has been sent to this neighbor.
22- bool handshake_response_sent ; // Whether a handshake response has been sent to this neighbor.
23- size_t start_time_proposals_received ; // The number of start time proposals received from this neighbor.
24- StartupCoordinationState initial_state_of_neighbor ; // Saves the initial state of the neighbor
25- interval_t
26- current_logical_time ; // Used by transient to figure out the current logical times of all neighboring federates
19+ /**True, if this federate needs to be present during joining*/
20+ bool core_federate ;
21+ /** True, if a handshake response has been received from this neighbor.*/
22+ bool handshake_response_received ;
23+ /** True, if a handshake response has been sent to this neighbor.*/
24+ bool handshake_request_received ;
25+ /** True, if a handshake response has been sent to this neighbor.*/
26+ bool handshake_response_sent ;
27+ /** The number of start time proposals received from this neighbor.*/
28+ size_t start_time_proposals_received ;
29+ /** Saves the initial state of the neighbor.*/
30+ StartupCoordinationState initial_state_of_neighbor ;
31+ /** Used by transient federates, to figure out the current logical times of all neighboring federates. */
32+ interval_t current_logical_time ;
2733} NeighborState ;
2834
2935/** The payload of a StartupCoordinator event. */
0 commit comments