Skip to content

Commit

Permalink
Merge branch 'dev' into sp/#1142-operationinterval
Browse files Browse the repository at this point in the history
  • Loading branch information
danielfeismann authored Feb 6, 2025
2 parents 830b5eb + ec6307c commit 705606e
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 13 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- EM should output flex option results even if it has no parent [#1112](https://github.com/ie3-institute/simona/issues/1112)
- Rename `PrimaryDataWithApparentPower` to `PrimaryDataWithComplexPower` [#1140](https://github.com/ie3-institute/simona/issues/1140)
- Refactoring of `ThermalGrid.handleInfeed` to fix thermal storage recharge correctly when empty [#930](https://github.com/ie3-institute/simona/issues/930)
- Move `ScheduleServiceActivation` out of `RegistrationResponseMessage` [#1143](https://github.com/ie3-institute/simona/issues/1143)

## [3.0.0] - 2023-08-07

Expand Down
8 changes: 4 additions & 4 deletions src/main/scala/edu/ie3/simona/api/ExtSimAdapter.scala
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@

package edu.ie3.simona.api

import org.apache.pekko.actor.typed.scaladsl.adapter.ClassicActorRefOps
import org.apache.pekko.actor.{Actor, ActorRef, PoisonPill, Props}
import edu.ie3.simona.api.ExtSimAdapter.{Create, ExtSimAdapterStateData, Stop}
import edu.ie3.simona.api.data.ontology.ScheduleDataServiceMessage
import edu.ie3.simona.api.simulation.ExtSimAdapterData
Expand All @@ -18,15 +16,17 @@ import edu.ie3.simona.api.simulation.ontology.{
CompletionMessage => ExtCompletionMessage,
}
import edu.ie3.simona.logging.SimonaActorLogging
import edu.ie3.simona.ontology.messages.Activation
import edu.ie3.simona.ontology.messages.SchedulerMessage.{
Completion,
ScheduleActivation,
}
import edu.ie3.simona.ontology.messages.services.ServiceMessage.RegistrationResponseMessage.ScheduleServiceActivation
import edu.ie3.simona.ontology.messages.Activation
import edu.ie3.simona.ontology.messages.services.ServiceMessage.ScheduleServiceActivation
import edu.ie3.simona.scheduler.ScheduleLock
import edu.ie3.simona.scheduler.ScheduleLock.ScheduleKey
import edu.ie3.simona.util.SimonaConstants.INIT_SIM_TICK
import org.apache.pekko.actor.typed.scaladsl.adapter.ClassicActorRefOps
import org.apache.pekko.actor.{Actor, ActorRef, PoisonPill, Props}

import scala.jdk.OptionConverters._

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,12 +60,13 @@ object ServiceMessage {
override val serviceRef: ActorRef
) extends RegistrationResponseMessage

final case class ScheduleServiceActivation(
tick: Long,
unlockKey: ScheduleKey,
)
}

final case class ScheduleServiceActivation(
tick: Long,
unlockKey: ScheduleKey,
)

/** Actual provision of data
*
* @tparam D
Expand Down
10 changes: 6 additions & 4 deletions src/main/scala/edu/ie3/simona/service/SimonaService.scala
Original file line number Diff line number Diff line change
Expand Up @@ -6,23 +6,25 @@

package edu.ie3.simona.service

import org.apache.pekko.actor.typed.scaladsl.adapter.ClassicActorRefOps
import org.apache.pekko.actor.{Actor, ActorContext, ActorRef, Stash}
import edu.ie3.simona.logging.SimonaActorLogging
import edu.ie3.simona.ontology.messages.Activation
import edu.ie3.simona.ontology.messages.SchedulerMessage.{
Completion,
ScheduleActivation,
}
import edu.ie3.simona.ontology.messages.services.ServiceMessage.RegistrationResponseMessage.ScheduleServiceActivation
import edu.ie3.simona.ontology.messages.services.ServiceMessage.ServiceRegistrationMessage
import edu.ie3.simona.ontology.messages.services.ServiceMessage.{
ScheduleServiceActivation,
ServiceRegistrationMessage,
}
import edu.ie3.simona.scheduler.ScheduleLock.ScheduleKey
import edu.ie3.simona.service.ServiceStateData.{
InitializeServiceStateData,
ServiceBaseStateData,
}
import edu.ie3.simona.service.SimonaService.Create
import edu.ie3.simona.util.SimonaConstants.INIT_SIM_TICK
import org.apache.pekko.actor.typed.scaladsl.adapter.ClassicActorRefOps
import org.apache.pekko.actor.{Actor, ActorContext, ActorRef, Stash}

import scala.util.{Failure, Success, Try}

Expand Down
2 changes: 1 addition & 1 deletion src/test/scala/edu/ie3/simona/api/ExtSimAdapterSpec.scala
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import edu.ie3.simona.ontology.messages.SchedulerMessage.{
Completion,
ScheduleActivation,
}
import edu.ie3.simona.ontology.messages.services.ServiceMessage.RegistrationResponseMessage.ScheduleServiceActivation
import edu.ie3.simona.ontology.messages.services.ServiceMessage.ScheduleServiceActivation
import edu.ie3.simona.scheduler.ScheduleLock.ScheduleKey
import edu.ie3.simona.test.common.{TestKitWithShutdown, TestSpawnerClassic}
import edu.ie3.simona.util.SimonaConstants.INIT_SIM_TICK
Expand Down

0 comments on commit 705606e

Please sign in to comment.