Example #1
0
 def __init__(self, **kwargs):
     BaseGraph.__init__(self, **kwargs)
     self.base = BaseModel(
         tn='cq_all',
         # location='local2',
         # dbname='data'
     )
     pass
Example #2
0
 def __init__(self, **kwargs):
     BaseGraph.__init__(self, **kwargs)
     self.base = BaseModel(
         tn='cq_api',
         # tn='relationsDetail.1.0',
         # location='gcxy',
         # dbname='data'
     )
     pass
Example #3
0
def run_graph_mode():
    graph = BaseGraph(number_of_servers, p)
    print graph.get_number_of_edges()
    logger = GraphLogger(graph, sample_rate, i)
    entrance_gen = create_generator(enter_lambda, enter_dist)
    limit_gen = create_generator(job_limit_lambda, job_limit_dist)
    process_gen = create_generator(job_process_time_lambda, job_process_time_dist)
    server_chooser = GraphChooser(graph)
    cv_gen = LinearCVGenerator(number_of_servers, 0, 1)
    handler = GraphEventHandler(logger, entrance_gen, limit_gen, process_gen, cv_gen, server_chooser)
    handler.handle_events()
    logger.draw_samples_graph1(p)
    logger.draw_samples_graph2(p)
Example #4
0
def run_graph_mode():
    graph = BaseGraph(number_of_servers, p)
    print graph.get_number_of_edges()
    logger = GraphLogger(graph, sample_rate, i)
    entrance_gen = create_generator(enter_lambda, enter_dist)
    limit_gen = create_generator(job_limit_lambda, job_limit_dist)
    process_gen = create_generator(job_process_time_lambda,
                                   job_process_time_dist)
    server_chooser = GraphChooser(graph)
    cv_gen = LinearCVGenerator(number_of_servers, 0, 1)
    handler = GraphEventHandler(logger, entrance_gen, limit_gen, process_gen,
                                cv_gen, server_chooser)
    handler.handle_events()
    logger.draw_samples_graph1(p)
    logger.draw_samples_graph2(p)
Example #5
0
 def __init__(self):
     BaseGraph.__init__(self)
     self.base = BaseModel(tn='重庆裁决文书(内容)')
     pass