gridsim
Class ResourceCalendar
java.lang.Object
|
+--gridsim.ResourceCalendar
- class ResourceCalendar
- extends java.lang.Object
A calender that resource needs for advance booking of resources
and also deciding standard load pattern.
Constructor Summary |
ResourceCalendar(double TimeZone,
double peakLoad,
double offpeakLoad,
double relativeHolidayLoad,
java.util.LinkedList weekends,
java.util.LinkedList holydays,
long seed)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ResourceCalendar
public ResourceCalendar(double TimeZone,
double peakLoad,
double offpeakLoad,
double relativeHolidayLoad,
java.util.LinkedList weekends,
java.util.LinkedList holydays,
long seed)
CalendarAtGivenSimTime
public java.util.Calendar CalendarAtGivenSimTime(double SimulationTime)
CalendarNow
public java.util.Calendar CalendarNow()
SimulationTime
public double SimulationTime(java.util.Calendar LocalTime)
CalendarAtGivenDate
public java.util.Calendar CalendarAtGivenDate(java.util.Date d)
IsHoliday
public boolean IsHoliday()
IsHoliday
public boolean IsHoliday(java.util.Date d)
CurrentLoad
public double CurrentLoad()