-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update proto messages and have a start_tag_signal that is handled and…
… used to distribute start tags
- Loading branch information
Showing
11 changed files
with
285 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,41 @@ | ||
import "nanopb.proto"; | ||
|
||
enum MessageType { | ||
TAGGED_MESSAGE = 1; START_TAG_SIGNAL = 2; REQUEST_ABSENT_SIGNAL = 3; ABSENT_SIGNAL = 4; CONDITIONAL_ABSENT_SIGNAL = 5; | ||
} | ||
|
||
message Tag { | ||
required int64 time = 1; | ||
required uint32 microstep = 2; | ||
} | ||
|
||
message StartTagSignal { required Tag tag = 1; } | ||
|
||
message TaggedMessage { | ||
required Tag tag = 1; | ||
required int32 conn_id = 2; | ||
required bytes payload = 3 [(nanopb).max_size = 832]; | ||
} | ||
|
||
message RequestAbsentSignal { | ||
required Tag tag = 1; | ||
required int32 id = 2; | ||
} | ||
|
||
message AbsentSignal { required Tag tag = 1; } | ||
|
||
message ConditionalAbsentSignal { | ||
required Tag tag = 1; | ||
required int32 id = 2; | ||
} | ||
|
||
message FederateMessage { | ||
required MessageType type = 1; | ||
oneof message { | ||
TaggedMessage tagged_message = 2; | ||
StartTagSignal start_tag_signal = 3; | ||
RequestAbsentSignal request_absent_signal = 4; | ||
AbsentSignal absent_signal = 5; | ||
ConditionalAbsentSignal conditional_absent_signal = 6; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.