-
Notifications
You must be signed in to change notification settings - Fork 1
LL/#73 first implementation of input #98
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
165b9d2
df6d8f7
514d8b9
f9acab0
a196dd7
8abb1ba
7c8592b
ad31666
5ab597a
c7f6eb6
3db4dcf
a230e94
f5e41ae
fb7427d
ff3d771
7bf8498
39c1902
02aa4d1
f341dd6
cc6ef75
7079a9f
3f5db04
bbcb30a
cb6156e
1f096fd
0bfea89
016d38e
608c8aa
a141d29
940e315
0a16f1a
6f45bcf
cddbd6e
f63de5f
f04d935
da84df1
71f3d74
6aae1f7
9592f9a
c6bf372
bad7131
f7d7342
5217067
caa6a0e
6670397
6841b35
cd2d87e
161191b
4c2237d
9b713f7
5cdb996
8bf85c3
19696e8
c63cbe7
2c226fd
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,2 @@ | ||
| # These are explicitly windows files and should use crlf | ||
| *.bat text eol=crlf | ||
|
|
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| runner.dialect = scala3 |
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,32 @@ | ||
| <?xml version="1.0" encoding="UTF-8"?> | ||
| <configuration> | ||
|
|
||
| <appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender"> | ||
| <filter class="ch.qos.logback.classic.filter.ThresholdFilter"> | ||
| <level>INFO</level> | ||
| </filter> | ||
| <encoder> | ||
| <pattern>[%date{ISO8601}] [%level] [%logger] [%thread] - %msg MDC: {%mdc}%n</pattern> | ||
| </encoder> | ||
| </appender> | ||
|
|
||
| <!-- | ||
| Logging from tests are silenced by this appender. When there is a test failure | ||
| the captured logging events are flushed to the appenders defined for the | ||
| akka.actor.testkit.typed.internal.CapturingAppenderDelegate logger. | ||
| --> | ||
| <appender name="CapturingAppender" class="akka.actor.testkit.typed.internal.CapturingAppender" /> | ||
|
|
||
| <!-- | ||
| The appenders defined for this CapturingAppenderDelegate logger are used | ||
| when there is a test failure and all logging events from the test are | ||
| flushed to these appenders. | ||
| --> | ||
| <logger name="akka.actor.testkit.typed.internal.CapturingAppenderDelegate" > | ||
| <appender-ref ref="STDOUT"/> | ||
| </logger> | ||
|
|
||
| <root level="DEBUG"> | ||
| <appender-ref ref="CapturingAppender"/> | ||
| </root> | ||
| </configuration> |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,36 @@ | ||
| /* | ||
| * © 2022. TU Dortmund University, | ||
| * Institute of Energy Systems, Energy Efficiency and Energy Economics, | ||
| * Research group Distribution grid planning and operation | ||
| */ | ||
|
|
||
| package edu.ie3.osmogrid | ||
|
|
||
| import akka.actor.typed.Behavior | ||
| import akka.actor.typed.scaladsl.Behaviors | ||
| import org.slf4j.Logger | ||
|
|
||
| /** Support trait for executing clean up tasks with stopping an actor | ||
| * @tparam T | ||
| * Behavior type | ||
| */ | ||
| trait ActorStopSupportStateless[T] { | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why did you decide to not extend the existing trait and override the methods? The traits are meant to do the same thing, but have different outline (cf.
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I now adapted the interface definitions to match types as far as possible (both using functions now) |
||
|
|
||
| /** Function to perform cleanup tasks while shutting down | ||
| */ | ||
| protected def cleanUp(): Unit | ||
|
|
||
| /** Specific stop state with clean up actions issued | ||
| */ | ||
| protected val stopBehavior: Behavior[T] = Behaviors.stopped(cleanUp) | ||
|
|
||
| final protected def terminate(log: Logger): Behavior[T] = { | ||
| log.info("Got request to terminate.") | ||
| stopBehavior | ||
| } | ||
|
|
||
| final protected def postStopCleanUp(log: Logger): Behavior[T] = { | ||
| log.info("Got terminated by ActorSystem.") | ||
| stopBehavior | ||
| } | ||
| } | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,12 @@ | ||
| /* | ||
| * © 2021. TU Dortmund University, | ||
| * Institute of Energy Systems, Energy Efficiency and Energy Economics, | ||
| * Research group Distribution grid planning and operation | ||
| */ | ||
|
|
||
| package edu.ie3.osmogrid.exception | ||
|
|
||
| case class PbfReadFailedException( | ||
| msg: String = "", | ||
| cause: Throwable = None.orNull | ||
| ) extends Exception(msg, cause) |
Uh oh!
There was an error while loading. Please reload this page.