Skip to content

Commit

Permalink
Define TPO in comments
Browse files Browse the repository at this point in the history
  • Loading branch information
edwardalee committed Nov 9, 2024
1 parent 555a025 commit 2e6d57f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,11 @@ protected void addNodesAndEdges(ReactorInstance reactor) {
registerPortInstances(reactor);
}

/** Add edges that encode the precedence relations induced by the TPO levels. */
/**
* Add edges that encode the precedence relations induced by the TPO levels. TPO is total port
* order. See
* https://github.com/icyphy/lf-pubs/blob/54af48a97cc95058dbfb3333b427efb70294f66c/federated/TOMACS/paper.tex#L1353
*/
private void addEdgesForTpoLevels(ReactorInstance main) {
var constrainedReactions = getConstrainedReactions(main);
for (var i : constrainedReactions.keySet()) {
Expand Down
3 changes: 2 additions & 1 deletion core/src/main/java/org/lflang/generator/ReactorInstance.java
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,8 @@ public ReactorInstance(Reactor reactor, ReactorInstance parent, MessageReporter

/**
* The TPO level with which {@code this} was annotated, or {@code null} if there is no TPO
* annotation.
* annotation. TPO is total port order. See
* https://github.com/icyphy/lf-pubs/blob/54af48a97cc95058dbfb3333b427efb70294f66c/federated/TOMACS/paper.tex#L1353
*/
public final Integer tpoLevel;

Expand Down

0 comments on commit 2e6d57f

Please sign in to comment.