|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Object | +--Thread | +--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.
GridSim
,
ResourceCharacteristics
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 |
Method Summary | |
void |
body()
A method that registers a resource to be scheduled, then processes internal and external events. |
void |
SpaceShare_AllocatePEtoGridlet(Gridlet gl)
Deprecated. As of GridSim 2.1, replaced by spaceShared_AllocatePEtoGridlet(Gridlet) |
void |
spaceShared_AllocatePEtoGridlet(Gridlet gl)
Allocates one of the PEs to Gridlet for execution and schedules an internal event to be delivered at completion time. |
Methods inherited from class eduni.simjava.Sim_entity |
add_param, add_port, get_id, get_name, get_port, get_port, run, send_on, set_invisible, sim_cancel, sim_current, sim_get_next, sim_get_next, sim_hold_for, sim_hold, sim_putback, sim_schedule, sim_schedule, sim_schedule, sim_schedule, sim_schedule, sim_schedule, sim_select, sim_trace, 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 |
clone, 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
- communication 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 creating this entity before
initializing GridSim package or this entity name is
null or emptyGridSim.Init(int, Calendar, boolean, String[], String[],
String)
Method Detail |
public void body()
The services available to other GridSim entities are:
body
in class eduni.simjava.Sim_entity
public void SpaceShare_AllocatePEtoGridlet(Gridlet gl)
spaceShared_AllocatePEtoGridlet(Gridlet)
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 |