gridsim
Class GridSimShutdown

java.lang.Object
  |
  +--java.lang.Thread
        |
        +--eduni.simjava.Sim_entity
              |
              +--gridsim.GridSim
                    |
                    +--gridsim.GridSimShutdown
All Implemented Interfaces:
java.lang.Runnable

class GridSimShutdown
extends GridSim

This class wraps up the simulation by signaling the END to the entities. It sends END_OF_SIMULATION message to various GridSim entities on receiving END_OF_SIMULATION from all User entities.


Field Summary
 
Fields inherited from class gridsim.GridSim
input, output, rand, SimulationStartDate
 
Fields inherited from class eduni.simjava.Sim_entity
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
GridSimShutdown(java.lang.String name, int no_of_users, java.lang.String ReportWriterName)
           
 
Method Summary
 void body()
           
 void ShutdownResources()
          Discover resources and Send END_OF_SIMULATION message to them.
 
Methods inherited from class gridsim.GridSim
Clock, finalize, GetEntityId, GetEntityName, GetEntityName, GetGridResourceList, GetResourceCharacteristics, GetResourceDynamicInformation, GetSimulationStartDate, GridInformationServiceEntityId, GridletCancel, GridletReceive, GridletSubmit, GridSimHold, GridSimShutdownEntityId, GridStatisticsEntityId, Init, IsNetworked, ReceiveEventObject, ReceiveEventObject, RecordStatistics, RecordStatistics, RecordStatistics, RecordStatistics, Send, Send, Send, Send, Send, Send, ShutdownGridStatisticsEntity, ShutdownUserEntity, Start, Stop, TerminateInputOutputEntities
 
Methods inherited from class eduni.simjava.Sim_entity
add_param, add_port, get_id, get_name, get_port, get_port, run, send_on, set_invisible, sim_cancel, sim_current, sim_get_next, sim_get_next, sim_hold_for, sim_hold, sim_putback, sim_schedule, sim_schedule, sim_schedule, sim_schedule, sim_schedule, sim_schedule, sim_select, sim_trace, sim_wait_for, sim_wait, sim_waiting, sim_waiting
 
Methods inherited from class java.lang.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 java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

GridSimShutdown

public GridSimShutdown(java.lang.String name,
                       int no_of_users,
                       java.lang.String ReportWriterName)
Method Detail

ShutdownResources

public void ShutdownResources()
Discover resources and Send END_OF_SIMULATION message to them.


body

public void body()
Overrides:
body in class eduni.simjava.Sim_entity