From 739aa3c073030f1eab2a02019ce0496533cc9361 Mon Sep 17 00:00:00 2001 From: Sonja Happ Date: Mon, 3 Feb 2020 13:24:41 +0100 Subject: [PATCH] add signal store and signal data manager --- src/simulationmodel/signal-store.js | 23 +++++++++++++++++++++ src/simulationmodel/signals-data-manager.js | 22 ++++++++++++++++++++ 2 files changed, 45 insertions(+) create mode 100644 src/simulationmodel/signal-store.js create mode 100644 src/simulationmodel/signals-data-manager.js diff --git a/src/simulationmodel/signal-store.js b/src/simulationmodel/signal-store.js new file mode 100644 index 0000000..2924824 --- /dev/null +++ b/src/simulationmodel/signal-store.js @@ -0,0 +1,23 @@ +/** + * File: signal-store.js + * + * This file is part of VILLASweb. + * + * VILLASweb is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * VILLASweb is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with VILLASweb. If not, see . + ******************************************************************************/ + +import ArrayStore from '../common/array-store'; +import SignalsDataManager from './signals-data-manager' + +export default new ArrayStore('signals', SignalsDataManager); diff --git a/src/simulationmodel/signals-data-manager.js b/src/simulationmodel/signals-data-manager.js new file mode 100644 index 0000000..cccf994 --- /dev/null +++ b/src/simulationmodel/signals-data-manager.js @@ -0,0 +1,22 @@ +/** + * File: signals-data-manager.js + * + * This file is part of VILLASweb. + * + * VILLASweb is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * VILLASweb is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with VILLASweb. If not, see . + ******************************************************************************/ + +import RestDataManager from '../common/data-managers/rest-data-manager'; + +export default new RestDataManager('signal', '/signals');