|
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 GridSim GridUser
public class 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.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class Thread |
---|
Thread.State, Thread.UncaughtExceptionHandler |
Field Summary | |
---|---|
protected int |
gisID_
A regional GIS entity ID that is needed for communication |
Fields inherited from class GridSim |
---|
GRIDSIM_VERSION_STRING, PAUSE |
Fields inherited from class GridSimCore |
---|
input, NETWORK_TYPE, output |
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 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 |
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 one of the inputs 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 5.0 beta | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |