From e5cf04c23744034bf461acad37f09a9dc0224f2b Mon Sep 17 00:00:00 2001 From: Byeonggil-Jun Date: Wed, 24 Aug 2022 15:42:45 +0900 Subject: [PATCH 1/2] Quick fix to adjust upstreamFedDelays as never tag --- .../src/org/lflang/generator/ts/TSConstructorGenerator.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/org.lflang/src/org/lflang/generator/ts/TSConstructorGenerator.kt b/org.lflang/src/org/lflang/generator/ts/TSConstructorGenerator.kt index 5b2a40b06e..070e6434d6 100644 --- a/org.lflang/src/org/lflang/generator/ts/TSConstructorGenerator.kt +++ b/org.lflang/src/org/lflang/generator/ts/TSConstructorGenerator.kt @@ -126,8 +126,8 @@ class TSConstructorGenerator ( val federateConfigurations = LinkedList() if (reactor.isFederated) { for ((key, _) in federate.dependsOn) { - // FIXME: Get delay properly considering the unit instead of hardcoded BigInt(0). - federateConfigurations.add("this.addUpstreamFederate(${key.id}, BigInt(0));") + // FIXME: Get delay properly considering the unit instead of hardcoded TimeValue.NEVER(). + federateConfigurations.add("this.addUpstreamFederate(${key.id}, TimeValue.NEVER());") } for ((key, _) in federate.sendsTo) { federateConfigurations.add("this.addDownstreamFederate(${key.id});") From 3670a83ee2f76696cd260937ac144b17dafaa2cd Mon Sep 17 00:00:00 2001 From: Hokeun Kim Date: Wed, 24 Aug 2022 00:42:05 -0700 Subject: [PATCH 2/2] Update reactor-ts version. --- org.lflang/src/lib/ts/reactor-ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/org.lflang/src/lib/ts/reactor-ts b/org.lflang/src/lib/ts/reactor-ts index e5c9020c39..05f87e5542 160000 --- a/org.lflang/src/lib/ts/reactor-ts +++ b/org.lflang/src/lib/ts/reactor-ts @@ -1 +1 @@ -Subproject commit e5c9020c3971868b0670b0d78116e38ca64741a5 +Subproject commit 05f87e55422607882a9b0b15f86c8e21c1cfa36d