Exemplo n.º 1
0
 def get_plan(self, source_id, params):
     self.logger('Using default plan')
     plan = PlanObject(params, source_id, Configurator.config_builder())
     # here comes the logic around the params
     return plan
Exemplo n.º 2
0
__author__ = 'moshebasanchig'
from hydro import Configurator
from hydro.base_classes import HydroStr, HydroDatetime, HydroList
conf = Configurator.config_builder()
conf.OPTIMIZER = 'TopologyInjectionOptimizer'

Exemplo n.º 3
0
__author__ = 'yanivshalev'
from hydro import Configurator
from hydro.base_classes import HydroStr, HydroDatetime, HydroList
conf = Configurator.config_builder()
conf.OPTIMIZER = 'TestTopology'

# TODO: this will have to come from the application level, e.g in hydro.initialize(conf_obj)

conf.PLAN_ALLOWED_PARAMETERS = {'CLIENT_ID': {'type': HydroStr},
                               'FROM_DATE': {'type': HydroDatetime},
                               'TO_DATE': {'type': HydroDatetime},
                               'EVENT_TYPES': {'type': HydroList}
                            }

Exemplo n.º 4
0
 def get_plan(self, source_id, params):
     self.logger('Using default plan')
     plan = PlanObject(params, source_id, Configurator.config_builder())
     # here comes the logic around the params
     return plan