Exemplo n.º 1
0
libDir = os.path.abspath(os.path.join(os.path.dirname(__file__), "../"))
sys.path.append(libDir)
print libDir

from lib.router import Router
router = Router()
ROUTES = router.getRoutes()

from lib.loader import Loader
loader = Loader(currentFullRoute, ROUTES)

from lib.helper import Helper
helper = Helper()

from lib.filewriter import FileWriter
filewriter = FileWriter()

from lib.reporter import Reporter
reporter = Reporter(ROUTES)

# return to current path

sys.path.append(currentFullRoute)

# ---------------------------------------------------------------------- CUSTOM LIBS

from math import *
from graphviz import Digraph

#https://pythonhosted.org/svgwrite/
import svgwrite
Exemplo n.º 2
0
libDir = os.path.abspath(os.path.join(os.path.dirname(__file__),"../"))
sys.path.append( libDir )
print libDir

from lib.router import Router
router = Router( )
ROUTES =  router.getRoutes()

from lib.loader import Loader
loader = Loader( currentFullRoute, ROUTES  )

from lib.helper import Helper
helper = Helper( )

from lib.filewriter import FileWriter
filewriter = FileWriter( )

from lib.reporter import Reporter
reporter = Reporter(  ROUTES  )

# return to current path

sys.path.append( currentFullRoute )

#_______________________________________________________________________________ CUSTOM LIBS

from MapService import *
from math import *

# from graphviz import Digraph
# #https://pythonhosted.org/svgwrite/
Exemplo n.º 3
0
from lib.enums import Orientation
from lib.logger import Logger, Level
from lib.filewriter import FileWriter
from lib.config_loader import ConfigLoader
from lib.slewlimiter import SlewLimiter

# ..............................................................................
try:

    _log = Logger("slew test", Level.INFO)

    _loader = ConfigLoader(Level.INFO)
    filename = 'config.yaml'
    _config = _loader.configure(filename)
    _filewriter = FileWriter(_config, 'slew', Level.INFO)
    _slewlimiter = SlewLimiter(_config, Orientation.PORT, Level.INFO)
    _slewlimiter.set_filewriter(_filewriter)

    _start_time = time.time()

    #   _slewlimiter.set_rate_limit(20.0)
    _slewlimiter.enable()
    _slewlimiter.start()

    _decelerate = False

    # begin test .......................................
    _log.info('starting...')

    _current_velocity = 0.0
libDir = os.path.abspath(os.path.join(os.path.dirname(__file__), "../"))
sys.path.append(libDir)
print libDir

from lib.router import Router
router = Router()
ROUTES = router.getRoutes()

from lib.loader import Loader
loader = Loader(currentFullRoute, ROUTES)

from lib.helper import Helper
helper = Helper()

from lib.filewriter import FileWriter
filewriter = FileWriter()

from lib.reporter import Reporter
reporter = Reporter(ROUTES)

# return to current path

sys.path.append(currentFullRoute)

# ---------------------------------------------------------------------- CUSTOM LIBS

# ---------------------------------------------------------------------- MAIN

if __name__ == '__main__':

    params = loader.parseArgs(sys.argv[1:])
Exemplo n.º 5
0
libDir = os.path.abspath(os.path.join(os.path.dirname(__file__),"../"))
sys.path.append( libDir )
print libDir

from lib.router import Router
router = Router( )
ROUTES =  router.getRoutes()

from lib.loader import Loader
loader = Loader( currentFullRoute, ROUTES  )

from lib.helper import Helper
helper = Helper( )

from lib.filewriter import FileWriter
exporter = FileWriter( )

 # Optional module 1
# from lib.social import Social
# social = Social( )

from lib.reporter import Reporter
reporter = Reporter(  ROUTES  )

#Extend the Reporter with the desired Report-Class
# from lib.reporters.MultiLayerTimeSerie import MultiLayerTimeSerie
# multilayer = MultiLayerTimeSerie()
# reporter.builder = multilayer.builder

#......................
sys.path.append( currentFullRoute )