|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ObjectThread
eduni.simjava.Sim_entity
gridsim.GridSim
gridsim.GridResource
GridSim GridResource extends the gridsim.GridSim class and gains communication and concurrent entity capability. An instance of this class stimulates a resource with properties defined in an object of gridsim.ResourceCharacteristics class.
The process of creating a Grid resource is as follows:
A resource having a single machine with one or more PEs (Processing Elements) is managed as a time-shared system using a round-robin scheduling algorithm. A resource with multiple machines is treated as a distributed memory cluster and is managed as a space-shared system using FCFS (First Come Firt Serve) scheduling policy or its variants.
Since GridSim 2.2, other scheduling algorithm can be added externally (without compiling or replacing the existing GridSim JAR file) into a Grid resource. For more information, look on tutorial page or AllocPolicy class.
GridSim
,
ResourceCharacteristics
,
AllocPolicy
Field Summary |
Fields inherited from class gridsim.GridSim |
input, output, rand, SimulationStartDate |
Fields inherited from class eduni.simjava.Sim_entity |
|
Fields inherited from class Thread |
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
Constructor Summary | |
GridResource(String name,
double baud_rate,
long seed,
ResourceCharacteristics resource,
double peakLoad,
double offPeakLoad,
double relativeHolidayLoad,
LinkedList weekends,
LinkedList holidays)
Allocates a new GridResource object |
|
GridResource(String name,
double baud_rate,
ResourceCharacteristics resource,
ResourceCalendar calendar)
Allocates a new GridResource object |
|
GridResource(String name,
double baud_rate,
ResourceCharacteristics resource,
ResourceCalendar calendar,
AllocPolicy policy)
Allocates a new GridResource object |
Method Summary | |
void |
body()
Handles external events that are coming to this GridResource entity. |
void |
SpaceShare_AllocatePEtoGridlet(Gridlet gl)
Deprecated. As of GridSim 2.2, this method is OBSOLETE. |
void |
spaceShared_AllocatePEtoGridlet(Gridlet gl)
Deprecated. As of GridSim 2.2, this method is OBSOLETE. |
Methods inherited from class eduni.simjava.Sim_entity |
add_generator, add_param, add_port, clone, get_id, get_name, get_port, get_port, get_stat, run, send_on, set_invisible, set_stat, sim_cancel, sim_completed, sim_current, sim_get_next, sim_get_next, sim_hold_for, sim_hold, sim_pause_for, sim_pause_for, sim_pause_until, sim_pause_until, sim_pause, sim_process_for, sim_process_for, sim_process_until, sim_process_until, sim_process, sim_putback, sim_schedule, sim_schedule, sim_schedule, sim_schedule, sim_schedule, sim_schedule, sim_select, sim_trace, sim_wait_for, sim_wait_for, sim_wait_for, sim_wait, sim_waiting, sim_waiting |
Methods inherited from class Thread |
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, sleep, sleep, start, stop, stop, suspend, toString, yield |
Methods inherited from class Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public GridResource(String name, double baud_rate, long seed, ResourceCharacteristics resource, double peakLoad, double offPeakLoad, double relativeHolidayLoad, LinkedList weekends, LinkedList holidays) throws Exception
name
- the name to be associated with this entity (as
required by Sim_entity class from simjava package)baud_rate
- network communication or bandwidth speedseed
- the initial seedresource
- an object of ResourceCharacteristicspeakLoad
- the load during peak timesoffPeakLoad
- the load during off peak timesrelativeHolidayLoad
- the load during holiday timesweekends
- a linked-list contains the weekend daysholidays
- a linked-list contains the public holidays
Exception
- This happens when one of the following scenarios occur:
GridSim.init(int, Calendar, boolean, String[], String[],
String)
public GridResource(String name, double baud_rate, ResourceCharacteristics resource, ResourceCalendar calendar) throws Exception
name
- the name to be associated with this entity (as
required by Sim_entity class from simjava package)baud_rate
- network communication or bandwidth speedresource
- an object of ResourceCharacteristicscalendar
- an object of ResourceCalendar
Exception
- This happens when one of the following scenarios occur:
GridSim.init(int, Calendar, boolean, String[], String[],
String)
public GridResource(String name, double baud_rate, ResourceCharacteristics resource, ResourceCalendar calendar, AllocPolicy policy) throws Exception
name
- the name to be associated with this entity (as
required by Sim_entity class from simjava package)baud_rate
- network communication or bandwidth speedresource
- an object of ResourceCharacteristicscalendar
- an object of ResourceCalendarpolicy
- a scheduling policy for this Grid resource. If no
scheduling policy is defined, the default one is
SpaceShared
Exception
- This happens when one of the following scenarios occur:
GridSim.init(int, Calendar, boolean, String[], String[],
String)
,
AllocPolicy
Method Detail |
public void body()
The services available to other GridSim entities are:
body
in class Sim_entity
public void SpaceShare_AllocatePEtoGridlet(Gridlet gl)
gl
- a Gridlet to be processedpublic void spaceShared_AllocatePEtoGridlet(Gridlet gl)
gl
- a Gridlet to be processed
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |