Home
Maverig Documentation
Contents
1. in module maverig data config 14 maverig views groups abstractGroup AbstractGroup Server class in maverig utils processServer 54 method 39 ServerProxy class in maverig utils processServer 55 set state of charge tip bg set color effect maverig views groups abstractGroup AbstractGroufmaverig views items abstractItem AbstractItem method 38 method 40 set color effect maverig views items abstractItem Abstraseltesug icon maverig views modePanelView ModePanel View method 40 static method 46 set consumer bar effect set svg icon maverig views propertyPanelView PropertyPanelView maverig views groups abstractGroup AbstractGroup static method 50 method 38 setGeometry maverig utils flowlayout FlowLayout set consumer bar effect method 53 maverig views items abstractItem AbstractItem Setting class in maverig data settings abstractSettings method 40 11 set effect maverig presenter group presenter abstractGroifjittimen eta amp bstrant eoigpfressntangs settings 12 method 25 SettingsPresenter class in set graph visibility maverig views attributePanelView AttributeCelmaverig presenter settingsPresenter 35 method 45 SettingsView class in maverig views settingsView 50 set new accepted value SettingTypes class in maverig data settings settings 12 maverig views property Panel View Property Panel 4eip maverig tests test consolePresenter TestConsolePresenter method 50 m
2. 4 5 maverig utils 55 Maverig Documentation Release 1 0 5 exception maverig utils scenarioErrors ScenarioEmptyError Bases maverig utils scenarioErrors Scenario title console_text text info_text Error exception maverig utils scenarioErrors Scenario0fflineElementError elem_id Bases maverig utils scenarioErrors ScenarioError title console text text info text exception naverig utils scenarioErrors ScenarioConnectionError elem id Bases maverig utils scenarioErrors ScenarioError title console text text info text exception naverig utils scenarioErrors ScenarioBaseVoltageLevelError ref id bus id Bases maverig utils scenarioErrors ScenarioError title console text text info text exception naverig utils scenarioErrors ScenarioRefBusConnectionError elem id Bases maverig utils scenarioErrors ScenarioError title console text text info text exception naverig utils scenarioErrors ScenarioRefBusMissingError Bases maverig utils scenarioErrors ScenarioError title console text text info text exception naverig utils scenarioErrors ScenarioRefBusCountError elem ids Bases maverig utils scenarioErrors ScenarioError 56 Chapter 4 Source Documentation Maverig Documentation Release 1 0 5 title console_text text info_text exception maverig utils scenarioErrors ScenarioDatafile
3. Sections can either be started directly run or be initiated remotely by calling enter and exit run is running enter first call enters section exit args last call exits section class maverig views positioning section SectionManager Bases builtins object Holds a section sequence for positioning on internal items and presenter side Sections divide position_changed Event Handling into multiple subjected Phases which will be handled one after another Position changes made during an with section_manager pos_section block will only throw events after all pos_section blocks have been exited and the next section mouse_section has been entered automatically Then all changed virtual points will throw a position_changed_event in son enter section with the actual section as parameter which can be checked on Event Handling Afterwards all changed virtual points will throw a position_changed_event for the next section and so on 4 4 maverig views 41 Maverig Documentation Release 1 0 5 This is how positioning works with VPoints and SectionManager l pos_section in order to set multiple VPoint positions at the same time use with section_manager pos_section v_pointl set_pos posl Change moved v_point2 pos 2 Change Change applied This is equivalent to section_manager pos_section enter v_pointl set_pos posl Change moved v_point2 pos pos2 Change Change applied section_mana
4. test copy selected elements Copy all selected elements test cut selected elements Cut all selected elements test paste elements Paste and select inserted elements test select all elements Selects all elements test select all active elements Selects all elements depending on the current active mode test on mode Reacts on model mode changes and updates the view which component is allowed to be created and selected test on elements Updates the view items when number of model elements has changed test run force layout Run the force atlas algorithm 4 6 10 maverig tests test settingsPresenter class maverig tests test settingsPresenter TestSettingsPresenter methodName runTest Bases unittest case TestCase setUp test install language Sets chosen language if it is changed by user This is handled separately to prevent handling of unnecessary events in whole application if the language hasn t been changed test apply setting Applies the given setting 4 6 maverig tests 67 Maverig Documentation Release 1 0 5 4 6 11 maverig tests test_statusBarPresenter class maverig tests test_statusBarPresenter TestStatusBarPresenter methodName runTest Bases unittest case TestCase setUp test on change visibility triggered Triggers the visibility of the status bar test_on_mode Reacts on mode changes Displays the chosen mode in the status ba
5. class maverig presenter componentWizardPresenter ComponentWizardPresenter presenter manager model cfg Bases maverig presenter abstractPresenter AbstractPresenter Presenter class that acts as the event handler between the view and the model for the component wizard get_simulator_names Return the names of available simulators get category names Return a sorted list with the names of the categories on new simulator triggered Triggers the visibility of the attribute panel init view v on add simulator triggered Save new simulator description in json There are some TODOs in this method as advice future feature development on_add_component Save new component description in json There are some TODOs in this method as advice future feature development on close wizard Whenever the dialog gets closed cancel finish or close event switch back to last known mode 4 3 7 maverig presenter consolePanelPresenter class maverig presenter consolePanelPresenter ConsolePanelPresenter presenter_manager model cfg Bases maverig presenter abstractPresenter AbstractPresenter Presenter class that acts as the event handler between the view and the model for the console panel on change visibility triggered Toggles the visibility of the console panel Saves the visibility state in the config on console clear triggered Clears the console output 4 3 maverig presenter 29 Maverig Docu
6. graph available Create an attribute cell for every attribute of a selected element clear container update info label value translate class maverig views attributePanelView AttributeCell name caption unit sim step size lines labels lines values lines colors graph available view Bases PySide QtGui QGroupBox maverig views abstractView AbstractView Represents one cell which is stored in the container for one attribute translate start scoll to center anim set graph visibility value create graph 4 4 maverig views 45 Maverig Documentation Release 1 0 5 resizeEvent event adjust graph labels after resize with single shot timer on_draw_graph auto adjust padding to lables Taken from http matplotlib org faq howto_faq html automatically make room for tick labels Workaround for pyplot tight_layout due to unpredictable ValueErrors and slowness issues return True if graph has been redrawed on canvas draw_canvas draw matplotlib graph on canvas return True if drawing has been successful change_content current_value multivalue lines_values Change and update the dynamic content of the attribute cell without recreating the ui 4 4 6 maverig views modePanelView class maverig views modePanelView ModePanelView Bases PySide QtGui QScrollArea maverig views abstractView AbstractView Represents the mode panel A component can be added by activating the necessary comp mode i
7. 5 sudo apt get install libzmq3 libzmq3 dev 5 sudo pip3 install U force reinstall pyzmq 4 Chapter 1 Installation Maverig Documentation Release 1 0 5 Install cx Freeze with sudo pip3 install cx Freeze and build the Maverig executable with 5 python3 maverig setup_cx py build where current bash directory needs to be as in Location of pip3 show maverig Execute builded program maverig build Go into builded program folder maverig build exe linux x86_64 3 4 maverig 1 1 Linux 5 Maverig Documentation Release 1 0 5 6 Chapter 1 Installation CHAPTER 2 User Manual You can download the User Manual in the following languages english User Manual PDF deutsch Benutzerhandbuch PDF Maverig Documentation Release 1 0 5 8 Chapter 2 User Manual CHAPTER 3 Project Documentation Here you can download the Project Documentation of the Maverig Project April 2014 March 2015 in German language The Project Documentation describes the complete software development process of Maverig including the following parts Project Organization Smart Grid Basics Maverig Requirements Software Concepts and Design Implementation Documentation Validation Outlook Download PDF deutsch Projektdokumentation Maverig Documentation Release 1 0 5 10 Chapter 3 Project Documentation CHAPTER 4 Source Documentation The Sourc
8. 70711 elem_ports elem_id Return a list of available element ports of an specific element elem_id get_pos ep Get the position of an element port as OtCore OPointF set_pos ep pos Set a position of an element port as QtCore QPointF dockings_out ep Return a list of outgoing dockings to other element ports from an element port ep dockings_in ep Return a list of ingoing dockings from other element ports to an element port ep docking_attrs from_elem_id to_elem_id Return a set of valid attribute connection tuples from one element to another e g FP out UP This function is used for connecting elements in mosaik in maverig models modelSimulation SimulationProcess start simulation Component attribute descriptions may contain out or in entries indicating al lowed connections to or from other attribute names can dock from ep to ep Check whether it is possible to dock from one port to another dock from ep to ep Dock one port to another port 4 2 maverig models 21 Maverig Documentation Release 1 0 5 undock from_ep to_ep Undock two element ports Only undock if elements exists because undock might have been called by element deletion handle scenario error e Creates output and error events and selects elements in elem_ids for visual feedback of scenario errors validate scenario Validates the scenario update Fires all events with pe
9. Reacts on model changes of the current program mode and adjust the ui to reflect the program mode composition simulation or simulation paused test on selection Reacts on model changes of the current selection and toggles the state of the cut copy and delete actions test on clipboard Reacts on model changes of the clipboard and toggles the state of the paste action 4 6 6 maverig tests test model class maverig tests test_model TestModel methodName runTest Bases unittest case TestCase setUp test_switch_modes Switches between the composition modes test_is_selectable Checks for an item if it is selectable or not test init history Init the history if an empty scene is open test_add history point Changes history after an action test undo Undo the last performed action test redo Recover the last undone action test copy to clipboard Copies all elements of the elem ids list to an internal clipboard test paste from clipboard Paste all elements from internal clipboard and return the new elem ids only dockings inside of clipboard will be maintained test create element Creates an element test delete element Deletes an element test get shared published params Return a list of composed parameter instances which are contained in each element of elem ids e g 4 6 maverig tests 63 Maverig Documentation Release 1 0 5 NumResidents NumHou
10. maverig tests test groupPresenter TestGroupPrasthosb 67 is selectable maverig tests test model TestModel method 63 mouse clicked maverig tests test scenarioPanelPresenter TestScenar method 66 mouse moved maverig tests test scenarioPanelPresenter TestScenar method 67 mouse released maverig tests test scenarioPanelPresenter TestScene method 67 move pos maverig tests test vPoint TestVPoint method 69 new connectables maverig tests test_groupPresenter TestGroupPrese method 61 non connectable maverig tests test groupPresenter TestGroupPreser method 61 on back to start triggered method 61 test test get value maverig tests test model TestModel method 65 test test get values maverig tests test model TestModel method 64 test test get i heat value maverig tests test model TestModel method 65 test test get icon color maverig tests test model TestModel method 64 test test get p level maverig tests test model TestModel method 65 test test get param value maverig tests test model TestModel method 64 test test get pos maverig tests test model TestModel method 64 test test get selected maverig tests test model TestModel method 64 test get shared published attrs maverig tests test model TestModel method 65 test get shared published params maverig tests test model TestModel method 63 test get simulator ma
11. A Combo Box which provides a signal to infornm when the popup is shown popup _triggered lt PySide QtCore Signal object at 0x7f5ce85e0630 gt showPopup Overrides the shopPopup method to provide update functionality 4 4 8 maverig views consolePanelView class maverig views consolePanelView ConsolePanelView Bases PySide QtGui QScrollArea maverig views abstractView AbstractView Represents console output Every action triggered by the user is documented in the console output This helps the user to follow his triggered actions init ui translate 4 4 9 maverig views dialogs class maverig views dialogs SimulationTimeDialog Bases builtins object Represents the simulation time dialog show sim_start sim_end sim_step_size vid_speed convert_slider value val maverig views dialogs go_to_time_dialog sim_time_instances sim_index Shows a dialog to go to an specific simulation time maverig views dialogs inform dialog maverig views dialogs error_dialog title text info_text maverig views dialogs about_dialog maverig views dialogs participant maverig views dialogs show_license maverig views dialogs element_already_exist string 4 4 10 maverig views mainWindow class maverig views mainWindow MainWindow cfg Bases PySide QtGui QMainWindow Represents the starting point of the application All view layouts within maverig views are linked in
12. Bases maverig utils processServer ProcessServer Manage a simulation process and serve proxy access to registered functions start Reset attributes and start class SimulationProcess as Maverig subprocess stop Stop the Simulation and terminate the simulation process if it is still active write fext Proxy function Write text and subprocess stdout to Maverig console output handle process_scenario_error e Proxy function for error handling passedto maverig models model Model handle_scenario_error map elem to mosaik elem_id mosaik full id Proxy function mapping mosaik full id to elem_id for data assignment run iteration update data timestamp progress data Proxy function for pushing collected from maverig utils visSimulator VisSimulator Ap ply the data later in run iteration by starting a timer This may be faster than applying the data on each processed update_data call run_iteration Apply simulated data on model 4 2 maverig models 23 Maverig Documentation Release 1 0 5 4 3 maverig presenter 4 3 1 maverig presenter group_presenter naverig presenter group presenter abstractGroupPresenter naverig presenter group presenter iconGroupPresenter maverig presenter group_presenter lineGroupPresenter naverig presenter group presenter linelconGroupPresenter e maverig presenter group presenter nodeGroupPresenter maverig presenter group presenter abstractGroupP
13. Johary Ny Aina and Tobias Schwerdtfeger 71 Maverig Documentation Release 1 0 5 72 Chapter 5 About Maverig CHAPTER 6 Indices and tables genindex modindex search 73 Maverig Documentation Release 1 0 5 74 Chapter 6 Indices and tables Python Module Index m maverig presenter scenarioPanelPresenter maverig data config 12 34 maverig data dataHandler 14 maverig presenter settingsPresenter 35 maverig data settings abstractSettings Maverig presenter statusBarPresenter 11 36 maverig data settings defaultSettings Maverig presenter toolbarPresenter 36 12 maverig presenter utils forceEngine 27 maverig data settings heatValueEffect Maverig tests test_consolePresenter 60 12 maverig tests test_event 60 maverig data settings settings 12 maverig tests test_groupPresenter 60 maverig demo 69 maverig tests test_menuBarPresenter 62 maverig EntryPoint 69 maverig tests test_model 63 maverig models model 15 maverig tests test_modePanelPresenter maverig models modelGraph 22 59 maverig models modelSimulation 22 maverig tests test_progressPresenter maverig presenter abstractPresenter 27 65 maverig presenter attributePanelPresentepaverig tests test_propertyPanelPresenter 27 66 maverig presenter componentWizardPresent averig tests test_scenarioPanelPrese
14. Return whether element is selectable according to current mode init history Reset all history entries and set an initial history entry as first scenario state add history point Adds a new history point if there have been some changes and clears redo history list undo Undo latest change redo Redo latest undone change changes count Return an int value representing the current number of model state changes This function is used for detecting history specific differences to the last temporary stored scenario History specific changes consider elements positions dockings parameters and scenario simulation set tings Selection changes are not detected Scenario Get or apply a JSON compatible scenario dict with the following keys changes count number of history specific scenario changes uid id counters for element creation sim start simulation start time as string e g 2014 10 20T00 00 00 4 2 maverig models 19 Maverig Documentation Release 1 0 5 sim end simulation end time as string e g 2014 10 24T23 59 59 esim step size the current simulation step size in seconds e g 1800 30 minutes elements the elements dict of elem id to element instance selection the currently selected elements as dict from elem id to element copy Return a new flat copied model including escenario components and simulators descriptions no connected events copy to cli
15. elements as component instances and their dockings clipboard selected elements modi comp_mode selection_mode hand_mode and events auto_update_components_languages None Switch for automatic creation of po language entries for new component texts elements None A dict mapping elem_id to element instance Elements instances represent a Power or Logic Unit here a PQBus example with customizable data for the following purposes elink to component description by model get_component elem_id or model components sim model here in maverig data components PyPower PQBus json reference data elem id custom visualization icon positioning for each port pos dockings to from other elements and their ports out in data for simulation runtime and initialization parameters and their values params attributes at simulation runtime with their static or listed dynamic values attrs 16 Chapter 4 Source Documentation Maverig Documentation Release 1 0 5 reference to mosaik entity mosaik_full_id mosaik_full_id and attrs will be automatically filled during simulation time Example elements dictionary with PyPower PQBus instance PyPower PQBus_4 sim_model PyPower PQBus icon bus svg elem_id PyPower PQBus_4 mosaik full id PyPower 0 0 PyPower PQBus_4 docking ports MOM ge am pos 450 0 200 0 out in PyPower Branch_3 1 PyPower Br
16. maverig tests test model TestModel method 65 method 64 test avoid invalid positions test dockings in maverig tests test model TestModel maverig tests test_groupPresenter TestGroupPresenter method 64 method 61 test_dockings_out maverig tests test_model TestModel test_can_dock maverig tests test_groupPresenter TestGroupPresentanethod 64 method 61 test drag started maverig tests test modePanelPresenter TestModePanell test can dock maverig tests test model TestModel method 60 method 64 test element at maverig tests test_scenarioPanelPresenter TestScenarioP test change ev icon maverig tests test_groupPresenter TestGroupPresthoeh 66 method 62 test ep maverig tests test groupPresenter TestGroupPresenter test changes count maverig tests test model TestModel method 60 method 64 test error maverig tests test statusBarPresenter TestStatusBarPresenter test check snap permission method 68 maverig tests test groupPresenter TestGroupPres egerfire maverig tests test event TestEvent method method 61 60 92 Index Maverig Documentation Release 1 0 5 test_fix maverig tests test_vPoint TestVPoint method test 69 test_follow_follows maverig tests test_vPoint TestV Point method 69 test init scene mapping maverig tests test groupPresenter TestGroupPresenter method 61 install language maverig tests test_settingsPresenter TestSettingsPre test from dockables
17. setUp maverig tests test_vPoint TestVPoint method simulators maverig models model Model attribute 18 69 sizeHint maverig utils flowlayout FlowLayout short_name maverig models modelSimulation SimulationProcess method 53 method 23 snap_dock maverig presenter group_presenter abstractGroupPresenter Ab show _ maverig views dialogs SimulationTimeDialog method 25 method 48 snap_zone maverig presenter group_presenter abstractGroupPresenter Ab show maverig views settings View Settings View method 24 method 50 snapped maverig views positioning vPoint Change at SHOW INVISIBLE COMPONENTS maverig data config ConfigKeys 14 show_invisible_components attribute tribute 43 SpeedModel class in maverig utils forceatlas2 53 SPLITTER_LEFT_GEOMETRY maverig data config ConfigKeys attribute maverlg presenter modePanelPresenter ModePanelPresentei 3 method 28 show_license in module maverig views dialogs 48 SPLITTER_LEFT_STATE maverig data config ConfigKeys attribute showPopup maverig views componentWizardView ComboUpdatingBox method 48 sim maverig models model Mode attribute 16 sim_end maverig models model Model attribute 18 sim_end_index maverig models model Model attribute 18 sim_index maverig models model Model attribute 18 sim progress maverig models model Model attribute 18 sim_start maverig models model Model attribute 18 sim_step_size maverig mod
18. 100 sim_timestamp The current time stamp as datetime datetime of the current simulation time index Setting this property will result in the closest collected simulation time stamp duration The simulation duration in seconds calculated by sim_start and sim_end time difference language The currently active installed language for internationalization e g 18 Chapter 4 Source Documentation Maverig Documentation Release 1 0 5 program_mode The current program mode as ProgramMode mode The current mode as Mode switch modes standard mode substitute mode Switch current mode between standard mode and substitute mode as Mode If current mode is none of these it will be set to standard mode comp The current component sim model for element creation when mode is set to Mode comp raster mode Raster visibility as bool comp raster Raster visibility for composition mode as bool Use this property to memorize xaster mode before simulation and set it back when switching back to composition mode raster snap mode bool property whether elements snap to raster positions on mouse release force dragging bool property whether scenario items are currently beeing dragged by an layout algorithm selection dragging bool property whether scenario items are currently beeing dragged by mouse selection selection A list of elem ids of selected elements is selectable elem or elem id
19. Presenter section is entered after all affected item positions have been updated GroupPresenter can now work on the current VPoint and QGraphicsItem positions and e g apply custom followings def on position changed self vp delta change section if section section manager presenter section other v point self snap zone dockable point needs correct QGraphicsItem v point follow other v point other v point follow v point Change calculated Change raster snapped The Presenter section may also apply new positions which restarts the section sequence from position level 42 Chapter 4 Source Documentation Maverig Documentation Release 1 0 5 maverig views positioning vPoint class maverig views positioning vPoint Changes Bases builtins object none all raster_snapped moved avoid_invalid followed calculated applied snapped indirect raster_snapped moved avoid_invalid followed calculated snapped class maverig views positioning vPoint Change Bases builtins object Reason for v_point change origin None applied applied moved moved snapped snapped raster_snapped raster_snapped avoid_invalid avoid_invalid calculated calculated followed followed class maverig views positioning vPoint VPoint parent item None Bases builtins object A Virtual Point wh
20. View module 49 new category dialog maverig views component Wizard View IntroPage maverig views scenarioPanel View module 50 method 47 maverig views settings View module 50 new_connectables maverig presenter group_presenter abstractGroupPrese maverig views statusBar View module 51 method 24 maverig views toolbarView module 51 new_file maverig presenter menuBarPresenter MenuBarPresenter MenuBarPresenter class in method 30 maverig presenter menuBarPresenter 30 new pos maverig views positioning vPoint VPoint at MenuBarView class in maverig views menuBarView tribute 43 49 NodeGroup class in maverig views groups nodeGroup MethodProxy class in maverig utils processServer 55 39 minimumSize maverig utils flowlayout FlowLayout NodeGroupPresenter class in method 53 maverig presenter group_presenter nodeGroupPresenter Mode class in maverig models model 16 26 mode maverig models model Model attribute 19 non_connectable maverig presenter group_presenter abstractGroupPresen MODE_PANEL_SETTINGS method 25 maverig data config ConfigKeys attribute none maverig views positioning vPoint Changes at 14 tribute 43 Model class in maverig models model 16 np_color in module maverig utils colorTools 51 ModelGraph class in maverig models modelGraph 22 ModePanelPresenter class in O maverig presenter modePanelPresenter on_about_triggered maverig presenter menuBarPresenter MenuBarPr
21. as list e g CSV House_1 0 and will be automatically converted to ElemPort when needed elem_id Alias for field number 0 port Alias for field number 1 4 2 maverig models 15 Maverig Documentation Release 1 0 5 class maverig models model ProgramMode Bases builtins object Represents the main program mode composition simulation or simulation paused composition composition mode Composition mode where scenario can be edited simulation simulation mode Simulation mode where simulation or recorded simulation history video is running simulation_paused simulation paused Simulation paused mode where simulation is paused class maverig models model Mode Bases builtins object Represents the currently selected mode for the composition selection selection mode In selection mode all elements may be moved and edited hand hand mode In hand mode the complete scenario is movable and elements can t be edited or created comp component mode In component mode only elements of a the selected component in mode panel may be edited and created sim simulation mode In simulation mode the scenario can only be watched and elements can t be edited Similar to hand mode but may differ in element visualizations class maverig models model Model Bases builtins object Model manages the complete scenario state simulation start and end time
22. be created 3 averig data dataHandler get_component_icon filename Return the complete component icon path for the given filename relative to maverig data components icons 3 averig data dataHandler get_icon filename Return the complete icon path for the given filename relative to maverig data icons 3 averig data dataHandler get_lang_path create_dir False Return the complete languages locale path of maverig data languages 3 averig data dataHandler get temp file filename Return the complete temporary files path for the given filename relative to maverig data temp 3 averig data dataHandler get_config_file filename Return the complete configuration file path for the given filename relative to maverig data configs 4 2 maverig models e maverig models model e maverig models modelGraph e maverig models modelSimulation 4 2 1 maverig models model maverig models model fast_deepcopy x Return a deepcopy of x x may be or contain the following types dict set list tuple datetime string int float bool NoneType classmaverig models model ElemPort Bases builtins tuple An element port instance e g ElemPort CSV House_1 0 describes a specific port e g 0 of an element specified by elem_id e g CSV House_1 which may be docked to other element ports Element ports are often abbreviated with ep In all model methods element ports can also be passed
23. ci o 1 hod 4 on_back_to_start_triggered Move poa maverig views items icon con method 40 maverig presenter toolbarPresenter ToolbarPresenter move_pos maverig views items line Line method 41 method 37 moye pasy th a on_btn_context_menu maverig presenter modePanelPresenter ModePane method method 28 Index 85 Maverig Documentation Release 1 0 5 on change dateformat maverig presenter progressPresenton Pdoge Rraveritespresenter menuBarPresenter MenuBarPresenter method 33 method 32 on_change_graph_visibility_triggered on_drag maverig presenter scenarioPanelPresenter ScenarioPanelPresente maverig presenter attributePanelPresenter AttributePanelPrenethed 35 method 27 on_drag maverig presenter statusBarPresenter StatusBarPresenter on_change_visibility_triggered method 36 maverig presenter attributePanelPresenter A ttributePahel amp jeGaaterrig presenter toolbarPresenter ToolbarPresenter method 27 method 37 on_change_visibility_triggered on_draw_background maverig presenter scenarioPanelPresenter Scenario maverig presenter consolePanelPresenter ConsolePanelPresarathod 34 method 29 on_draw_graph maverig views attributePanel View AttributeCell on_change_visibility_triggered method 46 maverig presenter modePanelPresenterModePanelPretentents maverig presenter group presenter abstractGroupPresenter method 28 method 25 on change visibility triggered on e
24. configur nable shared Python 3 4 3 LD_RUN_PATH usr local lib make Python 3 4 3 sudo make install 1 1 2 Install Maverig Follow the mosaik installation guide to install mosaik and mosaik_pypower dependencies Install dependencies and Maverig 5 sudo pip3 install r https bitbucket org Sash221 maverig raw default requirements txt 5 sudo pip3 install maverig or build Maverig directly from source S hg clone https bitbucket org Sash221 maverig S cd maverig maverig S sudo pip3 install r requirements txt maverig sudo pip3 install e Install maverig or use the site packages of the prepared Virtual Environment if you experience dependency problems e Maverig and dependencies in Virtual Environment for Linux 64 Bit Python 3 4 ZIP 124 2 MB S cd virtualenvs virtualenvs wget https bitbucket org Sash221 maverig downloads maverig1 0 4 virtualenv linux virtualenvs unzip maverigl 0 4 virtualenv linux x86 64 3 4 zip virtualenvs 5 cd maverig virtualenvs maverig source bin activate activate the virtualenv To run Maverig in python just type S maverig 1 1 3 Building Maverig executable with cx_Freeze cx_Freeze is a script for freezing applications to executables These executables can only run on the same platform where they have been frozen On Linux you need to install the zero mq system libraries before pyzmq otherwise Freeze will fail on building C dependent stuff
25. de pending actions 4 4 maverig views 4 4 1 maverig views groups e maverig views groups abstractGroup maverig views groups iconGroup e maverig views groups lineGroup e maverig views groups lineIconGroup e maverig views groups nodeGroup maverig views groups abstractGroup class maverig views groups abstractGroup AbstractGroup Bases maverig views abstractView AbstractView init view scene None add to scene scene add subitems to scene add item item remove item item selected enabled clear effects clear state of charge effect clear state of charge tip clear state of charge tip bg set color effect color transparency set shadow effect color shadow faint offset1 offset2 set consumer bar effect color pos width height set producer bar effect color pos width height set state of charge bar color pos width height 38 Chapter 4 Source Documentation Maverig Documentation Release 1 0 5 set_state_of_charge_tip color pos width height set_state_of_charge_tip_bg color pos width height is_under_mouse remove maverig views groups iconGroup class maverig views groups iconGroup IconGroup positions icon path Bases maverig views groups abstractGroup AbstractGroup add_endpoint endpoint_pos add an endpoint with a dotted line to icon maverig views groups lineGroup class maverig views groups lineGroup LineGroup positions Bases maverig vi
26. forceatlas2 SpeedModel mass arr ratio 0 01 k_s 1 k_s_max 10 max_rise 0 5 Bases builtins object see https github com gephi gephi tree master modules LayoutPlugin src main java org gephi layout plugin forceAtlas2 ForceA get_speed_arr force_arr Return the local adaptive speed as array for each node Call this once in each iteration after force calcula tion and before applying forces class maverig utils forceatlas2 ForceAtlas2 g nodelist None attr_weight None attr_size None avoidoverlap False lin log False dissuadehubs False scale 2 dim 2 repulsion_factor 150 stan dard_size 15 Bases builtins object Basic concept taken from https github com tpoisot nxfa2 Timoth e Poisot Completely revised A ForceAtlas2 algorithm graph layouter Numpy optimized version with additional options but no barnes hut grid approach do_layout do one layout calculation step position data is assigned as pos attribute to each node 4 5 5 maverig utils logger class maverig utils logger StreamToLogger logger log_level 20 Bases builtins object 4 5 maverig utils 53 Maverig Documentation Release 1 0 5 Fake stream object that redirects writes to logger instance taken from http www electricmonk nl log 201 1 08 14 redirect stdout and stderr to a logger in python write buf flush maverig utils logger activate_logger log_file 4 5 6 maverig utils maverig_csv class maverig utils
27. maverig views componentWizardView ParameterTab attribute 47 attribute attribute attribute attribute start Index 91 Maverig Documentation Release 1 0 5 StatusBarPresenter class test check spinbox maverig tests test_propertyPanelPresenter TestPrope1 maverig presenter statusBarPresenter 36 method 66 StatusBarView class in maverig views statusBarView test comp clicked maverig tests test modePanelPresenter TestMode 51 method 59 step maverig utils maverig csv CSV method 54 test comp created maverig tests test modePanelPresenter TestMode step maverig utils visSimulator VisSimulator method method 59 59 test connectables maverig tests test groupPresenter TestGroupPresenter stop maverig models modelSimulation SimulationServer method 61 method 23 test copyO maverig tests test model TestModel stop maverig utils processServer ProcessServer method 64 method 55 test copy selected elements stop maverig utils processServer Server method 55 maverig tests test scenarioPanelPresenter TestScenarioPanelPres stop simulation maverig models model Model method 67 method 22 test copy to clipboard stop slider maverig presenter progressPresenter ProgressPresenter maverig tests test model TestModel method method 33 63 StreamToLogger class in maverig utils logger 53 test create element maverig tests test model TestModel success mave
28. maverig_csv CSV Bases mosaik_api Simulator An extended copy of mosaik csv simulator with static and dynamic data support Example House static data num_hh res 3 4 dynamic data Date P W 2014 10 20 00 00 00 1080 1 2014 10 20 00 15 00 686 06 init sid sim_start datafile create num model step time inputs None get_data outputs maverig utils maverig csv main 4 5 7 maverig utils numTools maverig utils numTools convert string value to type strzNone convert string value to base type representation maverig utils numTools get unit prefixed value return the adapted value and prefix maverig utils numTools get short value text value unit return shortened value string with unit prefixes or exponents for small and big numbers 4 5 8 maverig utils processServer class naverig utils processServer Call Pack Bases builtins tuple Transfer method format for calling functions via ServerProxy args Alias for field number 1 func name Alias for field number 0 kwargs Alias for field number 2 54 Chapter 4 Source Documentation Maverig Documentation Release 1 0 5 class maverig utils processServer Server interval 40 Bases builtins object A server managing incoming function calls via zero mq socket register_function func_name Register a server function that can be called via proxy start Start listening to incoming function calls and activate t
29. presenter modePanelPresenter ModePanetethsshtet0 method 28 on file save triggered maverig presenter menuBarPresenter MenuBarPre on context menu maverig presenter scenarioPanelPresenter ScenarioP lnodl resenter method 34 on file save triggered maverig presenter toolbarPresenter ToolbarPresen on copy triggered maverlg presenter menuBarPresenter MenuBarPres timeb 37 method 30 on forward to end triggered on cut triggered maverig presenter menuBarPresenter MenuBarPre amp mntesrig presenter menuBarPresenter MenuBarPresenter method 30 method 31 on data changed maverig tests test event TestEvent forward to end triggered method 60 maverig presenter toolbarPresenter ToolbarPresenter on delete triggered maverig presenter menuBarPresenter MenuBarRrefantdr 37 method 30 on go to triggered maverig presenter menuBarPresenter MenuBarPreset on delete triggered maverig presenter toolbarPresenter ToolbarPresentthod 31 method 37 on hand mode triggered on dockings maverig presenter group_presenter abstractGroupPreseamearv tstpregontehemeBtaPresenter MenuBarPresenter method 25 method 31 drag maverig presenter group presenter abstractGroupdHrehelteiiMhseradi 3tmipPresqntesenter menuBarPresenter MenuBarPresent method 25 static method 32 86 Index Maverig Documentation Release 1 0 5 on_increase_speed_triggered on_position_changed maverig views items abstractItem AbstractIte
30. text_changed maverig utils tableWidgets CellLineEdit 13 method 58 uid maverig models model Model attribute 17 title maverig utils scenarioErrors ScenarioBaseVoltageLevellsgtick buttons maverig views modePanel View ModePanel View attribute 56 method 46 title maverig utils scenarioErrors ScenarioComponentError yndo maverig models model Model method 19 attribute 57 undock maverig models model Model method 21 title maverig utils scenarioErrors ScenarioConnectionError undock maverig presenter group_presenter abstractGroupPresenter Abstr attribute 56 method 25 title maverig utils scenarioErrors ScenarioDatafileError unfix maverig views positioning vPoint VPoint attribute 57 method 44 title maverig utils scenarioErrors ScenarioElementError unfollow maverig views positioning vPoint VPoint attribute 57 method 44 96 Index Maverig Documentation Release 1 0 5 unhandle maverig utils event Event method 52 unhover_component_button maverig views modePanel View ModePanel View method 46 update maverig models model Model method 22 update_all maverig models model Model method 22 update_data maverig models modelSimulation SimulationServer method 23 update_graph_visibility maverig presenter attributePanelPresenter AttributePanelPresenter method 27 update info label maverig views attributePanel View AttributePanel View method 45 V validate scenario m
31. to the right value test value changed Test if a wrong value f r an element is set in the model test on selection Check that the right widgets are placed in the property panel when selecting an element test on param Check that the right widgets are placed and up to date when changing a value of an element test on program mode React on model program mode changes 4 6 9 maverig tests test_scenarioPanelPresenter class naverig tests test scenarioPanelPresenter TestScenarioPanelPresenter methodName runTest Bases unittest case TestCase setUp test adjust scene rect Fits the size of the scene to the items bounding rect test element at Returns element at mouse position test group presenters Returns a set of all group presenters test groups Returns a set of all groups test mouse clicked Create an element on clicking left mouse button switch between selection and component mode on clicking right mouse button 66 Chapter 4 Source Documentation Maverig Documentation Release 1 0 5 test damped mouse pos Returns the damped mouse position if it is out of frame rect test mouse moved Set mouse position based on damped mouse position test mouse released Draw second endpoint of line or transformer test zoom Handles zooming functionality test zoom fit Fits all elements into the view test delete selected elements Deletes all selected elements
32. utils 51 Maverig Documentation Release 1 0 5 maverig utils colorTools get_icon_color filename Scan an icon and return the most prevalent color maverig utils colorTools compare_color colorl color2 Compare two colors tuple OColor or LabColor with delta_e_cie_2000 human color perception approx imation Return a float value where 2 3 corresponds to a JND just noticeable difference maverig utils colorTools distinct_colors base_colors Return a list of colors where approximately same colors in base_colors are replaced by distinct colors maverig utils colorTools distinct_colors_from_palette base_colors palette_colors Generate distinct colors similar to base_colors from palette_colors maverig utils colorTools palette tableaul0 Tableau 10 color set taken from http tableaufriction blogspot ro 2012 1 1 finally you can use tableau data colors html maverig utils colorTools palette iwanthue50 Generated colors with http tools medialab sciences po fr iwanthue settings H 0 360 C 0 2 L 0 1 15 4 5 2 maverig utils event class maverig utils event Event Bases builtins object Simple Event Class see http www valuedlessons com 2008 04 events in python html usage handle handler unhandle handler demand fire args kwargs fires the event with given arguments and return a list of results of each call get_handler_count 4 5 3 maverig utils flowlayou
33. 2 method 20 EFFECT_BLUR maverig data settings heat ValueEffect Heat ValueEffectKe delete_grid_widget maverig views propertyPanelView PropertyPanedWibute 12 method 49 EFFECT COLOR maverig data settings heatValueEffect HeatValueEffect delete selected elements attribute 12 maverig presenter scenarioPanelPresenter ScenariePhBii HreSEBAeDOW maverig data settings heatValueEffect Heat ValueEffe method 35 attribute 12 delta maverig views positioning vPoint VPoint at EFFECT TRANSPARENCY tribute 43 maverig data settings heatValueEffect HeatValueEffectKeys demand maverig utils event Event method 52 attribute 12 deselect all elems maverig models model Model elem id maverig models model ElemPort attribute 15 method 22 elem ids maverig utils scenarioErrors ScenarioError at distinct colors in module maverig utils colorTools 52 tribute 55 distinct colors from palette in module elem_ports maverig models model Model method 21 maverig utils colorTools 52 element_already_exist in module do_layout maverig utils forceatlas2 ForceAtlas2 maverig views dialogs 48 method 53 element_at maverig presenter scenarioPanelPresenter ScenarioPanelPrese dock maverig models model Model method 21 method 34 dock maverig presenter group_presenter abstractGroupPreskmen sbstravetipompRilsemtede1 Model attribute 16 method 25 ElemPort class in maverig models model 15 docking_attrs maverig models
34. 39 items circle items icon 40 averig views items line 4l averig averig averig averig averig averig averig averig averig averig 8 3 33 3 3 3 3 3 3 3 3 3 3 3 3333 33 averig views views views views views views views views views views toolbarView 51 views mainWindow 48 menuBarView 49 modePanelView 46 positioning section 4l positioning vPoint 43 progressView propertyPane 40 49 View 49 scenarioPanel settingsView LView 50 50 statusBarView 51 76 Python Module Index Index A add_property_value_object about_dialog in module maverig views dialogs 48 maverig views property Panel View Property Panel View AbstractGroup class in method 49 maverig views groups abstractGroup 38 add to scene maverig views groups abstractGroup AbstractGroup AbstractGroupPresenter class in method 38 maverig presenter group presenter abstractGroupAfdeffeSFene0 maverig views items abstractItem AbstractItem 24 method 39 AbstractItem class in maverig views items abstractItem add_v_point maverig views items abstractItem AbstractItem 39 method 39 AbstractPresenter class addItem maverig utils flowlayout FlowLayout maverig presenter abstractPresenter 27 method 52 AbstractView class in maverig views abstractView 45 4djust_line maverig views items line Line method 41 activate_logger i
35. AR VISIBLE 5 progress bar visible IS PROPERTY PANEL VISIBLE is property panel visible IS STATUS BAR VISIBLE is status bar visible ATTRIBUTE GRAPHS VISIBLE attribute graphs visible GENERAL SETTINGS general settings LANGUAGE language SIMULATION_SETTINGS simulation_settings IS DAY NIGHT VIS ENABLED is_day_night_vis_enabled IS HEAT VALUE EFFECT FOR GRIDS ENABLED 15 heat value effect for grids enabled IS HEAT VALUE EFFECT FOR CPP ENABLED heat value effect for cpp enabled HEAT VALUE EFFECT GRIDS heat value effect grids 4 1 maverig data 13 Maverig Documentation Release 1 0 5 HEAT VALUE EFFECT CPP heat_value_effect_cpp MODE_PANEL SETTINGS mode_panel_settings INVISIBLE_COMPONENTS invisible_components SHOW_INVISIBLE_COMPONENTS show_invisible_components 3 averig data config raster_pos pos Return the nearest PySide QtCore QPointF raster coord position to pos maverig data config ACTIVATED_COMPONENT_MODE maverig data config ACTIVATED_HAND_MODE maverig data config ACTIVATED_SELECTION_MODE maverig data config ACTIVATED_SIMULATION_MODE maverig data config ACTIVATED_AUTO_LAYOUT_MODE maverig data config SEPARATOR maverig data config SIMULATION SPEED maverig data config SIMULATION_PAUSED maverig data config CREATION_INVALID maverig data config DOCKING_VALID maverig data config L
36. ConsolePanel View method 47 method 48 IS_PROGRESS_BAR_VISIBLE init ui maverig views menuBarView MenuBarView maverig data config ConfigKeys attribute method 49 13 init ui maverig views modePanelView ModePanelView IS PROPERTY PANEL VISIBLE method 46 maverig data config ConfigKeys attribute init ui maverig views progressView Progress View 13 method 49 is_running maverig views positioning section Section init ui maverig views propertyPanelView PropertyPanelView method 41 method 49 is selectable maverig models model Model method init ui maverig views scenarioPanelView ScenarioPanelView 19 method 50 IS STATUS BAR VISIBLE init ui maverig views statusBarView StatusBarView maverig data config ConfigKeys attribute method 51 13 init ui maverig views toolbarView ToolbarView is under mouse maverig views groups abstractGroup AbstractGroup method 51 attribute 39 init view maverig presenter componentWizardPresenter GompolkeentWiredPresenteviews items abstractltem Abstractltem method 29 attribute 40 init view maverig views groups abstractGroup AbstractGistpmplete maverig views componentWizardView AttributeParameterPa method 38 method 47 initializePage maverig views component Wizard View Condi onnRepet maverig views componentWizard View IntroPage method 47 method 47 INPUT maverig data settings settings SettingTypes at itemAt maverig utils flowlayout FlowL
37. Error elem id Bases maverig utils scenarioErrors ScenarioError title console_text text info_text exception maverig utils scenarioErrors ScenarioFileNotFoundError elem id sim name Bases maverig utils scenarioErrors ScenarioError title console_text text info_text exception maverig utils scenarioErrors ScenarioSimulatorError elem id sim_name th Bases maverig utils scenarioErrors ScenarioError title console_text text info_text exception maverig utils scenarioErrors ScenarioComponentError elem id sim_model Bases maverig utils scenarioErrors ScenarioError title console_text text info_text exception maverig utils scenarioErrors ScenarioElementError elem id tb Bases maverig utils scenarioErrors ScenarioError title console_text text info_text exception maverig utils scenarioErrors ScenarioSimulationBranchLengthError elem id Bases maverig utils scenarioErrors ScenarioError 4 5 maverig utils 57 Maverig Documentation Release 1 0 5 title console_text text info_text exception maverig utils scenarioErrors ScenarioSimulationPowerflowError elem_ids Bases maverig utils scenarioErrors ScenarioError title console text text info text exception naverig utils scenarioErrors ScenarioSimulationRuntimeError ib Bases maverig uti
38. INE SHORT maverig data config DOCKING_INVALID maverig data config DOCKING NO ITEMS maverig data config ZERO_KM LENGTH maverig data config FILE_SAVED maverig data config FILE_OPENED maverig data config MULTI_SELECT_DIFFERENT_VALUES maverig data config SIMULATION_COMPLETED maverig data config create_components_language_po_entries components None Write keys found in components into language po files under maverig data languages in order to simplify the component developers translation process 4 1 3 maverig data dataHandler maverig data dataHandler ensure_ dir path Create directories contained in path if they don t exist maverig data dataHandler get maverig dir Return the maverig directory e g C Programs maverig maverig maverig data dataHandler get_relpath path Return the path relative to maverig directory For example get_relpath C Programs maverig maverig data will return maverigNdata 14 Chapter 4 Source Documentation Maverig Documentation Release 1 0 5 maverig data dataHandler get_normpath path sub_dir create_dir False Return the complete normalized path for the current os environment For example get_normpath maverigldatalconfigs1cfg json or get normpath cfg json sub_dir maverig data configs will return C Programs maverig maverig data configs cfg json Set create_dir to True if non existing directories should
39. Maverig Documentation Release 1 0 5 PG Maverig March 14 2015 Contents 1 Installation 3 WA WAU a EEE AREER Lia 3 2 User Manual 7 3 Project Documentation 9 4 Source Documentation 11 IMANES data e EN don AE TE AENA A O 11 4 mavens models 22522505 dr ad Pe y Go 15 4 3 34naveng presenter ui d how 9 A A 24 lt MAVEMP VIEWS Ad ia 38 43 mavenp utls e i fa a aa ac y eo e SI 4 6 TUAVEFISAMESTS 2 32 225 A Ah Re ed DIR CUR e Boe 59 AT maverigquEntryPoint bea ew eG Eee ee eG 0 69 4 8 maverig demo 24 9e oer Xo Y 4 Se ees 69 5 About Maverig 71 Contributors s och ees pee thee eR ee EE RS e ox Re deus ore BOR eA 71 6 Indices and tables 73 Python Module Index 75 Maverig Documentation Release 1 0 5 Contents Contents 1 Maverig Documentation Release 1 0 5 2 Contents CHAPTER 1 Installation Maverig supports the operation systems Linux OSX and Windows with Python 3 4 or higher installed For a Maverig installation the packetmanager pip is required Python 3 4 includes pip The command to install Maverig with pip is 5 pip install maverig In order to run Maverig properly you need to install the requirements in beforehand PySide 1 2 2 numpy gt 1 8 1 networkx gt 1 8 1 pyt
40. Presenter method 58 33 run maverig models modelSimulation SimulationProcess PropertyPanelView class in method 22 maverig views propertyPanelView 49 run maverig utils processServer Server method 55 run maverig views positioning section Section Q method 41 4 color in module maverig utils colorTools 51 run force layout maverig presenter scenarioPanelPresenter ScenarioPane qdatetime to datetime maverig presenter menuBarPresenter MenuBAffP8Bnt t static method 32 run_iteration maverig models modelSimulation SimulationServer method 23 R run_iteration maverig presenter progressPresenter ProgressPresenter method 33 raster_mode maverig models model Model attribute 19 run iteration maverig presenter utils forceEngine ForceEngine raster pos in module maverig data config 14 i raster_snap maverig presenter group_presenter abstractGroupPresen GroupPresenter method 25 run_refresh maverig presenter progressPresenter ProgressPresenter raster snap mode maverig models model Model at method 22 tribute 19 run slider maverig presenter progressPresenter ProgressPresenter raster snap v points maverig presenter group presenter abstractGro BLA bstractGroupPresenter attribute 24 raster_snapped maverig views positioning vPoint Change attribute 43 saved scenario copy maverig models model Model at read components in module maverig data config 12 tribute 17 r
41. _settings maverig presenter settingsPresenter SettingsPresenter add new icon maverig views component Wizard View IntroPage method 36 method 47 args maverig utils processServer Call_Pack attribute 54 add_new_parameter_tab attr_is_multivalue maverig models model Model maverig views component Wizard View AttributeParameter hod 20 method 47 ATTRIBUTE GRAPHS VISIBLE maverig data config ConfigKeys attribute 13 77 Maverig Documentation Release 1 0 5 AttributeCell class in CHECK BOX maverig data settings settings SettingTypes maverig views attributePanel View 45 attribute 12 AttributePanelPresenter class in check_snap_permission maverig presenter attributePanelPresenter maverig presenter group_presenter abstractGroupPresenter Abstr 27 method 25 AttributePanelView class in check spinbox maverig presenter propertyPanelPresenter PropertyPanelP maverig views attributePanelView 45 method 34 AttributeParameterPage class in check_state maverig views componentWizardView AttributeTab maverig views componentWizardView 47 method 47 AttributeTab class in maverig views componentWizardViewheck_state maverig views componentWizardView IntroPage 47 method 47 auto_update_components_languages check state maverig views component Wizard View ParameterTab maverig models model Model attribute method 47 16 CheckBoxSetting class in AutoRowTableWidget class in maverig data settings abstr
42. actSettings 11 maverig utils tableWidgets 58 Circle class in maverig views items circle 40 avoid invalid maverig views positioning vPoint Change circle style maverig views items circle Circle attribute attribute 43 40 avoid invalid positions clear container maverig views attributePanel View AttributePanel View maverig presenter group_presenter abstractGroupPresenter Abshad GroupPresenter method 25 clear effects maverig views groups abstractGroup AbstractGroup method 38 B clear effects maverig views items abstractItem AbstractItem button mouse move maverig views modePanelView ModePanelVidWethod 40 method 46 clear prop grid maverig views propertyPanelView PropertyPanel View button mouse pressed maverig views modePanelView ModePanel Wishod 49 method 46 clear state of charge effect maverig views groups abstractGroup AbstractGroup C method 38 calculated maverig views positioning vPoint Change at clear state of charge effect tribute 43 maverig views items abstractItem AbstractItem method 40 Call Pack class in maverig utils processServer 54 dock maverig models model Model method 21 clear state of charge tip can dock maverig presenter group presenter abstractGroupPresente ed BPS AbstractGroup method 24 method 38 category update maverig views componentWizard View Td Bastate_of_charge_tip 0 method 47 maverig views items abstractItem Ab
43. ag is used when the presenter applies the settings install_language do_update True Sets chosen language if it is changed by user This is handled separately to prevent handling of unnecessary events in whole application if the language hasn t been changed apply settings Triggers applying of settings apply setting tab setting do_update True Applies the given setting 4 3 14 maverig presenter statusBarPresenter class maverig presenter statusBarPresenter StatusBarPresenter presenter manager model cfg Bases maverig presenter abstractPresenter AbstractPresenter Presenter class that acts as the event handler between the view and the model for the status bar on_change_visibility triggered Toggles the visibility of the status bar Saves the visibility state in the config language Reacts on language changes Triggers view reinitialization so that the view adopts the chosen language on drag Reacts if an element is dragged Displays information that dragging is active currently on mode Reacts on mode changes Displays the chosen mode in the status bar on vid speed event Reacts on changes of the progress slider speed Displays the current speed in the status bar on program mode Reacts on program mode changes The status bar is visible in every program mode if the user didn t hide it error message Sets the given message in the status bar and applies a red background to the status bar
44. anch_5 0 CSV House_4 1 py params bus_type PQ base_kv 0 23 fbus null tbus null atrrsts vl 230 0 0 0 0 0 0201 Vm 230 14789278916751 230 23588331696217 230 22035839218473 381 21 174 35 116 43999999999998 Va 0 17130258343689386 0 17013456872934510 0 16981416413842957 House 1 sse history_undo None The history list of scenarios that can be undone history_undo 1 is the nearest to the current scenario history_redo None The history list of scenarios that can be redone history_redo 1 is the nearest to the current scenario tmp_scenario_copy None A copy of the current scenario since the last history relevant change occured saved_scenario_copy None of the last saved scenario Use self saved_scenario_copy self tmp scenario copy comparison to check whether scenario has changed since last save uid None A dict mapping sim_model to current id counter for creating elements clipboard_elements None A dict mapping elem_id to element instance containing all the elements which are currently in clipboard graph The maverig models modelGraph ModelGraph as networkx Graph representation of the sce nario 4 2 maverig models 17 Maverig Documentation Release 1 0 5 simulation The maverig models modelSimulation SimulationServer which manages the simula tion components A dict mapping sim_m
45. attrs maverig models model Model method 20 get shared published params maverig models model Model method 20 get short value text in module maverig utils numTools 54 from_dockables maverig presenter group presenter abstra eGr pHatsefreaayarigrmdalspnedaldModel method method 24 func name maverig utils processServer Call Pack attribute 54 G GENERAL SETTINGS maverig data config ConfigKeys Set state_of_charge attribute 13 general_settings_tab maverig data settings settings Setting attribute 12 get_attr_value maverig models model Model method 20 20 get_simulator_names maverig presenter componentWizardPresenter Com method 29 get speed arr maverig utils forceatlas2 SpeedModel method 53 maverig models model Model method 21 yget_temp_file in module maverig data dataHandler 15 get_u_heat_value method 21 maverig models model Model Index 81 Maverig Documentation Release 1 0 5 get_unit_prefixed in module maverig utils numTools IconGroup class in maverig views groups iconGroup 54 39 go_to_time_dialog in module maverig views dialogs IconGroupPresenter class in 48 maverig presenter group_presenter iconGroupPresenter graph maverig models model Model attribute 17 26 group presenters maverig presenter scenarioPanelPresenteriSupartrinitiheW dsanteodule maverig data config 12 attribute 35 indirect maverig views po
46. averig models model Model method 22 validation maverig presenter group presenter abstractGroupPresenter AbstractGroupPresenter method 25 value changed maverig presenter property PanelPresenter Property PanelPresenter method 34 vid speed maverig models model Model attribute 18 vid speed rel maverig models model Model attribute 18 visible maverig views items abstractItem AbstractItem attribute 40 VisSimulator class in maverig utils visSimulator 58 maverig presenter group_presenter abstractGroupPresenter AbstractGroupPresenter method 24 VPMouse class in maverig views positioning vPoint 44 VPoint class in maverig views positioning vPoint 43 W wheelEvent maverig views scenarioPanelView ScenarioPanel View method 50 write maverig models modelSimulation SimulationServer method 23 write maverig utils logger StreamToLogger method 54 write_config in module maverig data config 13 write_json in module maverig data config 13 Z z_value maverig views items abstractltem Abstractltem attribute 39 ZERO KM LENGTH in module maverig data config 14 zoom maverig presenter scenarioPanelPresenter ScenarioPanelPresenter method 34 zoom fit maverig presenter scenarioPanelPresenter ScenarioPanelPresenter method 35 Index 97
47. averig tests test groupPresenter TestGroupRrstsant ollow maverig tests test_vPoint TestVPoint method 61 method 69 test_remove_selected_component_and_restore_default_contpenanth ndle maverig tests test_event TestEvent maverig tests test modePanelPresenter TestModePanelPresanttirod 60 method 59 test update maverig tests test model TestModel test reset maverig tests test_statusBarPresenter TestStatusBarPresenteathod 64 method 68 test update all maverig tests test model TestModel test run force layout maverig tests test scenarioPanelPresenter TestfxthnaljioP nelPresenter method 67 test validate scenario maverig tests test model TestModel test run iteration maverig tests test progressPresenter TestProgressBietiuniyr65 method 66 test validation maverig tests test groupPresenter TestGroupPresenter test run slider maverig tests test progressPresenter TestProgressPresetlexl 61 method 66 test value changed maverig tests test propertyPanelPresenter TestPropet test select all active elements method 66 maverig tests test_scenarioPanelPresenter TestSctastrioB heiPresagt ests test_groupPresenter TestGroupPresenter method 67 method 60 test select all elements test zoom maverig tests test scenarioPanelPresenter TestScenarioPanelP maverig tests test 1 7 method 67 test zoom fit maverig tests test_scenari
48. ayout method tribute 12 52 InputSetting class in maverig data settings abstractSettings 11 K install language maverig presenter settingsPresenter SettihgsPressitvent maverig utils table Widgets CellLineEdit method 36 method 58 IntroPage class in maverig views componentWizardView kwargs maverig utils processServer Call_Pack attribute 47 INVISIBLE_COMPONENTS maverig data config ConfigKeys attribute 14 is_acceptable module maverig views componentWizard View 47 IS_ATTRIBUTE_PANEL_VISIBLE maverig data config ConfigKeys attribute 13 IS_COMPONENT_PANEL_ VISIBLE maverig data config ConfigKeys attribute 54 L lab_color in module maverig utils colorTools 51 LANGUAGE maverig data config ConfigKeys attribute 13 language maverig models model Model attribute 18 languages maverig data settings settings Settings at tribute 12 last positions maverig views positioning vPoint VPoint attribute 43 Index 83 Maverig Documentation Release 1 0 5 length arr in module maverig utils forceatlas2 53 Line class in maverig views items line 41 line_style maverig views items line Line attribute 41 LINE_TOO_SHORTQ in module maverig data config 14 LineGroup class in maverig views groups lineGroup 39 LineGroupPresenter class in maverig presenter group_presenter lineGroupPresenter module 26 maverig presenter group_presenter linelconGro
49. bute 55 attribute 57 text maverig utils scenarioErrors ScenarioFileNotFoundErramp scenario copy maverig models model Model at attribute 57 tribute 17 text maverig utils scenarioErrors ScenarioOfflineElementEitrdockables maverig presenter group_presenter abstractGroupPresenter attribute 56 method 24 text maverig utils scenarioErrors ScenarioRefBusConnectiohikirtoarPresenter class in attribute 56 maverig presenter toolbarPresenter 36 text maverig utils scenarioErrors ScenarioRefBusCountErrdfoolbarView class in maverig views toolbarView 51 attribute 57 translate maverig views attributePanel View AttributeCell text maverig utils scenarioErrors ScenarioRefBusMissingError method 45 attribute 56 translate maverig views attributePanel View AttributePanelView text maverig utils scenarioErrors ScenarioSimulationBranchLengthEmusthod 45 attribute 58 translate maverig views consolePanel View ConsolePanel View text maverig utils scenarioErrors ScenarioSimulationPowerflowError method 48 attribute 58 translate maverig views progress View Progress View text maverig utils scenarioErrors ScenarioSimulationRuntimeError method 49 attribute 58 trigger_section maverig views positioning vPoint VPoint text maverig utils scenarioErrors ScenarioSimulatorError attribute 43 attribute 57 text maverig utils table Widgets AutoRow TableWidget U method 58 UI_STATE maverig data config ConfigKeys attribute
50. ce change None The last proposed Change reason of position change parent_item None The parent maverig views items abstractItem AbstractItem item where this virtual point is added to AbstractItem v_points followers None Virtual points that follow this VPoint A dict of virtual point to adjustment method that reacts on position_changed events pos The position of the virtual point Use set_pos if you want to change the position with a specified change reason Setting this property will result in a simple Change applied change reason set_pos value change Set position Qt Core QPointF with change reason move_pos delta change Move by delta Qt Core QPointF with change reason follow v point trigger changes raster snapped moved avoid_invalid followed calcu lated snapped result changez followed keep distancez True Follow v point Adjust this VPoint when v point position change applies to trigger changes This VPoint will change it s position with the given result change reason Set keep distance to False if VPoint should only be moved relatively to v point movements Otherwise distance to v point is being fixed as Ot Core QPointF vector from now unfollow v point Stop following v point follows v point Return whether this VPoint follows v point when v point moves fix v point Follow v point and vice versa unfix v point Loose any attach
51. connectables other vps vp Returns a list of virtual points from other vps to which the virtual point vp can dock in or dock out 24 Chapter 4 Source Documentation Maverig Documentation Release 1 0 5 new_connectables other_vps vp Returns a list of virtual points from other_vps to which the virtual point vp can dock in or dock out if they are not docked already non_connectable other_vps vp Returns a list of virtual points from other_vps to which the virtual point vp can t dock dock from_vp to_vp Docks virtual points and applies docking in model undock from_vp to_vp Undocks virtual points and applies undocking in model check_snap_permission do_validate False Checks whether the view has permission to snap Optionally validates snap restrictions on_position_changed vp delta change section Applies docking undocking of the view within snap zone Sets v_point position in model on_exit_presenter_section section Informs the user about docking validity via status bar messages validation vp snap_zone None Updates the views validity snap_dock Snaps the view to the raster raster_snap Snaps the view to the raster if raster mode is enabled avoid invalid positions Avoids invalid positions by moving the view back to last valid positions on mouse released mouse pos Applies raster snapping to the view if view is released by the mouse on elements Reacts on changes on element
52. d 37 on param maverig presenter group presenter abstractGroupPresertteggebstQc finvunBrpsegtater menuBarPresenter MenuBarPresente method 25 method 31 on param maverig presenter group presenter lineGroupPxresenter Presentes presenter toolbarPresenter ToolbarPresenter method 26 method 37 on param maverig presenter property PanelPresenter Property rdaemfiermat maverig presenter progressPresenter ProgressPrese method 34 method 33 on paste triggered maverig presenter menuBarPresenter MiensdleaPrdidenterpered method 30 maverig presenter menuBarPresenter MenuBarPresenter on pause triggered maverig presenter menuBarPresenter MenuBarBneshnt r 30 method 31 on selection maverig presenter attributePanelPresenter AttributePanelPre on position changed maverig presenter group presenter abstractGraugtBosberit r AbstractGroupPresenter method 25 on selection maverig presenter group presenter abstractGroupPresenter method 25 Index 87 Maverig Documentation Release 1 0 5 on_selection maverig presenter menuBarPresenter MenuBomPredesstared_event maverig presenter statusBarPresenter StatusBarPrese method 32 method 36 on_selection maverig presenter propertyPanelPresenter Propentydiand Presgpered maverig presenter menuBarPresenter MenuBarPre method 34 method 31 on selection maverig presenter toolbarPresenter ToolbarPresentem_fit_triggered maverig
53. d 63 maverig tests test_statusBarPresenter TestStatusBarPresenter test_on_program_mode method 68 maverig tests test progressPresenter TestProgressBsespntam is multivalue method 65 maverig tests test model TestModel method 65 94 Index Maverig Documentation Release 1 0 5 test_paste_elements maverig tests test scenarioPanelPreseesersFogtSdeden pBPnngHrgsenteiest progressPresenter TestProgressPresent method 67 method 66 test paste from clipboard test success maverig tests test statusBarPresenter TestStatusBarPresentei maverig tests test model TestModel method method 68 63 test switch modes maverig tests test model TestModel test program mode maverig tests test consolePresenter TestConsolaRithxahtet 3 method 60 test to dockables maverig tests test groupPresenter TestGroupPresenter test program mode maverig tests test modePanelPresenter TestModedthnel Presenter method 60 test undo maverig tests test model TestModel test raster snap maverig tests test groupPresenter TestGroupPresenteethod 63 method 61 test undock maverig tests test groupPresenter TestGroupPresenter test raster snap v points method 61 maverig tests test_groupPresenter TestGroupPres teserundock maverig tests test_model TestModel method 60 method 64 test_redo maverig tests test_model TestModel test unfix maverig tests test_vPoint TestVPoint method 63 method 69 test_remove m
54. d unchecked enabled disabled of the de pending actions on vid speed Reacts on changes of the progress slider speed and toggles the state checked unchecked enabled disabled of the depending actions on_program_mode Reacts on program mode changes and toggles the state checked unchecked enabled disabled of the de pending actions on_selection Reacts on selection changes and toggles the state checked unchecked enabled disabled of the depending actions on clipboard Reacts on clipboard changes and toggles the state checked unchecked enabled disabled of the depending actions static datetime to qdatetime date time static qdatetime to datetime qdatetime 4 3 9 maverig presenter presenterManager class maverig presenter presenterManager PresenterManager model cfg Bases builtins object Container class for all presenters Each presenter may call methods on other presenters through this container 32 Chapter 4 Source Documentation Maverig Documentation Release 1 0 5 4 3 10 maverig presenter progressPresenter class maverig presenter progressPresenter ProgressPresenter presenter manager model cfg Bases maverig presenter abstractPresenter AbstractPresenter Presenter class that acts as the event handler between the view and the model for the progress bar on language Reacts on language changes Triggers view reinitialization so that the view adopts the chosen language on sl
55. delta on position changed wp delta remove maverig views items circle class maverig views items circle Circle parent group pos style Bases maverig views items abstractItem AbstractItem init graphics item move pos delta on position changed wp delta change section circle style maverig views items icon class maverig views items icon Icon parent group pos icon path Bases maverig views items abstractItem AbstractItem init graphics item icon path icon path move pos delta on position changed vp delta change section 40 Chapter 4 Source Documentation Maverig Documentation Release 1 0 5 maverig views items line class maverig views items line Line parent group start pos end pos line style Bases maverig views items abstractItem AbstractItem init graphics item move pos delta on position changed vp delta change section adjust line adjusts the line position to the endpoints line style 4 4 3 maverig views positioning naverig views positioning section maverig views positioning vPoint maverig views positioning section class naverig views positioning section Section name next called by remote False Bases builtins object synchronization of critical sections and automatic walk trough specified section sequences All section partici pants are notified via events when a section is entered and leaved exit
56. e Sets a parameter of an element to an given value 64 Chapter 4 Source Documentation Maverig Documentation Release 1 0 5 test get attr values Return values of an attribute in a specific timestamp area test get attr value Return a value of an attribute on an specific timestamp test get u heat value Return the u_heat value from an element on a specific timestamp test get i heat value Return the i heat value from an element on a specific timestamp test get p level Return the p level from an element on a specific timestamp test get state of charge Return the state of charge from an element on a specific timestamp test attr is multivalue Return True if an attribute is available in elem ids test param is multivalue Return whether parmeter values differ in elements of elem_ids test docking attrs Return a set of valid attribute connection tuples from one element to another test handle scenario error Creates output and error events and selects elements in elem_ids for visual feedback of scenario errors test_validate scenario Validates the scenario test get shared published attrs Return a filtered list of published attribute names which are contained in each element of elem ids 4 6 7 maverig tests test progressPresenter class maverig tests test progressPresenter TestProgressPresenter methodName runTest Bases unittest case TestCase setUp t
57. e 66 map elem to mosaik maverig models model Simulation 888848 5 1 module 66 method 23 maverig tests test_settingsPresenter module 67 mappings port vp maverig presenter group_presenter abstriRWVABEprrisbmters ue erDreug ies an adule 68 attribute 24 maverig tests test_toolbarPresenter module 68 mappings port vp maverig presenter group_presenter iconGHpPEdeshteeteonCnion Predah 69 attribute 26 maverig utils colorTools module 51 mappings port vp maverig presenter group_presenter line GRAYBPM WH fet Gre dpb seater attribute 26 maverig utils flowlayout module 52 mappings port vp maverig presenter group_presenter node AayepRresus attribute 26 maverig data config module 12 maverig data dataHandler module 14 maverig data settings abstractSettings module 11 maverig data settings defaultSettings module 12 maverig data settings heatValueEffect module 12 maverig data settings settings module 12 maverig demo module 69 maverig EntryPoint module 69 maverig models model module 15 maverig models modelGraph module 22 maverig models modelSimulation module 22 maverig presenter abstractPresenter module 27 maverig presenter attributePanelPresenter module 27 maverig presenter componentWizardPresenter module 29 maverig presenter consolePanelPresenter module 29 maverig presenter grou
58. e Documentation describes classes and methods in Maverig source code at https bitbucket org Sash22 I maverig src This may help you to understand the software in detail or if you plan further development of additional features or component descriptions 4 1 maverig data 4 1 1 maverig data settings maverig data settings abstractSettings maverig data settings defaultSettings maverig data settings heatValueEffect maverig data settings settings maverig data settings abstractSettings class maverig data settings abstractSettings Tab Bases builtins object class maverig data settings abstractSettings Setting Bases builtins object class maverig data settings abstractSettings CheckBoxSetting Bases maverig data settings abstractSettings Setting class maverig data settings abstractSettings InputSetting Bases maverig data settings abstractSettings Setting class maverig data settings abstractSettings ComboBoxSetting Bases maverig data settings abstractSettings Setting 11 Maverig Documentation Release 1 0 5 maverig data settings defaultSettings maverig data settings heatValueEffect class maverig data settings heatValueEffect HeatValueEffectKeys Bases builtins object EFFECT_BAR Bar EFFECT_BLUR Blur EFFECT_COLOR Color EFFECT_SHADOW Shadow EFFECT_TRANSPARENCY Transparency maverig data settings settings class maverig data sett
59. e elements Pastes all copied elements and selects them select all elements Selects all elements select all active elements mouse pos Selects all elements depending on the current active mode on attrs Reacts on value changes of attributes Updates the background visualization of the date time if day and night visualization is enabled on mode Reacts on mode changes Updates the views drag mode interactive mode and mouse cursor depending on the active mode on drag Reacts if an element is dragged into the scene from the component panel on elements Reacts on changes on elements count and updates the view on error title text info text elem ids Reacts on model scenario errors and displays an error dialog run force layout Triggers running of the force atlas algorithm group presenters Returns a set of all group presenters groups Returns a set of all groups 4 3 13 maverig presenter settingsPresenter class maverig presenter settingsPresenter SettingsPresenter presenter manager model cfg Bases maverig presenter abstractPresenter AbstractPresenter Presenter class that acts as the event handler between the view and the model for the settings dialog on change visibility triggered Shows the settings dialog 4 3 maverig presenter 35 Maverig Documentation Release 1 0 5 on_language_changed Sets flag do_change_language to true if the language has been changed The fl
60. ead_config in module maverig data config 13 scenario maverig models model Model attribute 19 read_json in module maverig data config 13 ScenarioBaseVoltageLevelError 56 read simulators in module maverig data config 12 ScenarioComponentError 57 redo maverig models model Model method 19 ScenarioConnectionError 56 refreshBg maverig views scenarioPanel View ScenarioPanererapioDatafileError 57 method 50 ScenarioElementError 57 register_function maverig utils processServer Server ScenarioEmptyError 56 method 55 ScenarioError 55 register_process_factory ScenarioFileNotFoundError 57 maverig utils processServer ProcessServer ScenarioOfflineElementError 56 method 55 ScenarioPanelPresenter class in remove maverig presenter group_presenter abstractGroupPresenter ABUELOS method 24 34 remove maverig views groups abstractGroup AbstractGroupenarioPanel View class in method 39 maverig views scenarioPanel View 50 remove maverig views items abstractItem AbstractItem ScenarioRefBusConnectionError 56 method 40 ScenarioRefBusCountError 56 remove_item maverig views groups abstractGroup Abstrae amp SRatig RefBusMissingError 56 method 38 ScenarioSimulationBranchLengthError 57 ScenarioSimulationPowerflowError 58 Index 89 Maverig Documentation Release 1 0 5 ScenarioSimulationRuntimeError 58 method 38 ScenarioSimulato
61. ed elements on copy triggered Copies selected elements on paste triggered Pastes copied elements and selects them on delete triggered Removes selected elements 30 Chapter 4 Source Documentation Maverig Documentation Release 1 0 5 on select all triggered Selects all elements depending on current mode on back to start triggered Sets progress slider position to first index on reduce speed triggered Reduces the speed of the progress slider on run triggered Starts the simulation and runs or pauses the progress slider Switches the program mode on stop triggered Stops the simulation and progress slider Switches to the composition program mode on pause triggered Pauses the progress slider and switches to the simulation paused program mode on increase speed triggered Increases the speed of the progress slider on forward to end triggered Sets progress slider position to last possible index on set time triggered Opens a dialog for changing time and speed parameters of the simulation Sets the start time the end time the step size and the progress slider speed returned from the dialog on go to triggered Opens a dialog where the user can set the progress slider position to a specific simulation time on hand mode triggered Toggles the hand mode for shifting the scenario on selection mode triggered Toggles the selection mode for element selection on raster m
62. ed in each element of elem ids attr is multivalue elem ids name Return whether current attribute values differ in elements of elem ids get attr values elem id name from time index 0 to time index None Get attribute values of name in element elem id in time interval from time index to time index where to time indexis sim timestamp if set to None 20 Chapter 4 Source Documentation Maverig Documentation Release 1 0 5 get_attr_value elem_id attr_name time_index None Get current attribute value of attr_name in element elem_id at current time index Return None if attribute does not exist get_u_heat_value elem_id Return the voltage dependent heat value of an element with component type PQBus or Branch get_i_heat_value elem_id Return the current dependent heat value of an element only with component type Branch get_p_level elem_id Return the power level of an element with component type House PV Transformer CHP WECS or EV get_state_of_charge elem_id Return the state of charge of an EV get_selected elem_id Return whether element elem_id is selected set_selected elem_id value Set whether element elem_id is selected docking_port ep Return an element docking port content Example docking port CSV House 1 1 returns the port 1 content of the element docking ports pos 1220 0 330 01 Fanes D out PyPower PQBus_3
63. els model Model attribute 18 sim_timestamp maverig models model Model attribute 18 simulation maverig models model Model attribute 17 simulation maverig models model ProgramMode at tribute 16 SIMULATION_COMPLETED in module maverig data config 14 simulation_paused maverig models model ProgramMode attribute 16 SIMULATION_PAUSED in module maverig data config 14 SIMULATION_SETTINGS maverig data config ConfigKeys attribute 13 simulation_settings_tab maverig data settings settings Settings attribute 12 SIMULATION_SPEED maverig data config 14 in module SPLITTER_MAIN_GEOMETRY maverig data config ConfigKeys 13 SPLITTER_MAIN_STATE maverig data config ConfigKeys 13 SPLITTER_RIGHT_GEOMETRY maverig data config ConfigKeys 13 SPLITTER_RIGHT_STATE maverig data config ConfigKeys 13 start maverig models modelSimulation SimulationServer method 23 maverig utils processServer ProcessServer method 55 start maverig utils processServer Server method 55 start_element maverig models modelSimulation SimulationProcess method 23 start_scoll_to_center_anim maverig views attributePanelView AttributeCell method 45 start simulation maverig models modelSimulation SimulationProcess method 23 start simulator maverig models modelSimulation SimulationProcess method 23 state checked maverig views componentWizardView Attribute Tab attribute 47 state checked
64. em until simulation is finished 22 Chapter 4 Source Documentation Maverig Documentation Release 1 0 5 run Process entry point short_name name Strip name extensions after start_simulation Start simulators and their elements in Mosaik and create and run Mosaik world The Simulation is beeing initiated in the following order 1 Prepare model and simulator specific parameters and configuration 2 Start the simulators with parameter values taken from element where possible 3 Start the element as Mosaik entity and optionally create needed parent entities 4 Connect entities as defined by dockings and component attribute descriptions 5 Create and connect maverig utils visSimulator VisSimulator which constantly sends simulated data to SimulationServer on each simulation step 6 Run the Simulation and return when it is finished start_simulator world elem Starts a mosaik_simulator with parameters specified in prepared element simulator parameter dict elem simulator start_element elem Create an element in Mosaik with needed params specified in simulator meta and collected from elem Apply the mapping of mosaik element id mosaik_full_id to elem so that the data pushed to Simulation Server by maverig utils visSimulator VisSimulator can be mapped back to elem_id on SimulationServer run iteration side later on class maverig models modelSimulation SimulationServer model
65. er 27 Maverig Documentation Release 1 0 5 on_selection Reacts on selection changes Creates attribute cells for the attribute panel on attrs Reacts on value changes of attributes Updates the displayed values in the attribute panel on program mode Reacts on program mode changes In the composition program mode the attribute panel is hided while the panel is visible in the simulation program mode if the user didn t hide it 4 3 5 maverig presenter modePanelPresenter class maverig presenter modePanelPresenter ModePanelPresenter presenter manager model cfg Bases maverig presenter abstractPresenter AbstractPresenter Presenter class that acts as the event handler between the view and the model for the mode panel on_btn_context_menu event comp_name Creates and opens a context menu when the user performs a right mouse click on a component button on_context_menu event Creates and opens a context menu when the user performs a right mouse click in the component panel remove_selected_component Removes a component hide_selected_component Hides a component show_invisible components Toggles the visibility of hided components in component panel restore default components Removes all components from and restores the default components The list of hided components in the config gets cleared selection mode btn clicked Switches the mode between selection mode and component mode
66. esenter lineGroupPresenter LineGroupPresenter presenter manager model elem id cfg Bases maverig presenter group_presenter abstractGroupPresenter AbstractGroupPresenter Presenter class that acts as the event handler between the view and the model for the line and line icon group mappings_port_vp Maps the port and the v_point e g 507 endpoint_left vp_center 1 endpoint_right vp_center on_param maverig presenter group presenter lineIconGroupPresenter maverig presenter group presenter nodeGroupPresenter class maverig presenter group_presenter nodeGroupPresenter NodeGroupPresenter presenter manager model elem id cfg Bases maverig presenter group_presenter abstractGroupPresenter AbstractGroupPresenter Presenter class that acts as the event handler between the view and the model for the node group mappings_port_vp Maps the port and the v point e g 0 node vp_center 4 3 2 maverig presenter utils maverig presenter utils forceEngine 26 Chapter 4 Source Documentation Maverig Documentation Release 1 0 5 maverig presenter utils forceEngine class maverig presenter utils forceEngine ForceEngine scenario panel presenter model scene Bases builtins object run iteration apply positions applies node position movements on mapped virtual points in scene maverig presenter abstractPresenter naverig presenter attributePanelPresenter naverig prese
67. eser 1 static method 32 nion EN c 5 T on add component maverig presenter componentWizardPresenter Comp maverig views modePanelView 46 method 29 reece 129 ered method maverig presenter componentWizardPresenter ComponentWizar mouse moved maverig presenter scenarioPanelPresenter ScenarioPape Presenigr method 54 on attrs maverig presenter attributePanelPresenter AttributePanelPresente mouse released maverig presenter scenarioPanelPresenter Scenari hanlbaysogter method 34 motseBoubleClickEvent on attrs maverig presenter group_presenter abstractGroupPresenter Abstr a method 26 maverig views scenarioPanel View ScenarioPanel View irs maverig presenter scenarioPanelPresenter ScenarioPanelPresente method 50 method 35 mouseMoveEvent maverig views scenarioPanelView ScenarioPane View on auto layout triggered method 50 2 3 maverig presenter menuBarPresenter MenuBarPresenter mousePressEvent maverig views scenarioPanelView ScenarioPanel View o d 32 method 50 e on auto layout triggered mouseReleaseEvent maverig views scenarioPanel View ScenarioPangl View g presenter toolbarPresenter ToolbarPresenter method 37 move_pos maverig views items abstractItem AbstractItem bale sar m dO SI maverig presenter menuBarPresenter MenuBarPresenter move pos maverig views items circle Circle method method 31
68. est on slider moved Sets simulation data index to current slider position Keeps slider position valid if the mosaik simulation progress isn t as far as the position The model performs lazy updates on the UI through the refresh timer to prevent application from speed and graph animation issues test on change visibility triggered Toggles the visibility of the progress bar Saves the visibility state in the config test on change dateformat Toggles displaying of the date test on screen dateformat Reacts on changes of the date display Displays the date as calendar date or as countdown test on progress Applies the current progress to the progress bar test on sim Reacts on simulation data index changes Updates the slider position and the date 4 6 maverig tests 65 Maverig Documentation Release 1 0 5 test_on_program_mode React on model program mode changes test_run_slider Starts the progress slider test stop slider Stops the progress slider test run iteration Updates the simulation data index which is responsible for moving the progress slider 4 6 8 maverig tests test propertyPanelPresenter class maverig tests test_propertyPanelPresenter TestPropertyPanelPresenter methodName runTest Bases unittest case TestCase setUp test on change visibility triggered Test the hidden feature of the property panel test check spinbox Check that the spinbox switch
69. ethod 60 set param value maverig models model Model setUp maverig tests test groupPresenter TestGroupPresenter method 20 method 60 set parameter style maverig views property Panel View Proptip dnelvGnw tests test_menuBarPresenter TestMenusBarPresenter method 50 method 62 set_pos maverig models model Model method 21 setUp maverig tests test_model TestModel method 63 set_pos maverig models modelGraph ModelGraph setUp maverig tests test modePanelPresenter TestModePanelPresenter method 22 method 59 set pos maverig views positioning vPoint VPoint maverig tests test progressPresenter TestProgressPresenter method 44 method 65 set producer bar effect setUp maverig tests test propertyPanelPresenter TestPropertyPanelPreser maverig views groups abstractGroup AbstractGroup method 66 90 Index Maverig Documentation Release 1 0 5 setUp maverig tests test scenarioPanelPresenter TestScenSnmRintedhiktsantss class in method 66 maverig models modelSimulation 22 setUp maverig tests test_settingsPresenter TestSettingsPreSamtelationServer class in method 67 maverig models modelSimulation 23 setUp maverig tests test_statusBarPresenter TestStatusB arPinendateonTimeDialog class in maverig views dialogs method 68 48 setUp maverig tests test_toolbarPresenter TestToolBarPresemtelator_update maverig views componentWizard View IntroPage method 68 method 47
70. ews groups abstractGroup AbstractGroup maverig views groups lineIconGroup class maverig views groups linelconGroup LineIconGroup positions icon file Bases maverig views groups abstractGroup AbstractGroup maverig views groups nodeGroup class maverig views groups nodeGroup NodeGroup positions Bases maverig views groups abstractGroup AbstractGroup 4 4 2 maverig views items e maverig views items abstractItem maverig views items circle maverig views items icon maverig views items line maverig views items abstractItem class maverig views items abstractItem AbstractItem parent group Bases builtins object init graphics item post initialization of graphics item This method needs to be called after graphics item initialization in subclasses add to scene scene add v point v point z value 4 4 maverig views 39 Maverig Documentation Release 1 0 5 visible enabled opacity set_color_effect color transparency set shadow effect color shadow faint offset1 offset2 clear effects clear state of charge effect clear state of charge tip clear state of charge tip bg set consumer bar effect color pos width height set producer bar effect color pos width height set state of charge bar color pos width height set state of charge tip color pos width height set state of charge tip bg color pos width height selected selectable is under mouse move pos
71. g utils maverig_csv CSV method 54 console text maverig utils scenarioErrors ScenarioBase VoltagalefyelError maverig utils visSimulator VisSimulator attribute 56 method 59 console text maverig utils scenarioErrors ScenarioComponentkrrcaattribute_cell maverig views attributePanel View AttributePanel Vie attribute 57 method 45 console text maverig utils scenarioErrors ScenarioConnectiwaf rroattribute_panel maverig views attributePanel View AttributePanel attribute 56 method 45 console text maverig utils scenarioErrors ScenarioDatafilelermate boolean property cell attribute 57 maverig views propertyPanelView PropertyPanelView console text maverig utils scenarioErrors ScenarioElementError method 49 attribute 57 create btn context menu console text maverig utils scenarioErrors ScenarioEmptyError maverig views modePanelView ModePanelView attribute 56 method 46 console text maverig utils scenarioErrors ScenarioError create button maverig views modePanelView ModePanelView attribute 55 method 46 console text maverig utils scenarioErrors ScenarioFileNotkweatEnategory_layout attribute 57 maverig views modePanelView ModePanelView console text maverig utils scenarioErrors ScenarioOfflineElementErrmethod 46 attribute 56 create components grid console text maverig utils scenarioErrors ScenarioRefBusConnectior Hraverig views modePanelView ModePanel View attribute 56 method 46 console text maverig u
72. ger pos_section exit one VPoint can simply be set like this v_point pos pos Change Change applied In this case the pos_section enter and exit will be called remotely by VPoint position setter During the time window marked by pos_section enter adjust section exit all position changes are applied on old position values in order to prevent side effects 2 mouse section Mouse section is entered directly after all positioning has been applied on pos section VPoint on enter section Any mouse moved virtual point triggers adjustment as specified in VPoint trigger section on mouse section 3 adjust section Adjustment section is entered after primary positioning and mouse moved posi tions VPoint followings and fixings will be applied by handling VPoint position changed on previous position changes VPoint pos calls still return the old position The new set position is saved internally at VPoint new pos and will be applied to VPoint pos after all adjustment changes have been finished VPoint on exit section 4 item section Item section is entered after all affected positions and their followings fixings have been updated All item positions can now be adapted to VPoint positions by registering on VPoint position changed event def on position changed self vp delta change section if section section manager item section self graphics item setPos self graphics item pos delta 5 presenter section
73. he socket run Repeatedly listens to incoming function calls as Call Pack and trigger them stop Stop listening to incoming function calls and close socket class naverig utils processServer ProcessServer interval 40 Bases maverig utils processServer Server A server managing subprocesses and their incoming function calls register_process_factory process_factory Register a factory method to create a subprocess start Start subprocesses and constantly listen to incoming function calls stop Stop subprocesses and stop listening to incoming functions class maverig utils processServer MethodProxy server proxy func name Bases builtins object A callable method proxy that can directly be called on the parent ServerProxy with same name and parameters like the Server function class maverig utils processServer ServerProxy server Bases builtins object Subprocess client side access to registered server functions Calls can currently only be one directional Function return values are ommitted init socket Activate the socket for sending method calls to Server from Subprocess This method must be called from Subprocess close socket Close the Subprocess socket to Server This method must be called from Subprocess 4 5 9 maverig utils scenarioErrors exception maverig utils scenarioErrors ScenarioError Bases builtins Exception title console text text info text elem ids
74. hon dateutil gt 2 2 matplotlib gt 1 4 2 colormath gt 2 0 2 polib gt 1 0 6 pyzmq 14 3 1 mosaik 2 1 2 mosaik api 2 1 mosaik pypower gt 0 7 Follow the mosaik installation guide to install mosaik and mosaik_pypower dependencies Note In Windows some libraries might not install out of the box with pip In this case you can download them as wheel files from http www lfd uci edu gohlke pythonlibs and install them with pip install wheel filename To run Maverig just type the command maverig or go into the Maverig folder in Python s site packages and run python EntryPoint py Run python demo py to start with a demo scenario 1 1 Linux Here is some detailed description how to install the latest Python and Maverig version from source for linux distribu tions If you just want to try out Maverig without installing Python and dependencies you can download the frozen exe cutable from here unzip it and run naverig sh Maverig Documentation Release 1 0 5 1 1 1 Install Python Install python3 and python3 dev python3 dev support might be needed by some requirements or additional tools like cx_Freeze sudo apt get install python3 python3 dev or install Python directly from source 5 wget https www python org ftp python 3 4 3 Python 3 4 3 tgz Download Python Source 5 tar xfz Python 3 4 3 tgz Extract tar gz archive cd Python 3 4 3 Run terminal in python source folder Python 3 4 3 S
75. ich represents a position in scenario Each Virtual Point can follow other Virtual Points via event triggers and adjustment functions on specific changes When setting a position Position Changed Events are fired section by section through stacked lay ers where each section stands for a different type of position adjustments that would conflict each other if they would all run in one section The position gets applied on pos when the internal layer section_manager adjust_section is being exited This is in order to make multiple relative posi tion changes based on the previous position without summing up the movements which would result in negative side effects See maverig views positioning section SectionManager documentation for how position ing works in detail position_changed None The position changed event with current delta QtCore QPointF change Change and section maverig views positioning section Section as params last_positions None A list of last valid positions controlled by maverig presenter group_presenter abstractGroupPresente in order to undo position changes to not allowed positions trigger section None The section layer maverig views positioning section Section on which adjustment to other virtual points movements should be done new_pos None The last proposed new position 4 4 maverig views 43 Maverig Documentation Release 1 0 5 delta None The last proposed position change distan
76. ider moved position Sets simulation data index to current slider position Keeps slider position valid if the mosaik simulation progress isn t as far as the position The model performs lazy updates on the UI through the refresh_timer to prevent application from speed and graph animation issues on change visibility triggered Toggles the visibility of the progress bar Saves the visibility state in the config on change dateformat Toggles displaying of the date on screen dateformat Reacts on changes of the date display Displays the date as calendar date or as countdown on progress Applies the current mosaik simulation progress to the progress bar on sim Reacts on simulation data index changes Updates the slider position and the date on vid speed Reacts on changes of the progress slider speed Stops und starts the progress slider to adopt new speed on program mode Reacts on program mode changes In the composition program mode the progress bar is hided while the progress bar is visible in the simulation program mode if the user didn t hide it In addition the progress slider and the progress bar are set back if application switches to the composition program mode run slider Starts the progress slider stop slider Stops the progress slider run iteration Updates the simulation data index which is responsible for moving the progress slider run refresh Connected to timer which is responsible f
77. iew and the model for the scenario panel adjust scene rect Fits the size of the scene to the elements bounding rect on selection changed Adopts selection changes in model Adapts visibility and z mode of elements on context menu event Creates and opens a context menu when the user performs a right mouse click in the scenario panel on draw background painter Triggers raster drawing if raster mode is enabled element at mouse pos Returns element at the current mouse position create new element mouse pos Creates a new element at the given mouse position mouse clicked mouse pos button Triggers creation of a new element at the given mouse position by clicking left mouse button Switches between selection mode and component mode by clicking right mouse button damped mouse pos mouse pos Returns the damped mouse position if it is out of frame rect mouse moved mouse pos buttons Sets mouse position based on the damped mouse position mouse released mouse pos Draws second endpoint of a line 34 Chapter 4 Source Documentation Maverig Documentation Release 1 0 5 zoom zoom_in wheel_event None Scales up or scales down the scenario depending on the mouse wheel alpha zoom fit Fits all elements into the view delete selected elements Removes all selected elements copy_selected elements Copies all selected elements cut_selected elements Cuts all selected elements past
78. ig Documentation Release 1 0 5 4 4 16 maverig views statusBarView class naverig views statusBarView StatusBarView Bases PySide QtGui QScrollArea maverig views abstractView AbstractView Represents the status bar init_ ui 4 4 17 maverig views toolbarView classmaverig views toolbarView ToolbarView Bases PySide QtGui QToolBar maverig views abstractView AbstractView Represents the toolbar init_ ui 4 5 maverig utils tils colorTools tils event tils flowlayout tils forceatlas2 tils logger tils maverig_csv tils numTools tils processServer tils scenarioErrors tils tableWidgets tils visSimulator e maverig maverig maverig maverig maverig maverig maverig e maverig maverig maverig E G 6 E E E E maverig 4 5 1 maverig utils colorTools maverig utils colorTools lab_color color Convert QColor tuple list or numpy array to LabColor maverig utils colorTools q_color color Convert tuple list or numpy array and QGlobalColor to QColor maverig utils colorTools np_color color Convert tuple list QGlobalColor and QColor to numpy array maverig utils colorTools color_interp x values colors Return linear color interpolation of value x within values mapped to colors Example x 0 09 values 0 05 0 08 0 1 colors Qt black Qt yellow Qt red return QColor 255 127 0 orange 4 5 maverig
79. ig views items abstractItem AbstractItem Icon class in maverig views items icon 40 2 method 39 i icon_path maverig views items icon Icon attribute 40 init graphics item maverig views items circle Circle method 40 icon_update maverig views componentWizardView IntroPage attribute 47 82 Index Maverig Documentation Release 1 0 5 init_graphics_item method 40 init_graphics_item method 41 init_history maverig models model Model method 19 init_nodelist in module maverig utils forceatlas2 53 maverig views items icon Icon maverig views items line Line 13 IS_CONSOLE_PANEL_VISIBLE maverig data config ConfigKeys 13 IS_DAY_NIGHT_VIS_ENABLED maverig data config ConfigKeys attribute attribute init scene mapping maverig presenter group_presenter abstractGrodfPresenter AbstractGroupPresenter method 24 IS HEAT VALUE EFFECT FOR CPP ENABLED init selection counter maverig views propertyPanelView PropertyP mal Gey data config ConfigKeys attribute 13 method 49 IS HEAT VALUE EFFECT FOR GRIDS ENABLED init socket maverig utils processServer ServerProxy maverig data config ConfigKeys attribute 13 method 55 is ok maverig views componentWizardView AttributeTab init ui maverig views attributePanel View AttributePanelView method 48 method 45 is_ok maverig views componentWizardView ParameterTab init_ui maverig views consolePanel View
80. info message Sets the given message in the status bar and applies a blue background to the status bar success message Sets the given message in the status bar and applies a green background to the status bar reset Resets the status bar 4 3 15 maverig presenter toolbarPresenter class maverig presenter toolbarPresenter ToolbarPresenter presenter_manager model cfg Bases maverig presenter abstractPresenter AbstractPresenter 36 Chapter 4 Source Documentation Maverig Documentation Release 1 0 5 Presenter class that acts as the event handler between the view and the model for toolbar Events that are fired by the toolbar view are mapped to the menu bar presenter because all functionality of the toolbar is covered by the menu bar Code changes can be realized at one place in this way on file open triggered Opens a file dialog on file save triggered Saves a serialized scenario If the current scenario isn t saved within a file already a file dialog will be opened on back to start triggered Sets progress slider position to first index on reduce speed triggered Reduces the speed of the progress slider on run triggered Starts the simulation and runs or pauses the progress slider Switches the program mode on stop triggered Stops the simulation and progress slider Switches to the composition program mode on increase speed triggered Increases the speed of the progress slide
81. ings settings SettingTypes Bases builtins object COMBO_BOX combo_box INPUT input CHECK_BOX check_box class maverig data settings settings Settings Bases builtins object tabs lt maverig data settings abstractSettings Tab object at 0x7f5ce8c29f60 gt lt maverig data settings abstractSettings 1 general settings tab lt maverig data settings abstractSettings Tab object at 0x7f5ce8c295f8 gt languages lt maverig data settings abstractSettings ComboBoxSetting object at 0x7f5ce8c295c0 gt simulation_settings_tab lt maverig data settings abstractSettings Tab object at 0x7f5ce8c29f60 gt day_night_vis_setting lt maverig data settings abstractSettings CheckBoxSetting object at 0x7f5ce8c29940 gt heat value effect settingl lt maverig data settings abstractSettings CheckBoxSetting object at 0x7f5ce8c29208 heat_value_effect_setting2 lt maverig data settings abstractSettings CheckBoxSetting object at 0x7f5ce8c291d e maverig data config e maverig data dataHandler 4 1 2 maverig data config maverig data config import_method module_method_address Return the python method at the given address module method address is a string which consists of module address and method name separated by maverig data config read components Return all component descriptions from maverig data components as dict from sim_model to component de scription content 12 Chapter 4 Source Documentation Ma
82. lements maverig presenter menuBarPresenter MenuBarPresenter maverig presenter progressPresenter ProgressPresenter method 32 method 33 on elements maverig presenter scenarioPanelPresenter ScenarioPanelPre on change visibility triggered method 35 maverig presenter property PanelPresenter PropertyParlelBeris y maverig presenter toolbarPresenter ToolbarPresenter method 33 method 37 on change visibility triggered on error maverig presenter scenarioPanelPresenter ScenarioPanelPresent maverig presenter settingsPresenter SettingsPresenter method 35 method 35 on exit presenter section on change visibility triggered maverig presenter group presenter abstractGroupPresenter Abstr maverig presenter statusBarPresenter StatusBarPresenter method 25 method 36 on file new triggered maverig presenter menuBarPresenter MenuBarPre on clipboard maverig presenter menuBarPresenter MenuBarPresenterethod 30 method 32 on file open triggered on close wizard maverig presenter componentWizardPresenter Corapanent fresctRersuetenBarPresenterMenuBarPresenter method 29 method 30 on components maverig presenter modePanelPresenter Modefmeipeasentegered method 29 maverig presenter toolbarPresenter ToolbarPresenter on_console_clear_triggered method 37 maverig presenter consolePanelPresenter ConsoleRantlPreavaters_triggered method 29 maverig presenter menuBarPresenter MenuBarPresenter on context menu maverig
83. ls scenarioErrors ScenarioError title console text text info text 4 5 10 maverig utils tableWidgets class naverig utils tableWidgets CellLineEdit table cell item Bases PySide QtGui QLineEdit keyPressEvent event text changed text add or remove rows according to last element content class maverig utils tableWidgets AutoRowTableWidget args kwargs Bases PySide QtGui QTableWidget Table Widget which always leaves one empty row as last row RowCount is automatically adapted to cell contents text row col row_has_text row append row 4 5 11 maverig utils visSimulator class maverig utils visSimulator VisSimulator Bases mosaik api Simulator The Maverig Visualization Simulator which collects simulated data from other en tities and send them via maverig utils processServer ServerProxy to maverig models model SimulationServer in order to update the visualization in the main application process 58 Chapter 4 Source Documentation Maverig Documentation Release 1 0 5 init sid start_date step_size sim_proxy elements Initialize the simulator with the ID sid the start date start_date the step size step_size the simulation proxy sim_proxy and the elements list elements create num model Create num instances of model step fime inputs Perform the next simulation step from time time using input values from inputs update the simulation data time progress ele
84. lter file property cell row add property value object edit open file dialog _edit init selection counter count change color widget color 4 4 maverig views 49 Maverig Documentation Release 1 0 5 set_new_accepted_value widget new_value set_parameter_style widget multivalue if multiple selected components have different values give a hint property grid property value_objects static set_svg_icon btn icon_path width height draws an svg icon on button btn 4 4 14 maverig views scenarioPanelView class maverig views scenarioPanelView ScenarioPanelView Bases PySide QtGui QGraphicsView maverig views abstractView AbstractView Represents the scenario panel init ui drawBackground painter rect paint datetime bgcolor from bgcolor to refreshBg draw raster cell size painter draws a raster depending on the chosen cell size on the given painter device mouseDoubleClickEvent event mousePressEvent event mouseMoveEvent event allow dragging newly created elements mouseReleaseEvent event wheelEvent wheel event dragEnterEvent event dragMoveEvent event dropEvent event contextMenuEvent event create context menu 4 4 15 maverig views settingsView class maverig views settingsView SettingsView Bases maverig views abstractView AbstractView Represents the settings dialog show cfg Shows a dialog to change the settings 50 Chapter 4 Source Documentation Maver
85. m maverig presenter menuBarPresenter MenuBarPresenter method 40 method 31 on position changed maverig views items circle Circle on increase speed triggered method 40 maverig presenter toolbarPresenter ToolbarPresentar position changed maverig views items icon Icon method 37 method 40 language maverig presenter attributePanelPresenter A tonbptes analRieaagtal maverig views items line Line method 27 method 41 on language maverig presenter consolePanelPresenter CoonoloPutichhy stmtererig presenter group_presenter abstractGroupPresenter method 29 method 25 on language maverig presenter menuBarPresenter MenuBarPpesgmaamn_mode maverig presenter attributePanelPresenter AttributePa method 32 method 28 on language maverig presenter modePanelPresenter ModeBagetEresentmode maverig presenter consolePanelPresenter ConsolePan method 28 method 30 on language maverig presenter progressPresenter ProgreseRrgsenteam_mode maverig presenter menuBarPresenter MenuBarPresen method 33 method 32 on language maverig presenter property PanelPresenter PropeptyBPaneiPreehtQr maverig presenter modePanelPresenter ModePanelPre method 34 method 29 on language maverig presenter statusBarPresenter StatusBarRmasgntar_mode maverig presenter progressPresenter ProgressPresente method 36 method 33 on language maverig presenter toolbarPresenter ToolbarPorsentegram_mode maverig prese
86. ment values via the simulation proxy and return the new simulation time the time at which step should be called again maverig utils visSimulator main 4 6 maverig tests e naverig tests test modePanelPresenter maverig tests test consolePresenter maverig tests test event naverig tests test groupPresenter maverig tests test_menuBarPresenter e maverig tests test model e naverig tests test progressPresenter naverig tests test propertyPanelPresenter maverig tests test_scenarioPanelPresenter e naverig tests test settingsPresenter maverig tests test_statusBarPresenter e maverig tests test toolbarPresenter e naverig tests test vPoint 4 6 1 maverig tests test modePanelPresenter class naverig tests test modePanelPresenter TestModePanelPresenter methodName runTest Bases unittest case TestCase setUp test remove selected component and restore default components Removes a component and restores the default components The list of hided components in the config gets cleared test hide selected component Hides a component test show invisible components test selection mode btn clicked Switches the mode between Selection Mode and Component Mode if the Selection Mode Button is clicked test hand mode btn clicked Switches the mode between Hand Mode and Component Mode if the Hand Mode Button is clicked test co
87. mentation Release 1 0 5 on_language Reacts on language changes Triggers view reinitialization so that the view adopts the chosen language on_program_mode Reacts on program mode changes The console panel is visible in every program mode if the user didn t hide it on output output new_line True Appends the given output to the console output 4 3 8 maverig presenter menuBarPresenter class maverig presenter menuBarPresenter MenuBarPresenter presenter manager model cfg Bases maverig presenter abstractPresenter AbstractPresenter Presenter class that acts as the event handler between the view and the model for the menu bar Functionality that is concerning the scenario is realized in maverig presenter scenarioPanelPresenter ScenarioPanelPresenter path None on file new triggered Discards the current scenario new file Clears the current scenario on file open triggered Opens a file dialog open file Loads a serialized scenario from a chosen file on file save triggered Saves a serialized scenario If the current scenario isn t saved within a file already a file dialog will be opened on file save as triggered Opens a file dialog so that the serialized scenario can be saved within a named file static on quit triggered Shuts down the application on undo triggered Undo latest change on redo triggered Redo latest undone change on cut triggered Cuts select
88. ments to point and vice versa extern followers Return a list of virtual points of other groups that follow this VPoint class maverig views positioning vPoint VPMouse Bases maverig views positioning vPoint VPoint Virtual point representing the mouse position All followers trigger on mouse section before other following adjustments which will be done in adjust section 44 Chapter 4 Source Documentation Maverig Documentation Release 1 0 5 maverig views abstractView maverig views attributePanelView maverig views modePanelView maverig views componentWizardView maverig views consolePanelView e maverig views dialogs e maverig views mainWindow maverig views menuBarView maverig views progressView e maverig views propertyPanelView maverig views scenarioPanelView maverig views settingsView e maverig views statusBarView maverig views toolbarView 4 4 4 maverig views abstractView classmaverig views abstractView AbstractView Bases builtins object 4 4 5 maverig views attributePanelView classmaverig views attributePanelView AttributePanelView Bases PySide QtGui QScrollArea maverig views abstractView AbstractView Represents the attribute panel init ui Init the ui structure for the attribute panel create attribute panel Initially create the container layout of the attribute panel create attribute cell name caption unit step size lines labels lines values lines colors
89. menuBarPresenter TestMenusBarPresenter methodName runTest Bases unittest case TestCase setUp test_on_back_to_start_triggered Set simulated progress visualisation to 0 test_on_reduce_speed_triggered Set simulated progress visualisation slower in speed test on run triggered Runs the simulation test on stop triggered Stops the simulation test on pause triggered Pauses the simulation test on increase speed triggered Set simulated progress visualisation faster in speed test on forward to end triggered Set simulated progress visualisation to the end of simulation test on set time triggered Sets the start time and the duration of the simulation via a dialog test on go to triggered Go to an specific simulation time position test on hand mode triggered Toggles the hand mode for shifting the scenario test on selection mode triggered Toggles the hand mode for element selection test on raster mode triggered Toggles raster mode for element snapping 62 Chapter 4 Source Documentation Maverig Documentation Release 1 0 5 test_on_elements Reacts on changes of the elements count and toggles the state checked unchecked enabled disabled of the depending actions test_on_mode Reacts on model changes of the current mode and toggles the checked state of the selection mode and hand mode test on drag test on vid speed test on program mode
90. model Model method enabled maverig views groups abstractGroup AbstractGroup 21 attribute 38 80 Index Maverig Documentation Release 1 0 5 enabled maverig views items abstractltem Abstractltem attribute 40 ensure_dir in module maverig data dataHandler 14 enter maverig views positioning section Section method 41 EntryPoint class in maverig EntryPoint 69 ep maverig presenter group_presenter abstractGroupPreseg tr coospantitoigongsenter method 24 get_attr_values maverig models model Model method 20 get_category_names maverig presenter componentWizardPresenter Com method 29 get_component maverig models model Model method 20 module maverig data dataHandler 15 maverig presenter statusBarPresenter StatusBarPresenterconfig file in module maverig data dataHandler method 36 error_dialog in module maverig views dialogs 48 Event class in maverig utils event 52 exit maverig views positioning section Section method 41 expandingDirections maverig utils flowlayout FlowLayout method 52 15 get_data maverig utils maverig_csv CSV method 54 get_handler_count maverig utils event Event method 52 get_i_heat_value method 21 get_icon in module maverig data dataHandler 15 maverig models model Model extern_followers maverig views positioning vPoint VPoint get_icon_color in module maverig utils colorTools 51 a
91. mp btn created Adds created button to buttons dict 4 6 maverig tests 59 Maverig Documentation Release 1 0 5 test comp btn clicked Switches the mode between Component Mode and Selection Mode if one Component Button is clicked test drag started Switches the mode to component mode when a component is dragged test on change visibility triggered Triggers the visibility of the component panel test on mode react on model mode changes and update the view buttons accordingly test program mode react on model program mode changes 4 6 2 maverig tests test consolePresenter class maverig tests test_consolePresenter TestConsolePresenter methodName runTest Bases unittest case TestCase setUp test on change visibility triggered Triggers the visibility of the console panel test on console clear triggered Clear console test program mode react on model program mode changes test on output Appends the given output to the console output 4 6 3 maverig tests test event class naverig tests test event TestEvent methodName runTest Bases unittest case TestCase test handle test unhandle test fire on data changed paraml param2 4 6 4 maverig tests test groupPresenter class maverig tests test groupPresenter TestGroupPresenter methodName runTest Bases unittest case TestCase setUp test ep Returns the element port to a virtual point test v
92. n module maverig utils logger 54 adjust scene rect maverig presenter scenarioPanelPresenter ScenarioPan ACTIVATED AUTO LAYOUT MODE in module method 34 maverig data config 14 all maverig views positioning vPoint Changes attribute ACTIVATED COMPONENT MODE in module 43 maverig data config 14 alter boolean property cell ACTIVATED HAND in module maverig views property Panel View PropertyPanel View maverig data config 14 method 49 ACTIVATED_SELECTION_MODE in module alter file property cell maverig data config 14 maverig views propertyPanelView PropertyPanelView ACTIVATED SIMULATION MODE in module _ method 49 maverig data config 14 alter integer property cell add component btn clicked maverig views propertyPanelView PropertyPanelView maverig presenter modePanelPresenter ModePanelPresenteMethod 49 method 28 append_row maverig utils table Widgets AutoRowTableWidget add_endpoint maverig views groups iconGroup IconGroup method 58 method 39 applied maverig views positioning vPoint Change add_history_point maverig models model Model attribute 43 method 19 apply_positions maverig presenter utils forceEngine ForceEngine add_item maverig views groups abstractGroup AbstractGrou method 27 method 38 apply_setting maverig presenter settingsPresenter SettingsPresenter add_new_attribute_tab maverig views componentWizard View AttribatePadimeterPage method 47 apply
93. n the scenari oPanel A comp mode can be activated by clicking on the appropriate button init ui create components grid published components return a grid layout with components according to component configuration create category layout category uncheck buttons uncheck all buttons create button icon path tooltip transparency False btn_w 55 55 35 icn_h 35 Parameters icon path complete icon path tool tip description of the button btn_w button width btn h button high e icon widht e icn_h icon high Returns qpushbutton button_mouse_move bin comp_name mouse_event button_mouse_pressed bin comp_name mouse_event static set_svg_icon btn icon_path width height draws an svg icon on button btn hover_component_button bin icn_w 55 icn_h 55 if a component button has been selected it will increase its size unhover_component_button bin icn_w 35 icn_h 35 if a component button has been deselected it will get a smaller size contextMenuEvent event 46 Chapter 4 Source Documentation Maverig Documentation Release 1 0 5 create_btn_context_menu create_context_menu 4 4 7 maverig views componentWizardView maverig views componentWizardView is_acceptable _edit class maverig views componentWizardView IntroPage pres parent None Bases PySide QtGui QWizardPage initializes the first dialog to add general compo
94. nding demands update all Fires all events deselect all elems Deselect all selected elements stop simulation Stop the simulation and switch the mode to selection and program mode to composition 4 2 2 maverig models modelGraph class maverig models modelGraph ModelGraph model data None attr Bases networkx Graph A networkx Graph representation of the model element ports as nodes and element internal lines between them as edges This graph can be used for layout optimization algorithms Example connection scenario House 0 House 1 gt 1 0 POBus 17 0 lt Branch 0 Branch 1 gt 2 707 Where are lines and lt gt are dockings This scenario would be represented in ModelGraph as follows House TO POBus 17 70 POBus 2 70733 Where are edges and the element ports are nodes Ports with outgoing dockings endpoints in view get represented by their docked Port as Node because they share the same position set pos ep pos Change the position of an ElemPort node to pos PySide QtCore QPointF This method gets called by model when a position is set there 4 2 3 maverig models modelSimulation class naverig models modelSimulation SimulationProcess sim proxy model Bases multiprocessing context Process The Simulation Process instantiates all needed Mosaik models and simulators and runs th
95. nent information icon update lt MagicMock id 140037012174104 gt add_new_icon simulator_update category_update new category dialog Open a dialog to enter the new for a new component category check state args kwargs isComplete class maverig views componentWizardView AttributeParameterPage pres par ent None Bases PySide QtGui QWizardPage add new parameter tab If the button in the corner of the tab container is pushed there has to be a new tab for an individual parameter add new attribute tab If the button in the corner of the tab container is pushed there has to be a new tab for an individual attribute isComplete class maverig views componentWizardView ConclusionPage parent None Bases PySide QtGui QWizardPage initializePage class maverig views componentWizardView Tabs tab_factory_method Bases PySide QtGui QTabWidget tabInserted index tabRemoved index class maverig views componentWizardView ParameterTab Bases PySide QtGui QWidget state checked lt PySide QtCore Signal object at 0x7f5ce85db588 gt check_state is ok class maverig views componentWizardView AttributeTab Bases PySide QtGui QWidget state checked lt PySide QtCore Signal object at 0x7f5ce85e05f8 gt 4 4 maverig views 47 Maverig Documentation Release 1 0 5 check_state is_ok class maverig views componentWizardView ComboUpdatingBox Bases PySide QtGui QComboBox
96. nt Patalasenteodels model Model method method 34 21 create property icon maverig views propertyPanelView RiopestgBt el View maverig utils flowlayout FlowLayout method 49 method 53 create property label maverig views propertyPanelView BiragestyPen Viawerig presenter modePanelPresenter ModePanelPresenter method 49 method 28 create str property cell dragEnterEvent maverig views scenarioPanelView ScenarioPanelView maverig views propertyPanelView PropertyPanelView method 50 method 49 dragMoveEvent maverig views scenarioPanelView ScenarioPanelView CREATION INVALID in module method 50 maverig data config 14 draw_canvas maverig views attributePanel View AttributeCell CSV class in maverig utils maverig_csv 54 method 46 cut_selected_elements maverig presenter scenarioPanelPrdsenterdster mBanelPresantescenarioPanel View ScenarioPanel View method 35 method 50 drawBackground maverig views scenarioPanel View ScenarioPanel View D method 50 damped_mouse_pos maverig presenter scenarioPanelPresd amp epByent amp r oPayenisiedenescenarioPanel View ScenarioPanel View method 34 method 50 datetime_to_qdatetime maverig presenter menuBarPresen GaePeetganadels model Model attribute 18 static method 32 day_night_vis_setting niaverig dela seltinga A attribute 12 EFFECT_BAR maverig data settings heatValueEffect HeatValueEffectKey delete_element maverig models model Model attribute 1
97. nter 29 66 maverig presenter consolePanelPresenter Maverig tests test_settingsPresenter 29 67 maverig presenter group presenter abstraW8E 5 gprtesbRebgst statusBarPresenter 24 68 maverig presenter group_presenter iconGrBaBPF geheats test_toolbarPresenter 68 26 maverig tests test vPoint 69 maverig presenter group presenter lineGr per geHt lis colorTools 5l 26 maverig utils event 52 maverig presenter group presenter linercUBE Su gevbi gri lowlayout 52 26 maverig utils forceatlas2 53 maverig presenter group_presenter nodeGrBaBPF geHt zs logger 53 26 maverig utils maverig_csv 54 maverig presenter menuBarPresenter 30 maverig utils numTools 54 maverig presenter modePanelPresenter maverig utils processServer 54 28 maverig utils scenarioErrors 55 maverig presenter presenterManager 32 maverig utils tableWidgets 58 maverig presenter progressPresenter 33 s visSimulator 58 maverig presenter propertyPanelPresentermaverig views abstractView 45 33 maverig views attributePanelView 45 maverig views componentWizardView 47 maverig views consolePanelView 48 75 Maverig Documentation Release 1 0 5 views averig averig averig averig averig averig averig averig averig views views views views views views views views dialogs 48 groups abstractGroup 38 groups iconGroup 39 groups lineGroup 39 groups lineIconGroup 39 groups nodeGroup 39 items abstractItem
98. nter TestMenusBesPreseptagress maverig tests test progressPresenter TestProgressPreser method 62 method 65 test on go to triggered test on raster mode triggered maverig tests test menuBarPresenter TestMenusBarPresent maver1g tests test_menuBarPresenter TestMenusBarPresenter method 62 method 62 test on hand mode triggered test on reduce speed triggered maverig tests test menuBarPresenter TestMenusBarPresent amp maverig tests test menuBarPresenter TestMenusBarPresenter method 62 method 62 test on increase speed triggered test on run triggered maverig tests test_menuBarPresenter TestMenusB maverig tests test menuBarPresenter TestMenusBarPresenterethod 62 method 62 test on screen dateformat test on mode maverig tests test groupPresenter TestGroupPresente maverig tests test progressPresenter TestProgressPresenter method 62 method 65 test on mode maverig tests test menuBarPresenter TestMestuslaasPiesente maverig tests test groupPresenter TestGroupPresenter method 63 method 62 test on mode maverig tests test modePanelPresenter TestModsPasedlPtesn t maverig tests test menuBarPresenter TestMenusBarPre method 60 method 63 test on mode maverig tests test scenarioPanelPresenter festSoenaglePtinelDreservieni g tests test_propertyPanelPresenter TestProperty method 67 method 66 test on mode maverig tests test statusBarPresenter TestStas sbimrRrksetioei maverig tests test toolbarPre
99. nter menuBarPresenter MenuBanPresariar models model ElemPort attribute 15 method 32 pos maverig views positioning vPoint VPoint attribute on_vid_speed maverig presenter progressPresenter ProgressPresenter4 method 33 position_changed maverig views positioning vPoint VPoint on vid speed maverig presenter toolbarPresenter ToolbarPresenter attribute 43 method 38 PresenterManager class in maverig presenter presenterManager 32 88 Index Maverig Documentation Release 1 0 5 ProcessServer class in maverig utils processServer 55 remove_selected_component program_mode maverig models model Model attribute maverig presenter modePanelPresenter ModePanelPresenter 18 method 28 ProgramMode class in maverig models model 15 reset maverig presenter statusBarPresenter StatusBarPresenter ProgressPresenter class in method 36 maverig presenter progressPresenter 33 resizeEvent maverig views attributePanel View AttributeCell Progress View class in maverig views progress View 49 method 45 property grid maverig views propertyPanelView PropertyPaast eewonfig in module maverig data config 13 attribute 50 restore default components property value objects maverig views propertyPanelView PropertyP4medVeei presenter modePanelPresenter ModePanelPresenter attribute 50 method 28 PropertyPanelPresenter class in row has text maverig utils tableWidgets AutoRow TableWidget maverig presenter propertyPanel
100. nter modePanelPresenter naverig presenter componentWizardPresenter maverig presenter consolePanelPresenter naverig presenter menuBarPresenter maverig presenter presenterManager maverig presenter progressPresenter maverig presenter propertyPanelPresenter maverig presenter scenarioPanelPresenter maverig presenter settingsPresenter maverig presenter statusBarPresenter maverig presenter toolbarPresenter 4 3 3 maverig presenter abstractPresenter class maverig presenter abstractPresenter AbstractPresenter presenter manager model cfg None Bases builtins object on settings Reacts on settings respectively config changes 4 3 4 maverig presenter attributePanelPresenter class maverig presenter attributePanelPresenter AttributePanelPresenter presenter manager model cfg Bases maverig presenter abstractPresenter AbstractPresenter Presenter class that acts as the event handler between the view and the model for the attribute panel on change visibility triggered Toggles the visibility of the attribute panel Saves the visibility state in the config on change graph visibility triggered name Toggles the visibility of the different graphs in the attribute panel update graph visibility name Saves the visible graphs in the config on language Reacts on language changes Triggers view reinitialization so that the view adopts the chosen language 4 3 maverig present
101. nter propertyPanelPresenter PropertyPa method 37 method 34 on language changed maverig presenter settingsPresentenSettings resamde maverig presenter statusBarPresenter StatusBarPreser method 35 method 36 on_mode maverig presenter group_presenter abstractGroupPrpsegtanA bsade XmapPriespnesenter toolbarPresenter ToolbarPresenter method 25 method 38 on maverig presenter menuBarPresenter MenuBarRvasgutegress maverig presenter progressPresenter ProgressPresenter method 32 method 33 on mode maverig presenter modePanelPresenter ModePanelRresertteggered maverig presenter menuBarPresenter MenuBarPresent method 28 static method 30 on mode maverig presenter scenarioPanelPresenter ScenapioBantdPresedeetrig gered method 35 maverig presenter menuBarPresenter MenuBarPresenter on mode maverig presenter statusBarPresenter StatusBarPresenter method 31 method 36 on redo triggered maverig presenter menuBarPresenter MenuBarPresent on mouse released maverig presenter group_presenter abstractGroupEilesd t 0A bstractGroupPresenter method 25 on reduce speed triggered on new simulator triggered maverig presenter menuBarPresenter MenuBarPresenter maverig presenter component WizardPresenter Component Wiethd yesdnter method 29 on_reduce_speed_triggered on output maverig presenter consolePanelPresenter ConsolePanelPiemanteng presenter toolbarPresenter ToolbarPresenter method 30 metho
102. oPanelPresenter TestScenarioPan test selection mode clicked method 67 maverig tests test_modePanelPresenter TestModePast lBnsedaRresenter class in method 59 maverig tests test_consolePresenter 60 test set param value maverig tests test model TestModeTestEvent class in maverig tests test_event 60 method 64 TestGroupPresenter class in test set pos maverig tests test model TestModel maverig tests test groupPresenter 60 method 64 TestMenusBarPresenter class in test set pos maverig tests test_vPoint TestVPoint maverig tests test_menuBarPresenter 62 method 69 TestModel class in maverig tests test_model 63 test_set_selected maverig tests test_model TestModel TestModePanelPresenter class in method 64 maverig tests test_modePanelPresenter test_show_invisible_components 59 maverig tests test modePanelPresenter TestModePastHRigsesstBresenter class in method 59 maverig tests test progressPresenter 65 test snap dock maverig tests test groupPresenter TestGrdIgsPPespetty PanelPresenter class in method 61 maverig tests test propertyPanelPresenter test snap zone maverig tests test_groupPresenter TestGroupPresente6 method 61 TestScenarioPanelPresenter class in maverig tests test_scenarioPanelPresenter Index 95 Maverig Documentation Release 1 0 5 66 title maverig utils scenarioErrors ScenarioEmptyError TestSettingsPresenter class in attribute 56 maverig tests test_setting
103. ocumentation Maverig Documentation Release 1 0 5 4 6 13 maverig tests test_vPoint class naverig tests test vPoint TestVPoint methodName runTest Bases unittest case TestCase setUp test set pos test move pos test follow follows self keeps hold of v point adjust self when v point position change applies to trigger self will change it s position with given reason test unfollow test fix self keeps hold of v point and vice versa test unfix 4 7 maverig EntryPoint class maverig EntryPoint EntryPoint Bases builtins object The maverig application class which creates and connects model views and presenters maverig EntryPoint main Starts the maverig application with an empty scenario 4 8 maverig demo maverig demo main Starts the maverig application with a demo scenario 4 7 maverig EntryPoint 69 Maverig Documentation Release 1 0 5 70 Chapter 4 Source Documentation CHAPTER 5 About Maverig Maverig is a Graphical User Interface for creation and visualization of Smart Grid simulations using the mosaik framework Maverig has been developed by a project group of students from the Carl von Ossietzky University Oldenburg Germany in cooperation with OFFIS 5 1 Contributors Erika Root Gerrit Klasen Hanno Giinther Jerome Tammen Marina Sartison Marius Brinkmann Michael Falk Rafael Burschik Rouven Pajewski Sascha Spengler Andrianarisoa A
104. ode triggered Toggles raster mode for element snapping and scenario raster on zoom in triggered Scales up the scenario on zoom out triggered Scales down the scenario on zoom fit triggered Fits all elements into the view on trigger component panel Toggles the visibility of the component panel on trigger property panel Toggles the visibility of the property panel trigger console Toggles the visibility of the console panel on trigger status Toggles the visibility of the status bar on trigger progress bar Toggles the visibility of the progress bar 4 3 maverig presenter 31 Maverig Documentation Release 1 0 5 on trigger attribute panel Toggles the visibility of the attribute panel on auto layout triggered Triggers scenario redrawing with ForceAtlas2 on settings triggered Opens the settings dialog staticon help triggered Opens the User Manual static about triggered Opens the about dialog on language Reacts on language changes Triggers view reinitialization so that the view adopts the chosen language on elements Reacts on changes of the elements count and toggles the state checked unchecked enabled disabled of the depending actions on mode Reacts on mode changes and toggles the state checked unchecked enabled disabled of the depending actions on drag Reacts if a component is dragged and toggles the state checke
105. odel to component description Component descriptions are read from JSON Files in maverig data components simulators A dict mapping simulator name to simulator description Simulator descriptions are read from JSON Files in maverig data components simulators sim_start The simulation start time as datetime datetime sim_end The simulation end time as datetime datetime sim_step_size The step size of the simulation in seconds Standard is 1800 30 minutes sim_index The current simulation time index which is used to address the current timestamp and the current dynamic attribute value Setting it will result in the closest valid index if it exceeds the boundaries of collected simulation times tamps sim_end_index The last possible simulation time index of an completed simulation vid_speed Simulation visualization speed interval The interval in milliseconds how much time to pass until showing the next simulation timestep Setting this property will result in the closest supported speed interval Supported intervals slow fast 2000 1750 1500 1250 1000 750 500 250 50 vid_speed_rel Simulation visualization speed factor Note that this property does not represent an exact speed factor Setting this property will result in the closest supported speed factor Supported factors slow fast 0 5 0 625 0 75 0 875 1 1 5 2 4 38 sim_progress The running simulation progress in percent 0
106. or model updates 4 3 11 maverig presenter propertyPanelPresenter class naverig presenter propertyPanelPresenter PropertyPanelPresenter presenter manager model cfg Bases maverig presenter abstractPresenter AbstractPresenter Presenter class that acts as the event handler between the view and the model for the property panel 4 3 maverig presenter 33 Maverig Documentation Release 1 0 5 on_change_visibility triggered Toggles the visibility of the property panel Saves the visibility state in the config check_spinbox widget value Checks spinbox values value_changed widget value Handles value changes of the properties on language Reacts on language changes Triggers view reinitialization so that the view adopts the chosen language selection Reacts on selection changes Triggers view reinitialization so that the view is updated depending on the selection on param Reacts on value changes in model and updates the view on program mode Reacts on program mode changes In the simulation program mode the property panel is hided while the panel is visible in the composition program mode if the user didn t hide it 4 3 12 maverig presenter scenarioPanelPresenter class maverig presenter scenarioPanelPresenter ScenarioPanelPresenter presenter manager model cfg Bases maverig presenter abstractPresenter AbstractPresenter Presenter class that acts as the event handler between the v
107. p Returns the virtual point to an element port 60 Chapter 4 Source Documentation Maverig Documentation Release 1 0 5 test raster snap v points Returns a list of virtual points that may snap to the raster test init scene mapping Adds view items to the scene sets related elem_id as tooltip for easier handling of errors and triggers scene mapping test_remove Removes this whole group Unsubscribes model events test_snap_zone Returns a list of nearby virtual points of other groups sorted by distance from near to far test_can_dock Returns if virtual point from_vp can dock with virtual point to_vp if docking is accepted and from_vp is not docked to another virtual point already A virtual point e g endpoint can have one outgoing connection only but may have several ingoing connections e g node test_to_dockables Returns a list of virtual points from to_vps to which the virtual point from_vp can dock out test_from_dockables Returns a list of virtual points from from_vps to which the virtual point to_vp can dock in test_connectables virtual points of other_vps where vp can dock in or out test_new_connectables Returns a list of virtual points from other_vps to which the virtual point vp can dock in or dock out if they are not docked already test non connectable Returns a list of virtual points from other_vps to which the virtual point vp can t dock test_dock Docks vi
108. p_presenter abstractGroupPresenter module 24 maverig presenter group_presenter iconGroupPresenter module 26 maverig utils logger module 53 maverig utils maverig_csv module 54 maverig utils numTools module 54 maverig utils processServer module 54 maverig utils scenarioErrors module 55 maverig utils table Widgets module 58 maverig utils visSimulator module 58 maverig views abstractView module 45 maverig views attributePanelView module 45 maverig views componentWizardView module 47 maverig views consolePanel View module 48 maverig views dialogs module 48 maverig views groups abstractGroup module 38 maverig views groups iconGroup module 39 maverig views groups lineGroup module 39 maverig views groups linelconGroup module 39 maverig views groups nodeGroup module 39 maverig views items abstractItem module 39 maverig views items circle module 40 maverig views items icon module 40 maverig views items line module 41 84 Index Maverig Documentation Release 1 0 5 maverig views mainWindow module 48 moved maverig views positioning vPoint Change at maverig views menuBarView module 49 tribute 43 maverig views modePanelView module 46 MULTI SELECT DIFFERENT VALUES in module maverig views positioning section module 41 maverig data config 14 maverig views positioning vPoint module 43 maverig views progressView module 49 N maverig views propertyPanel
109. pboard elem ids Copy all elements of the elem 145 list to an internal clipboard paste from clipboard Paste all elements from internal clipboard and return the newly inserted elem ids Only dockings inside of clipboard will be maintained create element sim model pos Create a new element with a specific sim model on an specific position as QLCore QPointF in scenario delete element elem id Delete the given element get component elem id Return the component description dict of an elem id by the elements sim model get simulator elem id Return the simulator description dict of an element get icon color elem id Return the color of the element icon The icon will be scanned for the most valuable color only once The icon colors are memorized locally get shared published params elem ids Return a filtered list of published parameter names which are contained in each element of elem ids param is multivalue elem ids param name Return whether one specific parameter param name of multiple elements elem ids differ in their val ues get param value elem id param name Get the value of a parameter in element elem id Return None if element has no parameter param name set param value elem id param name param value Set value of parameter param in element elem id if value is not None get shared published attrs elem ids Return a filtered list of published attribute names which are contain
110. presenter toolbarPresenter ToolbarPresen method 37 method 37 on selection changed maverig presenter scenarioPanelPresentepfivemarioPgardH y Gmntverig presenter menuBarPresenter MenuBarPre method 34 method 31 on selection mode triggered on zoom in triggered maverig presenter toolbarPresenter ToolbarPresen maverig presenter menuBarPresenter MenuBarPresenter method 37 method 31 zoom out triggered on set time triggered maverig presenter menuBarPresenter Menu BarPnesegtpresenter menuBarPresenter MenuBarPresenter method 31 method 31 on settings maverig presenter abstractPresenter AbstractPoesemiem out triggered method 27 maverig presenter toolbarPresenter ToolbarPresenter on settings triggered maverig presenter menuBarPresenter MenuBarlethsahtes7 method 32 opacity maverig views items abstractItem AbstractItem on settings triggered maverig presenter toolbarPresenter ToolbarPrastuibete 40 method 37 open file maverig presenter menuBarPresenter MenuBarPresenter sim maverig presenter progressPresenter ProgressPresenter method 30 method 33 open file dialog maverig views propertyPanelView PropertyPanelView on sim maverig presenter toolbarPresenter ToolbarPresenter method 49 method 37 origin maverig views positioning vPoint Change at on slider moved maverig presenter progressPresenter ProgressPreseriturte 43 method 33 on stop triggered maverig presenter menuBarPresen
111. r on forward to end triggered Sets progress slider position to last possible index on zoom triggered Scales up the scenario on zoom out triggered Scales down the scenario on zoom fit triggered Fits all elements into the view on delete triggered Removes selected elements on settings triggered Opens the settings dialog on auto layout triggered Triggers scenario redrawing with ForceAtlas2 on language Reacts on language changes Triggers view reinitialization so that the view adopts the chosen language on elements Reacts on changes of the elements count and toggles the state checked unchecked enabled disabled of the depending actions on selection Reacts on selection changes and toggles the state checked unchecked enabled disabled of the depending actions on drag Reacts if a component is dragged and toggles the state checked unchecked enabled disabled of the de pending actions 4 3 maverig presenter 37 Maverig Documentation Release 1 0 5 on sim Reacts on changes of the simulation time and speed parameters and toggles the state checked unchecked enabled disabled of the depending actions on vid speed Reacts on changes of the progress slider speed and toggles the state checked unchecked enabled disabled of the depending actions on_program_mode Reacts on program mode changes and toggles the state checked unchecked enabled disabled of the
112. r test_on vid speed event Reacts on changes of the progress slider speed Displays the current speed in the status bar test_on_program_mode Reacts on program mode changes The status bar is visible in every program mode if the user didn t hide it test error Sets the given message in the status bar test info Sets the given message in the status bar test success Sets the given message in the status bar test reset Resets the state of the status bar 4 6 12 maverig tests test toolbarPresenter class maverig tests test_toolbarPresenter TestToolBarPresenter methodName runTest Bases unittest case TestCase setUp test_on_elements Reacts on changes of the elements count and toggles the state checked unchecked enabled disabled of the depending actions test_on_selection Reacts on model changes of the current selection and toggles the state of the delete action test on drag Set the current mode test on sim Reacts on changes of the simulation time and speed parameters and toggles the state checked unchecked enabled disabled of the depending actions test on vid speed Reacts on changes of the progress slider speed and toggles the state checked unchecked enabled disabled of the depending actions test_on_program_mode Reacts on program mode changes and toggles the state checked unchecked enabled disabled of the de pending actions 68 Chapter 4 Source D
113. rError 57 set_producer_bar_effect Section class in maverig views positioning section 41 maverig views items abstractItem AbstractItem SectionManager class in method 40 maverig views positioning section 41 set_selected maverig models model Model method select_all_active_elements 21 maverig presenter scenarioPanelPresenter ScenarsePasledHresemffect maverig views groups abstractGroup AbstractGroup method 35 method 38 select all elements maverig presenter scenarioPanelPresesitersBboelanviodf net D enantai g views items abstractItem AbstractItem method 35 method 40 selectable maverig views items abstractItem AbstractItem set state of charge bar attribute 40 maverig views groups abstractGroup AbstractGroup selected maverig views groups abstractGroup AbstractGroup method 38 attribute 38 set state of charge selected maverig views items abstractItem AbstractItem maverig views items abstractItem AbstractItem attribute 40 method 40 selection maverig models model Mode attribute 16 set state of charge tip selection maverig models model Model attribute 19 maverig views groups abstractGroup AbstractGroup selection dragging maverig models model Model method 38 attribute 19 set state of charge tip selection mode btn clicked maverig views items abstractItem AbstractItem maverig presenter modePanelPresenter ModePanelPresentemethod 40 method 28 set state of charge tip bg
114. resenter class maverig presenter group presenter abstractGroupPresenter AbstractGroupPresenter presenter model elem id cfg Bases maverig presenter abstractPresenter AbstractPresenter Presenter class that acts as the event handler between the view and the model for all groups mappings_port_vp Maps the port and the v_point ep v_point Returns the element port belonging to a virtual point vp elem_port Returns the virtual point belonging to an element port raster snap v points Returns a list of virtual points that may snap to the raster init scene mapping scene Adds view items to the scene sets related elem id as tooltip for easier handling of errors and triggers scene mapping remove Removes this whole group Unsubscribes model events snap zone v point pos None Returns a list of nearby virtual points of other groups sorted by distance from near to far can dock from vp to vp Returns if virtual point from vp can dock with virtual point to vp if docking is accepted and from is not docked to another virtual point already A virtual point e g endpoint can have one outgoing connection only but may have several ingoing connections e g node to dockables from vp to vps Returns a list of virtual points from to vps to which the virtual point from vp can dock out from dockables from vps to vp Returns a list of virtual points from from vps to which the virtual point to vp can dock in
115. rig presenter statusBarPresenter StatusBarPresenter method 63 method 36 test cut selected elements switch modes maverig models model Model method maverig tests test scenarioPanelPresenter TestScenarioPanelPres 19 method 67 test damped mouse pos T maverig tests test scenarioPanelPresenter TestScenarioPanelPres Tab class in maverig data settings abstractSettings 11 method 66 tabInserted maverig views componentWizardView Tabs test delete element maverig tests test_model TestModel method 47 method 63 tabRemoved maverig views componentWizardView Tabs test delete selected elements method 47 maverig tests test scenarioPanelPresenter TestScenarioPanelPres Tabs class in maverig views componentWizardView 47 method 67 tabs maverig data settings settings Settings attribute 12 test deselect all elems takeAt maverig utils flowlayout FlowLayout method maverig tests test model TestModel method 32 64 test add history point maverig tests test model TestModtdst dock maverig tests test groupPresenter TestGroupPresenter method 63 method 61 test adjust scene rect maverig tests test scenarioPanelPrtesint vcl9tScenarioBanastrestestertest model TestModel method 66 method 64 test apply setting maverig tests test_settingsPresenter TedeSetdackPrgsaites maverig tests test model TestModel method 67 method 65 test is multivalue maverig tests test_model TestModtdst_docking_port
116. rtual points and applies docking in model test_undock Undocks virtual points and applies undocking in model test check snap permission Checks whether the view has permission to snap Optionally validates snap restrictions test on position changed Applies docking undocking of the view within snap zone Sets v point position in model test validation Updates the views validity test snap dock Snaps the view to the raster test raster snap Snaps the view to the raster if raster mode is enabled test avoid invalid positions Avoids invalid positions by moving the view back to last valid positions test on mouse released Applies raster snapping to the view if view is released by the mouse test on elements Reacts on changes on elements count and removes himself if view isn t present anymore 4 6 maverig tests 61 Maverig Documentation Release 1 0 5 test_on positions Reacts on position changes test on drag Reacts on drag and drop test on selection Reacts on selection changes Updates the views z mode and visibility state test on dockings Reacts on view docking test on mode Reacts on mode changes Updates the state of the view test on param Reacts on parameter changes test change ev icon Changes the icon of an electric vehicle depending on state of charge and plugged in state 4 6 5 maverig tests test menuBarPresenter class maverig tests test_
117. s count and removes himself if view isn t present anymore on positions Reacts on position changes on drag Reacts on drag and drop on selection Reacts on selection changes Updates the views z mode and visibility state on dockings Reacts on view docking on mode Reacts on mode changes Updates the state of the view on param Reacts on parameter changes change ev icon value Changes the icon of an electric vehicle depending on state of charge and plugged in state 4 3 maverig presenter 25 Maverig Documentation Release 1 0 5 set effect view or item effect color lt PySide QtGui QColor object at Ox7f5ce84720b8 gt value 0 Applies heat value effects to the view param color the color or shadow effect color param value value for bar width or opacity 0 1 on attrs Reacts on value changes of attributes Triggers applying of heat value effects to the view maverig presenter group presenter iconGroupPresenter class maverig presenter group presenter iconGroupPresenter IconGroupPresenter presenter manager model elem id cfg Bases maverig presenter group_presenter abstractGroupPresenter AbstractGroupPresenter Presenter class that acts as the event handler between the view and the model for the icon group mappings_port_vp Maps the port and the v point e g 0 icon vp center maverig presenter group_presenter lineGroupPresenter class maverig presenter group pr
118. sPresenter 67 title maverig utils scenarioErrors ScenarioError at TestStatus BarPresenter class in tribute 55 maverig tests test_statusBarPresenter 68 title maverig utils scenarioErrors ScenarioFileNotFoundError TestToolBarPresenter class in attribute 57 maverig tests test_toolbarPresenter 68 title maverig utils scenarioErrors ScenarioOfflineElementError TestVPoint class in maverig tests test_vPoint 69 attribute 56 text maverig utils scenarioErrors ScenarioBaseVoltageLevetfkrgmaverig utils scenarioErrors ScenarioRefBusConnectionError attribute 56 attribute 56 text maverig utils scenarioErrors ScenarioComponentError title maverig utils scenarioErrors ScenarioRefBusCountError attribute 57 attribute 56 text maverig utils scenarioErrors ScenarioConnectionError title maverig utils scenarioErrors ScenarioRefBusMissingError attribute 56 attribute 56 text maverig utils scenarioErrors ScenarioDatafileError title maverig utils scenarioErrors ScenarioSimulationBranchLengthError attribute 57 attribute 57 text maverig utils scenarioErrors ScenarioElementError title maverig utils scenarioErrors ScenarioSimulationPowerflowError attribute 57 attribute 58 text maverig utils scenarioErrors ScenarioEmptyError title maverig utils scenarioErrors ScenarioSimulationRuntimeError attribute 56 attribute 58 text maverig utils scenarioErrors ScenarioError at title maverig utils scenarioErrors ScenarioSimulatorError tri
119. seHolds eparameter value the parameter value of the first element of elem ids eparameter shared values a list of values according to each element in elem ids test get param value Get value of parameter with param name in element elem id return None if param name does not exist test get selected Get value of parameter with param name in element elem id return None if param name does not exist test set selected Sets selected flag to marked elements test docking port Get the docking port of an element test get pos Get the position of an element test set pos Set the position of an element test dockings out Return an array of outgoing element ports test dockings in Return an array of outgoing element ports test can dock Tests if one component may dock to another test dock Docks branch elements to other elements if allowed test undock Undocks docked components test update Fires all events with pending demands test update all Fires all events test deselect all elems Deselect all elements test copy Return new flat copied model including scenario components and simulators descriptions and no con nected events test changes count Return an int value representing the current model state changes counter test get simulator Return the simulator of the given element test get icon color Return the color od the given icon test set param valu
120. senter TestToolBarPresent method 68 method 68 test mouse released test on selection mode triggered maverig tests test groupPresenter TestGroupPresenter maverig tests test menuBarPresenter TestMenusBarPresenter method 61 method 62 test on output maverig tests test_consolePresenter TestC oastolePresentiane_triggered method 60 maverig tests test menuBarPresenter TestMenusBarPresenter test on param maverig tests test groupPresenter TestGroupPresentenethod 62 method 62 test sim maverig tests test progressPresenter TestProgressPresenter test on param maverig tests test propertyPanelPresenter TestPropertiePand P6 senter method 66 test on sim maverig tests test toolbarPresenter TestToolBarPresenter test on pause triggered method 68 maverig tests test menuBarPresenter TestMenusBesPresenlader moved maverig tests test progressPresenter TestProgressF method 62 method 65 test on position changed test on stop triggered maverig tests test_menuBarPresenter TestMenusB maverig tests test groupPresenter TestGroupPresenter method 62 method 61 test on vid speed maverig tests test menuBarPresenter TestMenusBarPt test on positions maverig tests test groupPresenter TestGroupPresan amp thod 63 method 61 test on vid speed maverig tests test toolbarPresenter TestToolBarPreser test on program mode method 68 maverig tests test menuBarPresenter TestMenusBasPresemier speed event metho
121. side this class closeEvent event 48 Chapter 4 Source Documentation Maverig Documentation Release 1 0 5 4 4 11 maverig views menuBarView class maverig views menuBarView MenuBarView Bases PySide QtGui QMenuBar maverig views abstractView AbstractView Represents the menu bar init ui 4 4 12 maverig views progressView classmaverig views progressView ProgressView Bases PySide QtGui QWidget maverig views abstractView AbstractView Represents the progress bar init_ui translate 4 4 13 maverig views propertyPanelView class maverig views propertyPanelView PropertyPanelView Bases PySide QtGui QScrollArea maverig views abstractView AbstractView Represents the property panel Every component has specific properties which are displayed within this panel The user can change the properties of every single component within this panel init_ui create property label label row create property icon icon path row delete grid widget index clear prop grid create integer property cell label value row accepted values create float property cell label value row accepted values create str property cell label value row accepted values create household cell row num hh change household cell row num hh alter integer property cell value row create boolean property cell label state row alter boolean property cell row state create file property cell label value row a
122. sitioning vPoint Changes at groups maverig presenter scenarioPanelPresenter ScenarioPanelPreseftihute 43 attribute 35 info maverig presenter statusBarPresenter StatusBarPresenter method 36 H info text maverig utils scenarioErrors ScenarioBaseVoltageLevelError hand maverig models model Mode attribute 16 attribute 56 hand mode btn clicked info text maverig utils scenarioErrors ScenarioComponentError maverig presenter modePanelPresenter ModePanelPresentefttribute 57 method 28 info text maverig utils scenarioErrors ScenarioConnectionError handle maverig utils event Event method 52 attribute 56 handle process scenario error info text maverig utils scenarioErrors ScenarioDatafileError maverig models modelSimulation SimulationServer attribute 57 method 23 info text maverig utils scenarioErrors ScenarioElementError handle scenario error maverig models model Model attribute 57 method 22 info text maverig utils scenarioErrors ScenarioEmptyError hasHeightForWidth maverig utils flowlayout FlowLayout attribute 56 method 53 info text maverig utils scenarioErrors ScenarioError at HEAT VALUE EFFECT CPP tribute 55 maverig data config ConfigKeys attribute info text maverig utils scenarioErrors ScenarioFileNotFoundError 13 attribute 57 HEAT VALUE EFFECT GRIDS info text maverig utils scenarioErrors ScenarioOfflineElementError maverig data config ConfigKeys attribute attribute 56 13 info text maverig
123. stractItem method 40 clear state of charge tip bgO maverig views groups abstractGroup AbstractGroup CellLineEdit class in maverig utils tableWidgets 58 Change class in maverig views positioning vPoint 43 change maverig views positioning vPoint VPoint at tribute 44 method 38 change color maverig views propertyPanelView PropertyPl amp itisjfalg ol charge tip bgO method 49 maverig views items abstractItem AbstractItem method 40 change content maverig views attributePanelView AttributeCell method 46 clipboard elements maverig models model Model at change ev icon maverig presenter group presenter abstractGroupPle utter AbstractGroupPresenter method 25 close_socket maverig utils processServer ServerProxy method 55 change household cell Hc el sgEvent maverig views mainWindow MainWindow maverig views propertyPanel View PropertyPanel AR method 49 method 48 Changes class in maverig views positioning vPoint 43 color_interp in module maverig utils colorTools 21 changes_count maverig models model Model method COMBO_BOX maverig data settings settings SettingTypes 19 attribute 12 78 Index Maverig Documentation Release 1 0 5 ComboBoxSetting class in console text maverig utils scenarioErrors ScenarioSimulatorError maverig data settings abstractSettings 11 attribute 57 ComboUpdatingBox class in ConsolePanelPresenter class in maverig views componentWi
124. sts test_model TestModel method test_ 65 test_hide_selected_component test maverig tests test_consolePresenter TestConsolePresenter method 60 on_dockings maverig tests test groupPresenter TestGroupPresenter method 62 on drag maverig tests test groupPresenter TestGroupPresenter maverig tests test modePanelPresenter TestModePanelPresemttirod 62 method 59 test on drag maverig tests test_menuBarPresenter TestMenusBarPresent test info maverig tests test statusBarPresenter TestStatusBarPresentaethod 63 method 68 test init history maverig tests test model TestModel method 63 test on drag maverig tests test toolbarPresenter TestToolBarPresenter method 68 Index 93 Maverig Documentation Release 1 0 5 test on elements maverig tests test_groupPresenter TestGustpbregengram_mode method 61 maverig tests test propertyPanelPresenter TestPropertyPanelPres test on elements maverig tests test_menuBarPresenter TestMenus Brandthex y t66 method 63 test on program mode test on elements maverig tests test scenarioPanelPresenter TestSce mrvdt gdtliStesentestatusB arPresenter TestStatusBarPresenter method 67 method 68 test on elements maverig tests test_toolbarPresenter Test wolBnripregemter mode method 68 maverig tests test toolbarPresenter TestToolBarPresenter test on forward to end triggered method 68 maverig tests test menuBarPrese
125. t class maverig utils flowlayout FlowLayout parent None margin 0 spacing 1 Bases PySide QtGui QLayout PyQt4 port of the layouts flowlayout example from Qt v4 x Usage Example flowLayout FlowLayout flowLayout addWidget QtGui QPushButton Short flowLay out addWidget QtGui QPushButton Longer flowLayout addWidget QtGui QPushButton Different text flowLayout addWidget QtGui QPushButton More text flowLay out addWidget QtGui QPushButton Even longer button text self setLayout flowLayout addItem item count itemAt index takeAt index 52 Chapter 4 Source Documentation Maverig Documentation Release 1 0 5 expandingDirections hasHeightForWidth heightForWidth width setGeometry rect sizeHint minimumSize doLayout rect testOnly 4 5 4 maverig utils forceatlas2 maverig utils forceatlas2 init_edge_weights g maverig utils forceatlas2 init_data g nodelist dim 2 edge_weight False Sets the default positions and visability data edge_weight calculation should only be done if a graph already converged maverig utils forceatlas2 init_nodelist g nodelist None maverig utils forceatlas2 length_arr delta minimum 0 squared False Return the length for each node in delta delta x1 x2 x3 y1 y2 y3 length arr length length2 length3 delta the numpy dim nnodes array minimum the minimum lengths to return class maverig utils
126. ter MehuBarPresenter method 31 paint datetime maverig views scenarioPanelView ScenarioPanelView stop triggered maverig presenter toolbarPresenter ToolbarPresenfgithod 50 method 37 palette iwanthue50 in module trigger attribute panel maverig utils colorTools 52 maverig presenter menuBarPresenter MenuBarPresgeter tableau 10 in module maverig utils colorTools method 31 52 on_trigger_component_panel param is multivalue maverig models model Model maverig presenter menuBarPresenter MenuBarPresenter method 20 method 31 ParameterTab class in on_trigger_console maverig presenter menuBarPresenter MenuBarFigseatgr views componentWizardView 47 method 31 parent item maverig views positioning vPoint VPoint on trigger progress bar attribute 44 maverig presenter menuBarPresenter MenuBarPresgtiipant in module maverig views dialogs 48 method 31 paste elements maverig presenter scenarioPanelPresenter ScenarioPanelF on trigger property method 35 maverig presenter menuBarPresenter MenuBarPresgr crrom_clipboard maverig models model Model method 31 method 20 on trigger status bar maverig presenter menuBarPresentpaM menuBarPresenter MenuBarPresenter method 31 attribute 30 on_undo_triggered maverig presenter menuBarPresenter Yepubarresseadetmaverig views component Wizard View ComboUpdatingB method 30 attribute 48 on_vid_speed maverig prese
127. tils scenarioErrors ScenarioRefBusCGwaatiEiromponents language po entries in module attribute 57 maverig data config 14 console text maverig utils scenarioErrors ScenarioRefBusMrestegEomtext_menu maverig views modePanel View ModePanel View attribute 56 method 47 console text maverig utils scenarioErrors ScenarioSimulatiord tanchhtengthtamof maverig views scenarioPanel View ScenarioPanel Vi attribute 58 method 50 console text maverig utils scenarioErrors ScenarioSimulationtevelimebiior maverig models model Model attribute 58 method 20 console text maverig utils scenarioErrors ScenarioSimulationdatentinvelpnaperty_cell attribute 58 maverig views propertyPanelView PropertyPanelView method 49 Index 79 Maverig Documentation Release 1 0 5 create_float_property_cell DOCKING_INVALIDO in module maverig data config maverig views propertyPanelView PropertyPanelView 14 method 49 DOCKING_NO_ITEMS in module create_graph maverig views attributePanel View AttributeCell maverig data config 14 method 45 docking_port maverig models model Model method create household cell maverig views propertyPanel View PropertyPamnel View method 49 DOCKING_VALIDO in module maverig data config create_integer_property_cell 14 maverig views propertyPanelView PropertyPanelWeekings in maverig models model Model method method 49 21 create new element maverig presenter scenarioPanelPresdntdnSigsne
128. ttribute 44 F fast_deepcopy in module maverig models model 15 FILE_OPENEDO in module maverig data config 14 FILE_SAVEDO in module maverig data config 14 fire maverig utils event Event method 52 fix maverig views positioning vPoint VPoint method 44 FlowLayout class in maverig utils flowlayout 52 flush maverig utils logger StreamToLogger method 54 maverig views positioning vPoint V Point method 44 followed maverig views positioning vPoint Change at tribute 43 followers maverig views positioning vPoint VPoint at tribute 44 maverig views positioning vPoint V Point method 44 force dragging maverig models model Model attribute 19 ForceAtlas2 class in maverig utils forceatlas2 53 ForceEngine class in maverig presenter utils forceEngine 27 follow follows get icon color maverig models model Model method 20 get lang path in module maverig data dataHandler 15 get maverig dir in module maverig data dataHandler 14 get_normpath in module maverig data dataHandler 14 get_p_level maverig models model Model method 21 get_param_value maverig models model Model method 20 get_pos maverig models model Model method 21 get_published_components maverig presenter modePanelPresenter ModePanelPresenter method 29 get relpath in module maverig data dataHandler 14 get selected maverig models model Model method 21 get shared published
129. upPresenter module 26 maverig presenter group_presenter nodeGroupPresenter module 26 maverig presenter menuBarPresenter module 30 maverig presenter group presenter lineGroupPresantugrig presenter modePanelPresenter module 28 26 LineIconGroup class maverig views groups linelconGroup 39 in M main in module maverig demo 69 main in module maverig EntryPoint 69 main in module maverig utils maverig_csv 54 main in module maverig utils visSimulator 59 MAIN_WINDOW_GEOMETRY maverig data config ConfigKeys 13 MAIN_WINDOW_STATE maverig data config ConfigKeys 13 Main Window class in maverig views mainWindow 48 attribute attribute maverig presenter presenterManager module 32 maverig presenter progressPresenter module 33 maverig presenter propertyPanelPresenter module 33 maverig presenter scenarioPanelPresenter module 34 maverig presenter settingsPresenter module 35 maverig presenter statusBarPresenter module 36 maverig presenter toolbarPresenter module 36 maverig presenter utils forceEngine module 27 maverig tests test_consolePresenter module 60 maverig tests test_event module 60 maverig tests test_groupPresenter module 60 maverig tests test_menuBarPresenter module 62 maverig tests test_model module 63 maverig tests test_modePanelPresenter module 59 maverig tests test_progressPresenter module 65 maverig tests test_propertyPanelPresenter modul
130. utils scenarioErrors ScenarioRefBusConnectionError heat value effect settingl attribute 56 maverig data settings settings Settings at info text maverig utils scenarioErrors ScenarioRefBusCountError tribute 12 attribute 57 heat value effect setting2 info text maverig utils scenarioErrors ScenarioRefBusMissingError maverig data settings settings Settings at attribute 56 tribute 12 info text maverig utils scenarioErrors ScenarioSimulationBranchLengthEr HeatValueEffectKeys class in attribute 58 maverig data settings heatValueEffect 12 info text maverig utils scenarioErrors ScenarioSimulationPowerflowError heightForWidth maverig utils flowlayout FlowLayout attribute 58 method 53 info text maverig utils scenarioErrors ScenarioSimulationRuntimeError hide selected component attribute 58 maverig presenter modePanelPresenter ModePan l ee dert imaverig utils scenarioErrors ScenarioSimulatorError method 28 attribute 57 history redo maverig models model Model attribute 17 inform dialog in module maverig views dialogs 48 history undo maverig models model Model attribute init maverig utils maverig csv CSV method 54 17 init maverig utils visSimulator VisSimulator method hover_component_button 58 maverig views modePanel View ModePanel View init_data in module maverig utils forceatlas2 53 method 46 init_edge_weights in module maverig utils forceatlas2 53 init_graphics_item maver
131. verig Documentation Release 1 0 5 3 averig data config read simulators Return all simulator descriptions as dict from simulators name to simulator description content 3 averig data config read_json filename Return the content dict of a json file 3 averig data config write_json filename obj Write a content dict obj into a json file 3 averig data config read config Return the application configuration dict from maverig data cfg json 3 averig data config write_config cfg Write cfg into the configuration file maverig data cfg json 3 averig data config restore config Write the default settings in maverig data settings defaultSettings into the configuration file maverig data cfg json classmaverig data config ConfigKeys Bases builtins object Constants with configuration dict keys UI_STATE ui_state MAIN WINDOW GEOMETRY main_window_geometry MAIN_WINDOW_STATE main_window_state SPLITTER MAIN GEOMETRY splitter_main_geometry SPLITTER_MAIN_ STATE splitter_main_state SPLITTER_LEFT_GEOMETRY splitter_left_geometry SPLITTER LEFT STATE splitter left state SPLITTER RIGHT GEOMETRY splitter_right_geometry SPLITTER RIGHT STATE splitter right state IS ATTRIBUTE PANEL VISIBLE is attribute panel visible IS COMPONENT PANEL VISIBLE 8 component panel visible IS CONSOLE PANEL VISIBLE 15 console panel visible IS PROGRESS B
132. verig tests test model TestModel method 64 test get state of charge maverig tests test model TestModel method test 65 test get heat value maverig tests test model TestModel method 65 test test test test maverig tests test menuBarPresenter TestMenusBarPresenter method 62 on change dateformat maverig tests test progressPresenter TestProgressPresenter method 65 on change visibility triggered maverig tests test consolePresenter TestConsolePresenter method 60 on change visibility triggered maverig tests test modePanelPresenter TestModePanelPresenter method 60 on change visibility triggered maverig tests test_progressPresenter TestProgressPresenter method 65 on_change_visibility_triggered test group presenters maverig tests test_scenarioPanelPresenter TedthaenargoPatselPite gamtperty Panel Presenter TestPropertyPanelPres method 66 method 66 test_groups maverig tests test_scenarioPanelPresenter Test amp xtemarioRangtPrasthibity_triggered method 66 test_hand_mode_btn_clicked maverig tests test_statusBarPresenter TestStatusBarPresenter method 68 maverig tests test_modePanelPresenter TestModef snebRredenberard maverig tests test_menuBarPresenter TestMenusBarPr method 59 test_handle maverig tests test_event TestEvent test method 63 on_console_clear_triggered method 60 test_handle_scenario_error maverig te
133. when the selection mode button is clicked hand mode btn clicked Switches the mode between hand mode and component mode when the hand mode button is clicked add component btn clicked Opens the component wizard comp btn created btn comp name Adds created button to buttons dict comp btn clicked b n name Switches the mode between component mode and selection mode when a component button is clicked drag started bin comp name Switches the mode to component mode when a component is dragged on change visibility triggered Toggles the visibility of the component panel Saves the visibility state in the config on language Reacts on language changes Triggers view reinitialization so that the view adopts the chosen language 28 Chapter 4 Source Documentation Maverig Documentation Release 1 0 5 on_mode Reacts on mode changes Updates the component buttons accordingly on_program_mode Reacts on program mode changes In the simulation program mode the component panel is hided while the panel is displayed in the composition program mode if the user didn t hide it on_components Reacts on component changes Triggers view reinitialization so that the panel adopts the changes get published components Returns a list with comp name category icon and tooltip of every existing component for component grid creation 4 3 6 maverig presenter componentWizardPresenter
134. zard View 48 maverig presenter consolePanelPresenter comp maverig models model Mode attribute 16 29 comp maverig models model Model attribute 19 ConsolePanel View class in comp_btn_clicked maverig presenter modePanelPresenter ModePanaiPresmntaews consolePanel View 48 method 28 contextMenuEvent maverig views modePanelView ModePanel View comp_btn_created maverig presenter modePanelPresenter ModePanelPiesdht method 28 contextMenuEvent maverig views scenarioPanelView ScenarioPanelView comp_raster maverig models model Model attribute 19 method 50 compare_color in module maverig utils colorTools 52 convert in module maverig utils numTools 54 components maverig models model Model attribute 18 convert slider value maverig views dialogs SimulationTimeDialog ComponentWizardPresenter class in method 48 maverig presenter componentWizardPresenter copy maverig models model Model method 20 29 copy selected elements composition maverig models model ProgramMode at maverig presenter scenarioPanelPresenter ScenarioPanelPresente tribute 16 method 35 ConclusionPage class in copy_to_clipboard maverig models model Model maverig views componentWizard View 47 method 20 ConfigKeys class in maverig data config 13 count maverig utils flowlayout FlowLayout method connectables maverig presenter group_presenter abstractGroupPreseiter A bstractGroupPresenter method 24 create maveri
Download Pdf Manuals
Related Search
Related Contents
呼吸努力センサ - フィリップス・レスピロニクス合同会社 Tektronix 3066,3086 Real-Time Spectrum Sony DVP-NS710H User's Manual Manual de Instrucciones iridium IntelliDOCK 9555 Installation & User Manual - E-SAT FRー・0ー 83 Copyright © All rights reserved.
Failed to retrieve file