public class DefaultTimephasedWorkContainer extends Object implements TimephasedWorkContainer
Constructor and Description |
---|
DefaultTimephasedWorkContainer(ResourceAssignment assignment,
TimephasedNormaliser<TimephasedWork> normaliser,
List<TimephasedWork> data,
boolean raw)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
TimephasedWorkContainer |
applyFactor(double perDayFactor,
double totalFactor)
Create a new TimephasedWorkContainer duplicating the content of
this one and applying a scaling factor.
|
List<TimephasedWork> |
getData()
Retrieves the timephased data.
|
boolean |
hasData()
Indicates if any timephased data is present.
|
public DefaultTimephasedWorkContainer(ResourceAssignment assignment, TimephasedNormaliser<TimephasedWork> normaliser, List<TimephasedWork> data, boolean raw)
assignment
- resource assignment to which the timephased data relatesnormaliser
- normaliser used to process this datadata
- timephased dataraw
- flag indicating if this data is rawpublic List<TimephasedWork> getData()
TimephasedWorkContainer
getData
in interface TimephasedWorkContainer
public boolean hasData()
hasData
in interface TimephasedWorkContainer
public TimephasedWorkContainer applyFactor(double perDayFactor, double totalFactor)
TimephasedWorkContainer
applyFactor
in interface TimephasedWorkContainer
perDayFactor
- per day factortotalFactor
- total factorCopyright © 2000–2024 Packwood Software. All rights reserved.