/** * This method returns the capacity as set in the xml defining the network. Be aware * that this capacity is not normalized in time, it depends on the period set * in the network file (the capperiod attribute). * @param time - the current time * @return the capacity per network's capperiod timestep */ @Override public synchronized double getCapacity(final double time) { return getFlowCapacityPerSec(time) * getCapacityPeriod(); }
private synchronized void recalcFlowCapacity() { double baseFlowCapacityPerSec = this.getCapacity() / getCapacityPeriod(); variableFlowCapacity.recalc(changeEvents, TimeVariantAttribute.FLOW_CAPACITY_GETTER, baseFlowCapacityPerSec); }