|
@@ -109,11 +109,11 @@ public class HolonBattery extends AbstractCpsObject{
|
|
|
float newStateOfCharge1 = getStateOfChargeAtTimeStep(x);
|
|
|
if(newStateOfCharge1 > stateOfCharge1)
|
|
|
{
|
|
|
- return "+" + Float.toString(newStateOfCharge1 - stateOfCharge1);
|
|
|
+ return "-" + Float.toString(newStateOfCharge1 - stateOfCharge1);
|
|
|
}
|
|
|
else if (newStateOfCharge1 < stateOfCharge1)
|
|
|
{
|
|
|
- return Float.toString(newStateOfCharge1 - stateOfCharge1); // '"-" +' not needed because negative
|
|
|
+ return "+" +Float.toString(-(newStateOfCharge1 - stateOfCharge1)); // '"-" +' not needed because negative
|
|
|
}else
|
|
|
{
|
|
|
return "0";
|