# Path: controller/structure/steel_profile.py
# class Steel_Profile:
#     def index(self):
#     def iwf(self):
#     def angle(self):
# 
# Path: controller/structure/earthquake.py
# class Earthquake:
#     def index(self):
#     def response_spectrum(self, **var):
# 
# Path: controller/structure/concrete.py
# class Concrete:
#     def index(self):
#     def flexural_analysis(self, **var):
#     def slab_two_ways_design(self, **var):
# 
# Path: controller/geotechnic/surcharge_load.py
# class Surcharge_Load:
#     def __init__(self):
#     def point(self, **var):
#     def strip(self, **var):
#         H = float(param.get('H') or 12)
#         H = float(param.get('H') or 5)
# 
# Path: controller/math/converter.py
# class Converter:
#     def __init__(self):
#     def index(self):
#     def distance(self, val, from_, to):
#     def pressure(self, val, from_, to):
#     def force(self, val, from_, to):
# 
# Path: controller/about/about.py
# class About:
#     def index(self):
#     def license(self):
#     def technology(self):
#     def home(self):
#     def options(self):
#     def set_options(self, **kwargs):
#     def reset_options(self):


import cherrypy
from controller.structure import steel_profile
from controller.structure import earthquake
from controller.structure import concrete
from controller.geotechnic import surcharge_load
from controller.math import converter
from controller.about import about


def setup():
    #Router handler
    router = cherrypy.dispatch.RoutesDispatcher()

    #STRUCTURE
    a = steel_profile.Steel_Profile()
    router.connect(name='structure_steel_profile', route='/structure/steel/profile',
                   controller=a, action="index")
    router.connect(name='structure_steel_profile', route='/structure/steel/profile/iwf',
                   controller=a, action="iwf")
    router.connect(name='structure_steel_profile', route='/structure/steel/profile/angle',
                   controller=a, action="angle")
    a = earthquake.Earthquake()
    router.connect(name='earthquake_response_spectrum', route='/structure/earthquake/response-spectrum',
                   controller=a, action="response_spectrum")
    a = concrete.Concrete()
    router.connect(name='flexural_analysis', route='/structure/concrete/flexural-analysis',
                   controller=a, action="flexural_analysis")
    router.connect(name='slab_two_ways_design', route='/structure/concrete/slab-two-ways',
                   controller=a, action="slab_two_ways_design")
    #GEOTECHNIC

# Path: controller/structure/steel_profile.py
# class Steel_Profile:
#     def index(self):
#     def iwf(self):
#     def angle(self):
# 
# Path: controller/structure/earthquake.py
# class Earthquake:
#     def index(self):
#     def response_spectrum(self, **var):
# 
# Path: controller/structure/concrete.py
# class Concrete:
#     def index(self):
#     def flexural_analysis(self, **var):
#     def slab_two_ways_design(self, **var):
# 
# Path: controller/geotechnic/surcharge_load.py
# class Surcharge_Load:
#     def __init__(self):
#     def point(self, **var):
#     def strip(self, **var):
#         H = float(param.get('H') or 12)
#         H = float(param.get('H') or 5)
# 
# Path: controller/math/converter.py
# class Converter:
#     def __init__(self):
#     def index(self):
#     def distance(self, val, from_, to):
#     def pressure(self, val, from_, to):
#     def force(self, val, from_, to):
# 
# Path: controller/about/about.py
# class About:
#     def index(self):
#     def license(self):
#     def technology(self):
#     def home(self):
#     def options(self):
#     def set_options(self, **kwargs):
#     def reset_options(self):


# Path: src/router.py
import cherrypy
from controller.structure import steel_profile
from controller.structure import earthquake
from controller.structure import concrete
from controller.geotechnic import surcharge_load
from controller.math import converter
from controller.about import about


def setup():
    #Router handler
    router = cherrypy.dispatch.RoutesDispatcher()

    #STRUCTURE
    a = steel_profile.Steel_Profile()
    router.connect(name='structure_steel_profile', route='/structure/steel/profile',
                   controller=a, action="index")
    router.connect(name='structure_steel_profile', route='/structure/steel/profile/iwf',
                   controller=a, action="iwf")
    router.connect(name='structure_steel_profile', route='/structure/steel/profile/angle',
                   controller=a, action="angle")
    a = earthquake.Earthquake()
    router.connect(name='earthquake_response_spectrum', route='/structure/earthquake/response-spectrum',
                   controller=a, action="response_spectrum")
    a = concrete.Concrete()
    router.connect(name='flexural_analysis', route='/structure/concrete/flexural-analysis',
                   controller=a, action="flexural_analysis")
    router.connect(name='slab_two_ways_design', route='/structure/concrete/slab-two-ways',
                   controller=a, action="slab_two_ways_design")
    #GEOTECHNIC

    a = surcharge_load.Surcharge_Load()
