Skip to content

Commit

Permalink
spotless
Browse files Browse the repository at this point in the history
  • Loading branch information
danielfeismann committed Jan 22, 2025
1 parent 831e3a3 commit ef6958b
Showing 1 changed file with 29 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,28 +7,50 @@
package edu.ie3.simona.agent.participant.hp

import edu.ie3.datamodel.models.input.system.HpInput
import edu.ie3.datamodel.models.result.system.{HpResult, SystemParticipantResult}
import edu.ie3.datamodel.utils.validation.{ThermalUnitValidationUtils, ValidationUtils}
import edu.ie3.datamodel.models.result.system.{
HpResult,
SystemParticipantResult,
}
import edu.ie3.datamodel.utils.validation.{
ThermalUnitValidationUtils,
ValidationUtils,
}
import edu.ie3.simona.agent.ValueStore
import edu.ie3.simona.agent.participant.ParticipantAgent.getAndCheckNodalVoltage
import edu.ie3.simona.agent.participant.ParticipantAgentFundamentals
import edu.ie3.simona.agent.participant.data.Data
import edu.ie3.simona.agent.participant.data.Data.PrimaryData.ComplexPowerAndHeat
import edu.ie3.simona.agent.participant.data.secondary.SecondaryDataService
import edu.ie3.simona.agent.participant.hp.HpAgent.neededServices
import edu.ie3.simona.agent.participant.statedata.BaseStateData.{FlexControlledData, ParticipantModelBaseStateData}
import edu.ie3.simona.agent.participant.statedata.ParticipantStateData.{InputModelContainer, WithHeatInputContainer}
import edu.ie3.simona.agent.participant.statedata.{BaseStateData, ParticipantStateData}
import edu.ie3.simona.agent.participant.statedata.BaseStateData.{
FlexControlledData,
ParticipantModelBaseStateData,
}
import edu.ie3.simona.agent.participant.statedata.ParticipantStateData.{
InputModelContainer,
WithHeatInputContainer,
}
import edu.ie3.simona.agent.participant.statedata.{
BaseStateData,
ParticipantStateData,
}
import edu.ie3.simona.agent.state.AgentState
import edu.ie3.simona.agent.state.AgentState.Idle
import edu.ie3.simona.config.SimonaConfig.HpRuntimeConfig
import edu.ie3.simona.event.notifier.NotifierConfig
import edu.ie3.simona.exceptions.agent.{AgentInitializationException, InconsistentStateException, InvalidRequestException}
import edu.ie3.simona.exceptions.agent.{
AgentInitializationException,
InconsistentStateException,
InvalidRequestException,
}
import edu.ie3.simona.io.result.AccompaniedSimulationResult
import edu.ie3.simona.model.participant.HpModel.{HpRelevantData, HpState}
import edu.ie3.simona.model.participant.{FlexChangeIndicator, HpModel}
import edu.ie3.simona.model.thermal.ThermalGrid
import edu.ie3.simona.ontology.messages.flex.FlexibilityMessage.{FlexRequest, FlexResponse}
import edu.ie3.simona.ontology.messages.flex.FlexibilityMessage.{
FlexRequest,
FlexResponse,
}
import edu.ie3.simona.ontology.messages.services.WeatherMessage.WeatherData
import edu.ie3.util.quantities.PowerSystemUnits.PU
import edu.ie3.util.quantities.QuantityUtils.RichQuantityDouble
Expand Down Expand Up @@ -438,7 +460,6 @@ trait HpAgentFundamentals
s"Unable to initialize heat pump agent '${inputModel.electricalInputModel.getUuid}' without thermal grid model."
)
case WithHeatInputContainer(_, thermalGrid) =>

ThermalUnitValidationUtils.check(thermalGrid)
/* Build the actual heat pump model */
HpModel(
Expand Down

0 comments on commit ef6958b

Please sign in to comment.