|
@@ -111,8 +111,12 @@ public class SimulationManager {
|
|
} else {
|
|
} else {
|
|
if ((production + minConsumption) >= 0) {
|
|
if ((production + minConsumption) >= 0) {
|
|
hl.setState(HolonObject.PARTIALLY_SUPPLIED);
|
|
hl.setState(HolonObject.PARTIALLY_SUPPLIED);
|
|
|
|
+ currentProduction += hl.getMinEnergy(x);
|
|
|
|
+ partiallySuppliedList.add(hl);
|
|
} else if (hl.checkIfPartiallySupplied(timeStep)) {
|
|
} else if (hl.checkIfPartiallySupplied(timeStep)) {
|
|
hl.setState(HolonObject.PARTIALLY_SUPPLIED);
|
|
hl.setState(HolonObject.PARTIALLY_SUPPLIED);
|
|
|
|
+ currentProduction += hl.getMinEnergy(x);
|
|
|
|
+ partiallySuppliedList.add(hl);
|
|
} else {
|
|
} else {
|
|
/**
|
|
/**
|
|
* Case that only some HolonObjects can be supplied
|
|
* Case that only some HolonObjects can be supplied
|