You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
540 B
16 lines
540 B
package fr.uca.iut.clfreville2.persistence;
|
|
|
|
import fr.uca.iut.clfreville2.model.SensorRegistry;
|
|
import fr.uca.iut.clfreville2.model.sensor.auto.RandomVariationStrategy;
|
|
|
|
public class StubSensorRegistryLoader implements SensorRegistryLoader {
|
|
@Override
|
|
public SensorRegistry load() {
|
|
SensorRegistry registry = new SensorRegistry();
|
|
registry.createManual("Sensor 1");
|
|
registry.createManual("Sensor 2");
|
|
registry.createAuto("Sensor 3", new RandomVariationStrategy(5));
|
|
return registry;
|
|
}
|
|
}
|