-
Notifications
You must be signed in to change notification settings - Fork 64
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2400 from lf-lang/rti-DNET
A target property for handling `downstream next event tag` (`DNET`) signal
- Loading branch information
Showing
7 changed files
with
73 additions
and
3 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
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
27 changes: 27 additions & 0 deletions
27
core/src/main/java/org/lflang/target/property/DNETProperty.java
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 |
---|---|---|
@@ -0,0 +1,27 @@ | ||
package org.lflang.target.property; | ||
|
||
/** | ||
* @brief Target property turning on or off the DNET signal optimization. | ||
* <p>If this target property is true, the RTI sends DNET (downstream next event tag) signals to | ||
* an upstream federate to tell the federate that sending LTC and NET signals with tags less | ||
* than the specified value is unnecessary. The default is true. | ||
*/ | ||
public final class DNETProperty extends BooleanProperty { | ||
|
||
/** Singleton target property instance. */ | ||
public static final DNETProperty INSTANCE = new DNETProperty(); | ||
|
||
private DNETProperty() { | ||
super(); | ||
} | ||
|
||
@Override | ||
public Boolean initialValue() { | ||
return true; | ||
} | ||
|
||
@Override | ||
public String name() { | ||
return "DNET"; | ||
} | ||
} |
Submodule reactor-c
updated
15 files
+6 −3 | core/federated/RTI/main.c | |
+205 −91 | core/federated/RTI/rti_common.c | |
+66 −26 | core/federated/RTI/rti_common.h | |
+8 −4 | core/federated/RTI/rti_local.c | |
+58 −32 | core/federated/RTI/rti_remote.c | |
+1 −0 | core/federated/RTI/rti_remote.h | |
+202 −100 | core/federated/RTI/test/rti_common_test.c | |
+66 −3 | core/federated/federate.c | |
+12 −0 | core/tag.c | |
+16 −1 | include/core/federated/federate.h | |
+12 −0 | include/core/federated/network/net_common.h | |
+1 −1 | lingua-franca-ref.txt | |
+8 −0 | tag/api/tag.h | |
+4 −0 | trace/api/types/trace_types.h | |
+3 −0 | util/tracing/visualization/fedsd.py |