Strarted work on remote

This commit is contained in:
Alexander Nozik 2018-05-24 21:47:32 +03:00
parent 1447ed5f70
commit 8be357b4ab
4 changed files with 5 additions and 4 deletions

View File

@ -30,7 +30,7 @@ class BoardController() : Controller(), AutoCloseable {
val storageProperty = SimpleObjectProperty<Storage>(null) val storageProperty = SimpleObjectProperty<Storage>(null)
val serverManagerProperty = objectBinding(contextProperty) { val serverManagerProperty = objectBinding(contextProperty) {
context.opt(ServerManager::class.java).orElse(null) context.opt(ServerManager::class.java)
} }
val devices: ObservableList<Device> = FXCollections.observableArrayList(); val devices: ObservableList<Device> = FXCollections.observableArrayList();

View File

@ -29,7 +29,7 @@ public class ServerRunner extends SimpleConfigurable implements AutoCloseable {
public ServerRunner() throws IOException, ParseException { public ServerRunner() throws IOException, ParseException {
// Global.instance().getPluginManager().load(StorageManager.class); // Global.instance().getPluginManager().load(StorageManager.class);
Path configFile = context.getOutput().getFile(SERVER_CONFIG_PATH).getPath(); Path configFile = context.getFile(SERVER_CONFIG_PATH).getPath();
if (Files.exists(configFile)) { if (Files.exists(configFile)) {
context.getLogger().info("Trying to read server configuration from {}", SERVER_CONFIG_PATH); context.getLogger().info("Trying to read server configuration from {}", SERVER_CONFIG_PATH);
configure(MetaFileReader.Companion.read(configFile)); configure(MetaFileReader.Companion.read(configFile));

View File

@ -12,7 +12,7 @@ if (!hasProperty('mainClass')) {
mainClassName = mainClass mainClassName = mainClass
version = "0.5.2 - SNAPSHOT" version = "0.5.3"
description = "The viewer for numass data" description = "The viewer for numass data"

View File

@ -119,6 +119,7 @@ class SpectrumView : View(title = "Numass spectrum plot", icon = ImageView(dfIco
val plot: DataPlot = frame[name] as DataPlot? ?: DataPlot(name).apply { frame.add(this) } val plot: DataPlot = frame[name] as DataPlot? ?: DataPlot(name).apply { frame.add(this) }
runGoal("spectrumData[$name]") { runGoal("spectrumData[$name]") {
set.points.forEach { it.spectrum.start() }
set.points.map { point -> set.points.map { point ->
val count = point.spectrum.await().countInWindow(loChannel.toShort(), upChannel.toShort()); val count = point.spectrum.await().countInWindow(loChannel.toShort(), upChannel.toShort());
val seconds = point.length.toMillis() / 1000.0; val seconds = point.length.toMillis() / 1000.0;