|
GridSim v3.2 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
ObjectThread
eduni.simjava.Sim_entity
gridsim.GridSimCore
gridsim.index.AbstractGIS
gridsim.index.RegionalGIS
RegionalGIS is a simple regional GridInformationService (GIS) entity that performs basic functionalities, such as storing a list of local resources, and asking other regional GIS entities for resources.
If you want to implement other complex functionalities, you need to extend
this class and to override processOtherEvent(Sim_event)
and/or registerOtherEntity() method.
| Field Summary | |
protected Integer |
myID_
This entity ID in Integer object. |
| Fields inherited from class gridsim.index.AbstractGIS |
INQUIRY_GLOBAL_RESOURCE_AR_LIST, INQUIRY_GLOBAL_RESOURCE_LIST, INQUIRY_LOCAL_RESOURCE_AR_LIST, INQUIRY_LOCAL_RESOURCE_LIST, INQUIRY_REGIONAL_GIS, REGISTER_REGIONAL_GIS, REGISTER_RESOURCE, REGISTER_RESOURCE_AR, SIZE, systemGIS_ |
| Fields inherited from class gridsim.GridSimCore |
input, output |
| Fields inherited from class eduni.simjava.Sim_entity |
|
| Fields inherited from class Thread |
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
| Constructor Summary | |
RegionalGIS(String name,
Link link)
Creates a new regional GIS entity |
|
| Method Summary | |
protected boolean |
getListFromOtherRegional(List regionalList,
int eventTag,
List list)
Get a list of IDs specified in the eventTag from other regional GIS |
protected void |
processEndSimulation()
Informs the registered entities regarding to the end of a simulation. |
protected void |
processGlobalResourceARList(Sim_event ev)
Process an incoming request about getting a list of resource IDs supporting Advanced Reservation that are registered in other regional GIS entities. |
protected void |
processGlobalResourceList(Sim_event ev)
Process an incoming request about getting a list of resource IDs that are registered in other regional GIS entities. |
protected void |
processInquiryRegionalGIS(Sim_event ev)
Process an incoming request about getting a list of regional GIS IDs (including this entity ID), that are registered to the GridInformationService or system GIS. |
protected void |
processOtherEvent(Sim_event ev)
Process an incoming request that uses a user-defined tag. |
protected void |
processRegisterResource(Sim_event ev)
Process a registration request from a resource entity to this regional GIS entity. |
protected void |
processRegisterResourceAR(Sim_event ev)
Process a registration request from a resource entity supporting Advanced Reservation to this regional GIS entity. |
protected void |
processResourceARList(Sim_event ev)
Process an incoming request about getting a list of resource IDs supporting Advanced Reservation that are registered to this regional GIS entity. |
protected void |
processResourceList(Sim_event ev)
Process an incoming request about getting a list of resource IDs that are registered to this regional GIS entity. |
protected void |
registerOtherEntity()
Registers other information to GridInformationService or
system GIS. |
protected boolean |
requestFromSystemGIS(int eventTag,
List list)
Asks from GridInformationService or system GIS about
a specific event or request. |
protected boolean |
sendListToSender(int senderID,
int tag,
List list)
Sends a list to sender |
protected boolean |
storeRegistrationID(Sim_event ev,
List list)
Stores the incoming registration ID into the given list. |
| Methods inherited from class gridsim.index.AbstractGIS |
body, notifySystemGIS |
| Methods inherited from class gridsim.GridSimCore |
finalize, finalizeGridSimulation, getLink, getPingResult, isNetworked, IsNetworked, ping, ping, ping, ping, pingBlockingCall, pingBlockingCall, pingBlockingCall, pingBlockingCall, send, Send, send, Send, send, Send, send, Send, send, Send, send, Send, setBackgroundTraffic, setBackgroundTraffic, TerminateInputOutputEntities, terminateIOEntities |
| 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 |
| Field Detail |
protected Integer myID_
| Constructor Detail |
public RegionalGIS(String name,
Link link)
throws Exception
name - this regional GIS namelink - a network link to this entity
Exception - This happens when creating this entity before
initializing GridSim package or this entity name is
null or empty| Method Detail |
protected boolean storeRegistrationID(Sim_event ev,
List list)
ev - a new Sim_event object or incoming registration requestlist - a list storing the registration IDs
protected void processRegisterResourceAR(Sim_event ev)
processRegisterResourceAR in class AbstractGISev - a Sim_event object (or a registration request)protected void processRegisterResource(Sim_event ev)
processRegisterResource in class AbstractGISev - a Sim_event object (or a registration request)protected void processOtherEvent(Sim_event ev)
processOtherEvent in class AbstractGISev - a Sim_event object (or an incoming event or request)protected void processInquiryRegionalGIS(Sim_event ev)
GridInformationService or system GIS.
processInquiryRegionalGIS in class AbstractGISev - a Sim_event object (or an incoming event or request)protected void processGlobalResourceARList(Sim_event ev)
processGlobalResourceARList in class AbstractGISev - a Sim_event object (or an incoming event or request)protected void processGlobalResourceList(Sim_event ev)
processGlobalResourceList in class AbstractGISev - a Sim_event object (or an incoming event or request)
protected boolean getListFromOtherRegional(List regionalList,
int eventTag,
List list)
regionalList - a list of regional GIS IDseventTag - an event tag or type of requestlist - a list storing the results
protected boolean requestFromSystemGIS(int eventTag,
List list)
GridInformationService or system GIS about
a specific event or request.
eventTag - an event tag or type of requestlist - a list storing the results
protected boolean sendListToSender(int senderID,
int tag,
List list)
senderID - the sender IDtag - an event taglist - a list to be sent to
protected void processResourceList(Sim_event ev)
processResourceList in class AbstractGISev - a Sim_event object (or an incoming event or request)protected void processResourceARList(Sim_event ev)
processResourceARList in class AbstractGISev - a Sim_event object (or an incoming event or request)protected void registerOtherEntity()
GridInformationService or
system GIS.
registerOtherEntity in class AbstractGISprotected void processEndSimulation()
processEndSimulation in class AbstractGIS
|
GridSim v3.2 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||