Ejemplo n.º 1
0
 public static Model getModel(ModelType type, int value) {
   switch (type) {
     case RUNMODEL:
       return RunThresholdModel.getInstance(value);
     case PACEMODEL:
       return RunPaceModel.getInstance(value);
     case BIKEMODEL:
       return BikeThresholdModel.getInstance(value);
     case POWERMODEL:
       return BikePowerModel.getInstance(value);
     default:
       return null;
   }
 }
Ejemplo n.º 2
0
 public static BikePowerModel newBikePowerModel(int value) {
   return BikePowerModel.newInstance(value);
 }