From ab825f8bf04fcc386059a1f08c19e63b748ecaf1 Mon Sep 17 00:00:00 2001 From: Pascal Date: Wed, 29 Jan 2020 01:19:11 -0600 Subject: [PATCH] [mod] modified SharedMemory to include a map of all groups - this is to get sensor parent groups if no truth is calculated --- src/main/scala/scim/datastruct/Configuration.scala | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/scala/scim/datastruct/Configuration.scala b/src/main/scala/scim/datastruct/Configuration.scala index 111423a..91255c0 100644 --- a/src/main/scala/scim/datastruct/Configuration.scala +++ b/src/main/scala/scim/datastruct/Configuration.scala @@ -28,6 +28,7 @@ case class SharedMemory(sensor: Map[Time, Map[Cell, Map[Group, Vector[SensorResu groundTruth: Map[Time, Map[Cell, Map[Group, Truth]]], groundTruthConfig: Map[Time, Map[Group, Truth]], config: SimulationConfig, + groups: Map[String, Group], output: Vector[BroadcastObject[Boolean]]) { // memory optimization: remove sensor and throw output into output // only map Truths from config into groundtruth, do a if groundTruth.contains(time) groundTruth(time) else prevTruth in case of time.start Truth(None) (or better map it to time.start anyways in parser)