Download Maverig Documentation

Transcript
Maverig Documentation, Release 1.0.5
[NumResidents(), NumHouseHolds() ...]
•parameter.value: the parameter value of the first element of elem_ids
•parameter.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 connected 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_value()
Sets a parameter of an element to an given value.
64
Chapter 4. Source Documentation
Related documents