Provider revising

This commit is contained in:
Alexander Nozik 2017-04-26 18:15:40 +03:00
parent 28f1503190
commit 5553d141ed
4 changed files with 4 additions and 4 deletions

View File

@ -117,7 +117,7 @@ public class PKT8Device extends PortSensor<PKT8Result> {
//setup connection
if ("virtual".equals(portName)) {
getLogger().info("Starting {} using virtual debug port", getName());
handler = new PKT8VirtualPort("PKT8", meta().getNodeOrEmpty("debug"));
handler = new PKT8VirtualPort("PKT8", meta().getMetaOrEmpty("debug"));
} else {
handler = super.buildHandler(portName);
}

View File

@ -48,7 +48,7 @@ public class PlotFitResultAction extends OneToOneAction<FitState, FitState> {
NavigablePointSource data = input.getDataSet();
if (!(input.getModel() instanceof XYModel)) {
getReport(context, name).reportError("The fit model should be instance of XYModel for this action. Action failed!");
context.getLog(name).reportError("The fit model should be instance of XYModel for this action. Action failed!");
return input;
}
XYModel model = (XYModel) input.getModel();

View File

@ -65,7 +65,7 @@ public class DebunchAction extends OneToOneAction<RawNMFile, RawNMFile> {
});
report(context, name, "File {} completed", source.getName());
getReport(context, name).print(new PrintWriter(buildActionOutput(context, name)));
context.getLog(name).print(new PrintWriter(buildActionOutput(context, name)));
// res.configure(source.meta());
return res;

View File

@ -72,7 +72,7 @@ public class SterileNeutrinoSpectrum extends AbstractParametricFunction {
fss = new FSS(fssStream);
}
transmission = new NumassTransmission(context, configuration.getNodeOrEmpty("transmission"));
transmission = new NumassTransmission(context, configuration.getMetaOrEmpty("transmission"));
resolution = new NumassResolution(configuration.getMeta("resolution", Meta.empty()));
this.fast = configuration.getBoolean("fast", true);
transRes = new TransRes();