jBPM Simulation 6.1.0.Beta3

org.jbpm.simulation.impl.ht
Class StaffPoolImpl

java.lang.Object
  extended by org.jbpm.simulation.impl.ht.StaffPoolImpl
All Implemented Interfaces:
StaffPool

public class StaffPoolImpl
extends Object
implements StaffPool


Constructor Summary
StaffPoolImpl(String processId, org.kie.api.definition.process.Node element, double simulationDuration)
           
 
Method Summary
 long allocate(long startTime)
           
protected  long allocate(long startTime, long duration)
           
 long allocate(long startTime, org.kie.api.definition.process.Node element)
           
protected  List<Long> findAllocatedRange(long stringTime)
           
 TimeUnit getElementTimeUnit()
           
 double getResourceCost()
           
 double getResourceUtilization()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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)
Specified by:
allocate in interface StaffPool

allocate

public long allocate(long startTime,
                     org.kie.api.definition.process.Node element)
Specified by:
allocate in interface StaffPool

getResourceUtilization

public double getResourceUtilization()
Specified by:
getResourceUtilization in interface StaffPool

getResourceCost

public double getResourceCost()
Specified by:
getResourceCost in interface StaffPool

getElementTimeUnit

public TimeUnit getElementTimeUnit()
Specified by:
getElementTimeUnit in interface StaffPool

findAllocatedRange

protected List<Long> findAllocatedRange(long stringTime)

jBPM Simulation 6.1.0.Beta3

Copyright © 2001-2014 JBoss by Red Hat. All Rights Reserved.