Class Broker

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

class Broker
extends gridsim.GridSim

The Grid Resource Broker: It is a GridSim entity with network. It takes user experiment and assigns Gridlets/Jobs to Grid resources depending on scheduling strategy and deadline and budget constrains.


Nested Class Summary
(package private)  class Broker.BRGridletProcessingTime
          A class to store record of earlier processing time of a given Gridlet on a given resource.
(package private)  class Broker.OrderBRGridletProcessingTime
          Comparator Interace for Sorting records of BRGridletProcessingTime in asceneding order.
(package private)  class Broker.OrderCost
           
(package private)  class Broker.OrderCostTime
           
 
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
Broker(java.lang.String name, double baud_rate)
           
 
Method Summary
 void AggregatedScheduleReport(Experiment expt, java.util.LinkedList BRList)
           
 void body()
           
(package private)  double ExperimentRemainingBudget()
          The budget available for allocation...after excluding "the budget spent + comited
 void ScheduleReport(Experiment expt, java.util.LinkedList BRList, boolean report_header_flag)
           
 void WriteAggregateScheduleReport(java.lang.String reportTitle, java.lang.String reportFileFullname, int parameter, Experiment expt, java.util.LinkedList BRList, boolean report_header_flag)
           
 void WriteScheduleReport(java.lang.String reportTitle, java.lang.String reportFileFullname, int parameter, Experiment expt, java.util.LinkedList BRList, boolean report_header_flag)
           
 
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

Broker

public Broker(java.lang.String name,
              double baud_rate)
Method Detail

ScheduleReport

public void ScheduleReport(Experiment expt,
                           java.util.LinkedList BRList,
                           boolean report_header_flag)

WriteScheduleReport

public void WriteScheduleReport(java.lang.String reportTitle,
                                java.lang.String reportFileFullname,
                                int parameter,
                                Experiment expt,
                                java.util.LinkedList BRList,
                                boolean report_header_flag)

AggregatedScheduleReport

public void AggregatedScheduleReport(Experiment expt,
                                     java.util.LinkedList BRList)

WriteAggregateScheduleReport

public void WriteAggregateScheduleReport(java.lang.String reportTitle,
                                         java.lang.String reportFileFullname,
                                         int parameter,
                                         Experiment expt,
                                         java.util.LinkedList BRList,
                                         boolean report_header_flag)

body

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

ExperimentRemainingBudget

double ExperimentRemainingBudget()
The budget available for allocation...after excluding "the budget spent + comited