Skip to content

Commit

Permalink
Merge branch 'sp/#339-em-it' into all/#tbw
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastian-peter committed Nov 27, 2022
2 parents 04148c3 + b16bd3b commit ea97773
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,8 @@ class GridAgentController(
subGridContainer.getSystemParticipants,
systemParticipants,
environmentRefs,
rootEmConfig
rootEmConfig,
subGridContainer.getSubnet
)
}

Expand Down Expand Up @@ -195,7 +196,8 @@ class GridAgentController(
allParticipants: SystemParticipants,
filteredParticipants: Vector[SystemParticipantInput],
environmentRefs: EnvironmentRefs,
rootEmConfig: Option[SimonaConfig.Simona.Runtime.RootEm]
rootEmConfig: Option[SimonaConfig.Simona.Runtime.RootEm],
subGrid: Int
): Map[UUID, Set[ActorRef]] = {
/* Prepare the config util for the participant models, which (possibly) utilizes as map to speed up the initialization
* phase */
Expand All @@ -221,7 +223,7 @@ class GridAgentController(

if (rootEmConfig.isDefined && emInputs.nonEmpty) {
val mockRootEmInput = new EmInput(
UUID.randomUUID(),
UUID.fromString(s"11111111-0000-0000-0000-${"%012d".format(subGrid)}"),
"Root EmAgent",
new NodeInput(
UUID.randomUUID(),
Expand Down

0 comments on commit ea97773

Please sign in to comment.