File tree Expand file tree Collapse file tree
src/main/scala/de/tubs/cs/ias/plotalyzer/plugin Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ libraryDependencies ++= Seq(
1212 " org.wvlet.airframe" %% " airframe-log" % " 21.2.0" ,
1313 " org.slf4j" % " slf4j-nop" % " 1.7.30" ,
1414 " me.tongfei" % " progressbar" % " 0.9.3" ,
15- " de.tubs.cs.ias" %% " plotalyzer" % " 1.0 .0"
15+ " de.tubs.cs.ias" %% " plotalyzer" % " 0.1 .0"
1616)
1717
1818ThisBuild / resolvers ++= Seq (
Original file line number Diff line number Diff line change 11package de .tubs .cs .ias .plotalyzer .plugin
22
3- import de .tubs .cs .ias .plotalyzer .database .entities .Experiment
4- import de .tubs .cs .ias .plotalyzer .plugins .AnalysisPlugin
5- import spray .json .{JsObject , JsString , JsValue }
3+ import de .tubs .cs .ias .plotalyzer .plugins .{
4+ AnalysisContext ,
5+ AnalysisPlugin ,
6+ AnalysisReturn ,
7+ JSONReturn
8+ }
9+ import spray .json .{JsObject , JsString }
610
711class ExperimentSummary extends AnalysisPlugin {
812
9- override def analyze (experiment : Experiment ): Either [Exception , JsValue ] = {
13+ override def analyze (
14+ context : AnalysisContext ): Either [Exception , AnalysisReturn ] = {
1015 try {
11- Right (JsObject (" test" -> JsString (" success " )))
16+ Right (JSONReturn ( JsObject (" test" -> JsString (" version 0.0.2 " ) )))
1217 } catch {
13- case e : Exception => Left (e)
18+ case e : Exception => Left (e)
1419 }
1520 }
16-
17-
1821}
Original file line number Diff line number Diff line change 1- ThisBuild / version := " 0.0.1 "
1+ ThisBuild / version := " 0.0.2 "
You can’t perform that action at this time.
0 commit comments