Beispiel #1
0
def load(config_filename):
    '''
    Load the config from file and create a Platoon Manager
    '''
    global _mgr
    _config.load(config_filename)
    _mgr = _platoonmanager.PlatoonManager()
    if _useStepListener:
        # For SUMO version >= 0.30
        traci.addStepListener(_mgr)
Beispiel #2
0
provider_list = [
    A8MProvider,
]

try:
    reader = MathPlayer()
    provider_list.append(MathPlayer)
    mathPres.registerProvider(reader,
                              speech=True,
                              braille=True,
                              interaction=True)
except:
    log.warning("MathPlayer 4 not available")

_config.load()

try:
    if _config.Access8MathConfig["settings"]["provider"] == "Access8Math":
        provider = A8MProvider
    elif _config.Access8MathConfig["settings"]["provider"] == "MathPlayer":
        provider = MathPlayer
    else:
        _config.Access8MathConfig["settings"]["provider"] = "Access8Math"
        provider = A8MProvider
    reader = provider()
except:
    _config.Access8MathConfig["settings"]["provider"] = "Access8Math"
    provider = A8MProvider
    reader = provider()