Commit 1f92d3c0 authored by Allvey's avatar Allvey

周期更新路网-注释

parent de3f49ae
......@@ -32,8 +32,10 @@ class Dispatcher:
self.logger = get_logger("zxt.dispatcher")
self.redispatch_active = active
# if self.redispatch_active:
self.logger.info("======================================= 更新路网开始 =======================================")
self.topo = Topo()
self.topo.generate_topo_graph()
self.logger.info("======================================= 更新路网结束 =======================================")
# else:
# self.topo = None
self.submission = DispatchSubmission(dump, excavator, truck, self.topo)
......@@ -49,7 +51,9 @@ class Dispatcher:
self.truck.truck_para_period_update(self.dump, self.excavator)
self.truck.state_period_update()
# if self.redispatch_active:
self.logger.info("======================================= 更新路网开始 =======================================")
self.topo.generate_topo_graph()
self.logger.info("======================================= 更新路网结束 =======================================")
def group_generate(self):
"""
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment