Subscription (#7)
* Change update DataPoints by a subscription way * Remove unused import * small polish
This commit is contained in:
@@ -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(){
|
||||
|
||||
Reference in New Issue
Block a user