|
GridSim v3.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Objectgridsim.ResourceCalendar
GridSim ResourceCalendar class implements a mechanism to support modeling a local load on Grid resources that may vary according to the time zone, time, weekends and holidays.
| Constructor Summary | |
ResourceCalendar(double timeZone,
double peakLoad,
double offPeakLoad,
double relativeHolidayLoad,
LinkedList weekendList,
LinkedList holidayList,
long seed)
Allocates a new ResourceCalendar object |
|
| Method Summary | |
Calendar |
CalendarAtGivenDate(Date date)
Deprecated. As of GridSim 2.1, replaced by getCalendarAtGivenDate(Date) |
Calendar |
CalendarAtGivenSimTime(double simulationTime)
Deprecated. As of GridSim 2.1, replaced by getCalendarAtSimulationTime(double) |
Calendar |
CalendarNow()
Deprecated. As of GridSim 2.1, replaced by getCurrentCalendar() |
double |
CurrentLoad()
Deprecated. As of GridSim 2.1, replaced by getCurrentLoad() |
Calendar |
getCalendarAtGivenDate(Date date)
Gets a Calendar object at the specified date |
Calendar |
getCalendarAtSimulationTime(double simulationTime)
Gets a Calendar object for a specified simulation time |
Calendar |
getCurrentCalendar()
Gets the current Calendar object (based on the simulation clock) |
double |
getCurrentLoad()
Gets the current load for the current simulation time |
double |
getSimulationTime(Calendar localTime)
Gets the current simulation time |
boolean |
isHoliday()
Checks whether the current simulation time is a holiday or not |
boolean |
IsHoliday()
Deprecated. As of GridSim 2.1, replaced by isHoliday() |
boolean |
isHoliday(Date date)
Checks whether the given date is a holiday or not |
boolean |
IsHoliday(Date date)
Deprecated. As of GridSim 2.1, replaced by isHoliday(Date) |
double |
SimulationTime(Calendar localTime)
Deprecated. As of GridSim 2.1, replaced by getSimulationTime(Calendar) |
| Methods inherited from class Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ResourceCalendar(double timeZone,
double peakLoad,
double offPeakLoad,
double relativeHolidayLoad,
LinkedList weekendList,
LinkedList holidayList,
long seed)
timeZone - time zonepeakLoad - the load during peak timeoffPeakLoad - the load during off peak timerelativeHolidayLoad - the load during holidaysweekendList - a list of Integer numbers for weekendsholidayList - a list of Integer numbers for holidaysseed - the initial seed| Method Detail |
public Calendar CalendarAtGivenSimTime(double simulationTime)
throws NullPointerException
getCalendarAtSimulationTime(double)
simulationTime - the simulation time
NullPointerException - if GridSim.init() has not been
called beforeGridSim.init(int, Calendar, boolean, String[], String[],
String)
public Calendar getCalendarAtSimulationTime(double simulationTime)
throws NullPointerException
simulationTime - the simulation time
NullPointerException - if GridSim.init() has not been
called beforeGridSim.init(int, Calendar, boolean, String[], String[],
String)
public Calendar CalendarNow()
throws NullPointerException
getCurrentCalendar()
NullPointerException - if GridSim.init() has not been
called beforeGridSim.init(int, Calendar, boolean, String[], String[],
String),
Sim_system.clock()
public Calendar getCurrentCalendar()
throws NullPointerException
NullPointerException - if GridSim.init() has not been
called beforeGridSim.init(int, Calendar, boolean, String[], String[],
String),
Sim_system.clock()
public double SimulationTime(Calendar localTime)
throws NullPointerException
getSimulationTime(Calendar)
localTime - a Calendar object
NullPointerException - if localTime is null
or GridSim.init() has not been
called beforeGridSim.init(int, Calendar, boolean, String[], String[],
String)
public double getSimulationTime(Calendar localTime)
throws NullPointerException
localTime - a Calendar object
NullPointerException - if localTime is null
or GridSim.init() has not been
called beforeGridSim.init(int, Calendar, boolean, String[], String[],
String)public Calendar CalendarAtGivenDate(Date date)
getCalendarAtGivenDate(Date)
date - the Date object
public Calendar getCalendarAtGivenDate(Date date)
date - the Date object
public boolean IsHoliday()
throws NullPointerException
isHoliday()
NullPointerException - if GridSim.init() has not been
called beforeGridSim.init(int, Calendar, boolean, String[], String[],
String)
public boolean isHoliday()
throws NullPointerException
NullPointerException - if GridSim.init() has not been
called beforeGridSim.init(int, Calendar, boolean, String[], String[],
String)public boolean IsHoliday(Date date)
isHoliday(Date)
date - the Date object
public boolean isHoliday(Date date)
date - the Date object
public double CurrentLoad()
throws NullPointerException
getCurrentLoad()
NullPointerException - if GridSim.init() has not been
called beforeGridSim.init(int, Calendar, boolean, String[], String[],
String)
public double getCurrentLoad()
throws NullPointerException
NullPointerException - if GridSim.init() has not been
called beforeGridSim.init(int, Calendar, boolean, String[], String[],
String)
|
GridSim v3.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||