|
GridSim 5.0 beta | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Object Thread Sim_entity GridSimCore GridResource ARGridResource
public class ARGridResource
ARGridResource class handles all Advanced Reservation functionalities.
All the functionalities are done by its internal or private methods.
NOTE: It is important to set the allocation policy inside
ResourceCharacteristics
object into
ResourceCharacteristics.ADVANCE_RESERVATION
. In addition,
a resource's scheduler should be extending from
ARPolicy
class.
GridResource
,
GridSim
,
ResourceCharacteristics
,
AllocPolicy
,
ARPolicy
Nested Class Summary |
---|
Nested classes/interfaces inherited from class Thread |
---|
Thread.State, Thread.UncaughtExceptionHandler |
Field Summary |
---|
Fields inherited from class GridResource |
---|
policy_, policyType_, regionalGISName_, resCalendar_, resource_, SIZE |
Fields inherited from class GridSimCore |
---|
input, NETWORK_TYPE, output |
Fields inherited from class Thread |
---|
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
Constructor Summary | |
---|---|
ARGridResource(String name,
double baud_rate,
ResourceCharacteristics resource,
ResourceCalendar calendar,
ARPolicy policy)
Allocates a new GridResource object that supports Advanced Reservation. |
|
ARGridResource(String name,
Link link,
ResourceCharacteristics resource,
ResourceCalendar calendar,
ARPolicy policy)
Allocates a new GridResource object that supports Advanced Reservation. |
Method Summary | |
---|---|
protected void |
processOtherEvent(Sim_event ev)
Processes other events or services related to Advanced Reservations. |
Methods inherited from class GridResource |
---|
body, getAllocationPolicy, getResourceCharacteristics, registerOtherEntity, setRegionalGIS, setRegionalGIS |
Methods inherited from class GridSimCore |
---|
finalizeGridSimulation, getLink, getPingResult, isNetworked, ping, ping, ping, ping, pingBlockingCall, pingBlockingCall, pingBlockingCall, pingBlockingCall, send, send, send, send, send, send, setBackgroundTraffic, setBackgroundTraffic, terminateIOEntities |
Methods inherited from class Thread |
---|
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield |
Methods inherited from class Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ARGridResource(String name, double baud_rate, ResourceCharacteristics resource, ResourceCalendar calendar, ARPolicy 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 scheduler for this Grid resource. The scheduler
should be able to handle Advanced Reservations.
Exception
- This happens when one of the following scenarios occur:
AllocPolicy
,
GridSim.init(int, Calendar, boolean, String[], String[],
String)
,
GridSim.init(int, Calendar, boolean)
public ARGridResource(String name, Link link, ResourceCharacteristics resource, ResourceCalendar calendar, ARPolicy policy) throws Exception
name
- the name to be associated with this entity (as
required by Sim_entity class from simjava package)link
- the link that will be used to connect this
ARGridResource to another Entity or Router.resource
- an object of ResourceCharacteristicscalendar
- an object of ResourceCalendarpolicy
- a scheduler for this Grid resource. The scheduler
should be able to handle Advanced Reservations.
Exception
- This happens when one of the following scenarios occur:
AllocPolicy
,
GridSim.init(int, Calendar, boolean, String[], String[],
String)
,
GridSim.init(int, Calendar, boolean)
Method Detail |
---|
protected void processOtherEvent(Sim_event ev)
The services or tags available for this resource are:
processOtherEvent
in class GridResource
ev
- a Sim_event objectGridResource.processOtherEvent(Sim_event)
|
GridSim 5.0 beta | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |