예제 #1
0
def astar(mod, *args, **dict_p) :
    threads = "4"
    if dict_p.has_key("threads"):
        threads = dict_p['threads']
        del dict_p['threads']

    tasks.run(__name__, 'com.gaocan.train.route.AStarSearch', *['/var/opt/traindata  '  , threads],  **dict_p )
예제 #2
0
def astar(mod, *args, **dict_p):
    threads = "4"
    if dict_p.has_key("threads"):
        threads = dict_p['threads']
        del dict_p['threads']

    tasks.run(__name__, 'com.gaocan.train.route.AStarSearch',
              *['/var/opt/traindata  ', threads], **dict_p)
예제 #3
0
def run_main(mod, threads = 4, points=5) :
    print threads, points
    tasks.run(__name__, 'org.lattice.G', ' '.join([str(threads), str(points)]), mx='1024m'  )