Class LoadIntegrator
java.lang.Object
net.sourceforge.plantuml.gantt.ngm.math.LoadIntegrator
-
Constructor Summary
ConstructorsConstructorDescriptionLoadIntegrator(PiecewiseConstant loadFunction, Load totalLoad) Creates a newLoadIntegrator. -
Method Summary
Modifier and TypeMethodDescriptioncomputeEnd(LocalDateTime start) Computes the start date-time at which the total load has been completely consumed.
-
Constructor Details
-
LoadIntegrator
Creates a newLoadIntegrator.- Parameters:
loadFunction- the piecewise constant load function to integrate; it defines the load rate at any given timetotalLoad- the total amount of load to be consumed
-
-
Method Details
-
computeEnd
-
computeStart
Computes the start date-time at which the total load has been completely consumed.The computation is expected to traverse the successive
PiecewiseConstantsegments starting at the integration start date-time, accumulating consumed load in past until the target total load is reached.- Returns:
- the
LocalDateTimecorresponding to the start of the load integration
-