Skip to content

Commit

Permalink
remove testing code and add new files
Browse files Browse the repository at this point in the history
  • Loading branch information
renanaferreira committed Jan 4, 2021
1 parent fba0a60 commit 536f363
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 78 deletions.
76 changes: 0 additions & 76 deletions blossom/src/main/java/com/ies/blossom/Testing.java

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package com.ies.blossom.controllers;

import com.ies.blossom.Testing;
import com.ies.blossom.entitys.HumMeasure;
import com.ies.blossom.entitys.HumSensor;
import com.ies.blossom.entitys.Parcel;
Expand Down
3 changes: 2 additions & 1 deletion blossom/src/main/java/com/ies/blossom/entitys/Parcel.java
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,8 @@ private Boolean plantIsGoodForParcel(Plant plant, boolean usesPh, boolean usesHu
//

private GoodPlantMeasureModel checkPlantMeasureConditions(boolean isHumidity, Plant plant, Set<Sensor> sensores) {
if(this.noMeasure(isHumidity, null)) {
sensores = this.getSensores(isHumidity, sensores);
if(this.noMeasure(isHumidity, sensores)) {
return null;
}
Double percentage = this.generalMeasurePercentage(isHumidity, plant, sensores);
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
package com.ies.blossom.model;

public class GoodPlantMeasureModel {


private double percentage;
private boolean good;

public GoodPlantMeasureModel(double percentage, boolean good){
this.percentage = percentage;
this.good = good;
}

public double getPercentage() {
return percentage;
}

public boolean isGood() {
return good;
}

}

0 comments on commit 536f363

Please sign in to comment.