Exemplo n.º 1
0
def initialise(max_time=5, create_vars=True):
    # Must call create object directly due to stack issues
    if create_vars:
        creator.create_objects(['T', 'T1', 'T2', 'T3', 'T4', 'T5'], VARIABLE)
        creator.create_objects(['_'], VARIABLE)

    ENGINE.set_params(max_time=max_time)
Exemplo n.º 2
0
def create_variables(*args, return_obj=False):
    ret = creator.create_objects(args, VARIABLE, return_obj)

    if return_obj:
        return ret
Exemplo n.º 3
0
def create_fluents(*args, return_obj=False):
    ret = creator.create_objects(args, FLUENT, return_obj)

    if return_obj:
        return ret
Exemplo n.º 4
0
def create_facts(*args, return_obj=False):
    ret = creator.create_objects(args, FACT, return_obj)

    if return_obj:
        return ret
Exemplo n.º 5
0
def create_events(*args, return_obj=False):
    ret = creator.create_objects(args, EVENT, return_obj)

    if return_obj:
        return ret
Exemplo n.º 6
0
def create_actions(*args, return_obj=False):
    ret = creator.create_objects(args, ACTION, return_obj)

    if return_obj:
        return ret