Skip to content

Commit

Permalink
Fixing GridAgentController
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastian-peter committed Jun 28, 2022
1 parent 1370dab commit efd555e
Showing 1 changed file with 15 additions and 5 deletions.
20 changes: 15 additions & 5 deletions src/main/scala/edu/ie3/simona/agent/grid/GridAgentController.scala
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,9 @@ class GridAgentController(
case input: FixedFeedInInput =>
buildFixedFeedIn(
input,
participantConfigUtil.getConfigOrDefault(input.getUuid),
participantConfigUtil.getConfigOrDefault[FixedFeedInRuntimeConfig](
input.getUuid
),
environmentRefs.primaryServiceProxy,
simulationStartDate,
simulationEndDate,
Expand All @@ -232,7 +234,9 @@ class GridAgentController(
case input: LoadInput =>
buildLoad(
input,
participantConfigUtil.getConfigOrDefault(input.getUuid),
participantConfigUtil.getConfigOrDefault[LoadRuntimeConfig](
input.getUuid
),
environmentRefs.primaryServiceProxy,
simulationStartDate,
simulationEndDate,
Expand All @@ -243,7 +247,9 @@ class GridAgentController(
case input: PvInput =>
buildPV(
input,
participantConfigUtil.getConfigOrDefault(input.getUuid),
participantConfigUtil.getConfigOrDefault[PvRuntimeConfig](
input.getUuid
),
environmentRefs.primaryServiceProxy,
environmentRefs.weather,
simulationStartDate,
Expand All @@ -255,7 +261,9 @@ class GridAgentController(
case input: WecInput =>
buildWec(
input,
participantConfigUtil.getConfigOrDefault(input.getUuid),
participantConfigUtil.getConfigOrDefault[WecRuntimeConfig](
input.getUuid
),
environmentRefs.primaryServiceProxy,
environmentRefs.weather,
simulationStartDate,
Expand All @@ -267,7 +275,9 @@ class GridAgentController(
case input: EvcsInput =>
buildEvcs(
input,
participantConfigUtil.getConfigOrDefault(input.getUuid),
participantConfigUtil.getConfigOrDefault[EvcsRuntimeConfig](
input.getUuid
),
environmentRefs.primaryServiceProxy,
environmentRefs.evDataService.getOrElse(
throw new GridAgentInitializationException(
Expand Down

0 comments on commit efd555e

Please sign in to comment.