|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ObjectThread
eduni.simjava.Sim_entity
gridsim.GridSim
gridbroker.ReportWriter
ReportWriter class is a user-defined and optional entity. It is meant for creating a report at the end of each simulation by interacting with the gridsim.Statistics entity. If the user does not want to create a report, then he/she can pass null as the name of the ReportWriter entity. Note that users can chose any name for this entity and for the class name since all entities are identified by their name defined at runtime.
Field Summary |
Fields inherited from class gridsim.GridSim |
input, output, rand, SimulationStartDate |
Fields inherited from class eduni.simjava.Sim_entity |
|
Fields inherited from class Thread |
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
Constructor Summary | |
ReportWriter(String entityName,
int numUser,
int numResource,
String reportFilename,
String[] statCategory,
boolean newGridReportFlag,
double[] colValue,
boolean matrixReportNextRowFlag,
double rowValue)
Allocates a new ReportWriter object |
Method Summary | |
void |
body()
A method that waits until the end of a simulation to be able to generate a report |
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 |
Constructor Detail |
public ReportWriter(String entityName, int numUser, int numResource, String reportFilename, String[] statCategory, boolean newGridReportFlag, double[] colValue, boolean matrixReportNextRowFlag, double rowValue) throws Exception
entityName
- the name to be associated with this entitynumUser
- the number of usersnumResource
- the number of resourcesreportFilename
- the report file namestatCategory
- the statistics categorynewGridReportFlag
- a flag to denote the start of a new
simulation with a new scenariocolValue
- the values to be printed for column labelmatrixReportNextRowFlag
- if it is true, then writes
the report to the next line, otherwise it appends to the
previous rowrowValue
- the value to be printed at the start when
matrix_report_new_row_flag is true
Exception
- This happens when creating this entity before
initializing GridSim package or this entity name is
null or emptyGridSim.init(int, Calendar, boolean, String[], String[],
String)
Method Detail |
public void body()
body
in class Sim_entity
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |