Simul

class pylayers.simul.simulnet.Simul[source]

Bases: object

config : config parser instance sim_opt : dictionary of configuration option for simulation ag_opt : dictionary of configuration option for agent lay_opt : dictionary of configuration option for layout meca_opt : dictionary of configuration option for mecanic net_opt : dictionary of configuration option for network loc_opt : dictionary of configuration option for localization save_opt : dictionary of configuration option for save sql_opt : dictionary of configuration option for sql

self.lAglist of Agent(Object)

list of agents involved in simulation

self.LLayout

Layout used in simulation

All the previous dictionnary are obtained from the chosen simulnet.ini file in the project directory

Methods Summary

create()

create the simulation This method is called at the end of __init__

create_EMS()

create electromagnetic Solver object

create_agent()

create simulation’s Agents

create_layout()

create Layout in Simpy the_world thanks to Tk backend

create_network()

create the whole network

create_show()

create a vizualization

create_visual()

create visual Tk process

runsimul()

run simulation

savepandas()

save mechanics in pandas hdf5 format

Methods Documentation

create()[source]

create the simulation This method is called at the end of __init__

create_EMS()[source]

create electromagnetic Solver object

create_agent()[source]

create simulation’s Agents

..todo:: change lAg list to a dictionnary ( modification in show.py too)

create_layout()[source]

create Layout in Simpy the_world thanks to Tk backend

create_network()[source]

create the whole network

create_show()[source]

create a vizualization

create_visual()[source]

create visual Tk process

runsimul()[source]

run simulation

savepandas()[source]

save mechanics in pandas hdf5 format