| |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.lang.Thread | +--eduni.simjava.Sim_entity | +--gridsim.GridSim
The top most GridSim class that all GridSim entities need to extend
to become concurrent entities. They automatically inherit all
properties of entity which extends thread class. All entities
extending GridSim should defined a body() method inwhich
entitity actions (e.g., raising, processing, and receiveing events to communicate
with other entities) are performed.
When the execution of an entity is initiated by Start method,
the method body() is automatically invoked by entity thread.
Entities should exit body() method when there are no more
interested in handling events.
Field Summary | |
static GridSimRandom | rand |
static Date | SimulationStartDate |
Fields inherited from class java.lang.Thread |
MIN_PRIORITY, NORM_PRIORITY, MAX_PRIORITY |
Constructor Summary | |
GridSim(String name) Entity WITHOUT NETWORK communication channels: "input" and "output" Sim_port. | |
GridSim(String name, double baud_rate) Entitity with NETWORK communication channels: "input" and "output" Sim_port |
Method Summary | |
static double | Clock() Get Current Simulation Time. |
static int | GetEntityId(String EntityName) It returns ID (int value) of the Entity given its name |
static String | GetEntityName(int EntityID) Returns name of the entity given its Entity ID |
LinkedList | GetGridResourceList() It send sends a request to GIS entity to get the list of Grid resources. |
static Date | GetSimulationStartDate() |
static int | GridInformationServiceEntityId() It returns ID of the Entity named "GridInformationService" |
void | GridSimHold(double duration) Causes the entity to hold for duration units of simulation time. |
static int | GridSimShutdownEntityId() It returns ID of Entity named "GridSimShutdown" |
static int | GridStatisticsEntityId() It returns ID of the Entity named "GridStatistics" |
static void | Init(int no_of_users, Calendar cal, boolean traceFlag, String[] exclude_from_file, String[] exclude_from_processing, String ReportWriterName) Initialise GridSim Parameters. |
boolean | IsNetworked() Check type of entity |
void | RecordStatistics(String category, double data) |
void | RecordStatistics(String category, int data) |
void | RecordStatistics(String category, String data) |
void | RecordStatistics(String category, boolean data) |
static void | Start() Start the execution of GridSim simulation. |
static void | Stop() Stop Grid Simulation. |
Methods inherited from class eduni.simjava.Sim_entity |
set_invisible, get_name, get_id, get_port, get_port, add_port, add_param, body, sim_hold, sim_hold_for, sim_trace, sim_schedule, sim_schedule, sim_schedule, sim_schedule, sim_schedule, sim_schedule, sim_wait, sim_waiting, sim_waiting, sim_select, sim_cancel, sim_wait_for, sim_putback, sim_get_next, sim_get_next, sim_current, send_on, run |
Methods inherited from class java.lang.Thread |
currentThread, yield, sleep, sleep, start, stop, stop, interrupt, interrupted, isInterrupted, destroy, isAlive, suspend, resume, setPriority, getPriority, setName, getName, getThreadGroup, activeCount, enumerate, countStackFrames, join, join, join, dumpStack, setDaemon, isDaemon, checkAccess, toString, getContextClassLoader, setContextClassLoader |
Methods inherited from class java.lang.Object |
getClass, hashCode, equals, notify, notifyAll, wait, wait, wait |
Field Detail |
public static GridSimRandom rand
public static Date SimulationStartDate
Constructor Detail |
public GridSim(String name)
public GridSim(String name, double baud_rate)
Method Detail |
public static double Clock()
public static int GetEntityId(String EntityName)
public static String GetEntityName(int EntityID)
public LinkedList GetGridResourceList()
public static Date GetSimulationStartDate()
public static int GridInformationServiceEntityId()
public void GridSimHold(double duration)
public static int GridSimShutdownEntityId()
public static int GridStatisticsEntityId()
public static void Init(int no_of_users, Calendar cal, boolean traceFlag, String[] exclude_from_file, String[] exclude_from_processing, String ReportWriterName)
public boolean IsNetworked()
public void RecordStatistics(String category, double data)
public void RecordStatistics(String category, int data)
public void RecordStatistics(String category, String data)
public void RecordStatistics(String category, boolean data)
public static void Start()
public static void Stop()
Association Links |
to Class eduni.simjava.Sim_port
to Class java.util.Date
to Class gridsim.GridSimRandom
| |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |