Package org.jbpm.simulation.impl.ht
Class StaffPoolImpl
- java.lang.Object
-
- org.jbpm.simulation.impl.ht.StaffPoolImpl
-
-
Constructor Summary
Constructors Constructor Description StaffPoolImpl(String processId, org.kie.api.definition.process.Node element, double simulationDuration)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description longallocate(long startTime)protected longallocate(long startTime, long duration)longallocate(long startTime, org.kie.api.definition.process.Node element)protected List<Long>findAllocatedRange(long stringTime)TimeUnitgetElementTimeUnit()doublegetResourceCost()doublegetResourceUtilization()
-
-
-
Constructor Detail
-
StaffPoolImpl
public StaffPoolImpl(String processId, org.kie.api.definition.process.Node element, double simulationDuration)
-
-
Method Detail
-
allocate
protected long allocate(long startTime, long duration)
-
allocate
public long allocate(long startTime, org.kie.api.definition.process.Node element)
-
getResourceUtilization
public double getResourceUtilization()
- Specified by:
getResourceUtilizationin interfaceStaffPool
-
getResourceCost
public double getResourceCost()
- Specified by:
getResourceCostin interfaceStaffPool
-
getElementTimeUnit
public TimeUnit getElementTimeUnit()
- Specified by:
getElementTimeUnitin interfaceStaffPool
-
-