create method
override
Creates a new Probe
of the specified type
.
Implementation
Probe create(String type) {
switch (type) {
case LOCATION:
return LocationProbe();
case ACTIVITY:
return ActivityProbe();
case WEATHER:
return WeatherProbe();
default:
return null;
}
}