public class TimeTable extends TimeTable
TimeTable.Rules
_default, holidaysId, id, name
Constructor and Description |
---|
TimeTable() |
Modifier and Type | Method and Description |
---|---|
Clock |
getClock()
Returns the associated clock
|
Date |
getCompletionTime(Date currentTime,
double duration) |
List<TimeTableRule> |
getLocalRules() |
BPSimulator |
getSimulator() |
double |
getTotalIdleTime(Date simulationStartTime,
Date simulationEndTime)
Returns total time while the resource has been idle (not working)
|
void |
loadFrom(TimeTable sourceTimeTable,
ProcessSimulationInfoType.Holidays holidayDefinitions) |
void |
setClock(Clock clock)
Sets the clock for time table
|
void |
setCompletionTime(ProcessActivity activity)
Sets task completion timestamp and resource idle time based on the timetable
|
void |
setSimulator(BPSimulator simulator) |
getHolidaysId, getId, getName, getRules, isDefault, setDefault, setHolidaysId, setId, setName, setRules
public void loadFrom(TimeTable sourceTimeTable, ProcessSimulationInfoType.Holidays holidayDefinitions) throws ProcessValidationException
ProcessValidationException
public void setCompletionTime(ProcessActivity activity) throws InterruptedException, BPSimulatorException
activity
- activity to stampInterruptedException
BPSimulatorException
public Date getCompletionTime(Date currentTime, double duration) throws InterruptedException, BPSimulatorException
public void setClock(Clock clock)
clock
- the clock to setpublic Clock getClock()
public List<TimeTableRule> getLocalRules()
public double getTotalIdleTime(Date simulationStartTime, Date simulationEndTime)
simulationStartTime
- simulationEndTime
- public BPSimulator getSimulator()
public void setSimulator(BPSimulator simulator)
simulator
- the simulator to setCopyright © 2020 Pivotal Software, Inc.. All rights reserved.