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)
           
 
Method Summary
 java.util.Calendar CalendarAtGivenDate(java.util.Date d)
           
 java.util.Calendar CalendarAtGivenSimTime(double SimulationTime)
           
 java.util.Calendar CalendarNow()
           
 double CurrentLoad()
           
 boolean IsHoliday()
           
 boolean IsHoliday(java.util.Date d)
           
 double SimulationTime(java.util.Calendar LocalTime)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResourceCalendar

public ResourceCalendar(double TimeZone,
                        double peakLoad,
                        double offpeakLoad,
                        double relativeHolidayLoad,
                        java.util.LinkedList weekends,
                        java.util.LinkedList holydays,
                        long seed)
Method Detail

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()