1
0

Subscription (#7)

* Change update DataPoints by a subscription way

* Remove unused import

* small polish
This commit is contained in:
Rémi Heredero
2023-05-26 12:46:35 +02:00
committed by GitHub
parent 9fdcda2a00
commit d58097d723
6 changed files with 32 additions and 18 deletions

View File

@@ -2,7 +2,6 @@ package ch.hevs.isi.field;
import ch.hevs.isi.core.DataPoint;
import ch.hevs.isi.core.DataPointListener;
import ch.hevs.isi.core.FloatDataPoint;
public class FieldConnector implements DataPointListener {
@@ -10,6 +9,8 @@ public class FieldConnector implements DataPointListener {
private FieldConnector(){
// Subscribe to the update of DataPoints
DataPointListener.subscribeUpdate(this);
}
public static FieldConnector getMySelf(){