|
GridSim v3.3 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ObjectThread
eduni.simjava.Sim_entity
gridsim.GridSimCore
gridsim.GridSim
gridsim.GridUser
GridUser class acts as a medium to communicate with
AbstractGIS
entity. For more details on how to use
this class, please look at examples/RegionalGIS directory.
Field Summary | |
protected int |
gisID_
A regional GIS entity ID that is needed for communication |
Fields inherited from class gridsim.GridSim |
rand, SimulationStartDate |
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 | |
GridUser(String name,
Link link)
Creates a GridUser object |
|
GridUser(String name,
Link link,
String regionalGIS)
Creates a GridUser object |
Method Summary | |
void |
finishSimulation()
Tells the GridSim that this entity finishes its simulation / experiment. |
void |
finishSimulation(double time)
Tells the GridSim that this entity finishes its simulation / experiment. |
Object[] |
getGlobalResourceARList()
Gets a list of global resources that support advance reservation. |
Object[] |
getGlobalResourceList()
Gets a list of global resources. |
protected Object[] |
getList(int eventTag)
Gets a list of other request to the regional GIS entity as defined in gisID_ . |
protected Object[] |
getList(int eventTag,
int otherRegionalID)
Gets a list of other request to the given regional GIS entity ID. |
Object[] |
getLocalResourceARList()
Gets a list of local resources that support advance reservation from a regional GIS entity, defined in gisID_ . |
Object[] |
getLocalResourceList()
Gets a list of local resources from a regional GIS entity, defined in gisID_ . |
int |
getRegionalGISId()
Gets the regional GIS entity ID |
Object[] |
getRegionalGISList()
Gets a list of all regional GIS entity IDs |
String |
getRegionalGISName()
Gets the regional GIS entity name |
boolean |
setRegionalGIS(AbstractGIS gis)
Sets a regional GIS for this entity to communicate with |
boolean |
setRegionalGIS(String gisName)
Sets a regional GIS entity name for this entity to communicate with |
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, body, 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 int gisID_
Constructor Detail |
public GridUser(String name, Link link) throws Exception
name
- this entity namelink
- a network link connecting this entity
Exception
- happens if either name or link is emptypublic GridUser(String name, Link link, String regionalGIS) throws Exception
name
- this entity namelink
- a network link connecting this entityregionalGIS
- a regional GridInformationService (GIS) entity name
Exception
- happens if either name or link is emptyMethod Detail |
public String getRegionalGISName()
public void finishSimulation()
public void finishSimulation(double time)
time
- expected finish timepublic int getRegionalGISId()
public boolean setRegionalGIS(String gisName)
gisName
- a regional GIS entity name
public boolean setRegionalGIS(AbstractGIS gis)
gis
- a regional GIS entity
public Object[] getRegionalGISList()
public Object[] getLocalResourceARList()
gisID_
.
public Object[] getGlobalResourceARList()
public Object[] getLocalResourceList()
gisID_
.
public Object[] getGlobalResourceList()
protected Object[] getList(int eventTag)
gisID_
. Type of request is defined in the tag name.
eventTag
- an event tag name or type of request
protected Object[] getList(int eventTag, int otherRegionalID)
eventTag
- an event tag name or type of requestotherRegionalID
- a regional GIS or destination ID
|
GridSim v3.3 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |