Api session event logic: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
| Line 1: | Line 1: | ||
Api session event logic Endpoints. | Api session event logic Endpoints. | ||
API | API End[[#Api Model Point|Point]]s for End[[#Api Model Point|Point]]s changing [[Function]]ality in a testrun/impact [[Session]]. | ||
{|class=wikitable | {|class=wikitable | ||
!Name | !Name | ||
| Line 7: | Line 7: | ||
|- | |- | ||
|[[Api session event logic action log export|action_log_export]] | |[[Api session event logic action log export|action_log_export]] | ||
|Export history of | |Export history of [[Action]]s taken by participants. | ||
|- | |- | ||
|[[Api session event logic action menu set function available|action_menu_set_function_available]] | |[[Api session event logic action menu set function available|action_menu_set_function_available]] | ||
| Line 22: | Line 22: | ||
|- | |- | ||
|[[Api session event logic area set attribute|area_set_attribute]] | |[[Api session event logic area set attribute|area_set_attribute]] | ||
|Set [[Area]] Attribute to given number Value. | |Set [[Area]] [[Attribute]] to given number Value. | ||
|- | |- | ||
|[[Api session event logic areas set attributes|areas_set_attributes]] | |[[Api session event logic areas set attributes|areas_set_attributes]] | ||
|Per entry in the array, set the value of the | |Per entry in the array, set the value of the [[Attribute]] for the [[Area]]. | ||
|- | |- | ||
|[[Api session event logic building set attribute|building_set_attribute]] | |[[Api session event logic building set attribute|building_set_attribute]] | ||
|Set [[Building]] Attribute to given number Value. | |Set [[Building]] [[Attribute]] to given number Value. | ||
|- | |- | ||
|[[Api session event logic building set attributes|building_set_attributes]] | |[[Api session event logic building set attributes|building_set_attributes]] | ||
|Per entry in the array, set the values of the | |Per entry in the array, set the values of the [[Attribute]] for the [[Building]]. | ||
|- | |- | ||
|[[Api session event logic cinematic reached point|cinematic_reached_point]] | |[[Api session event logic cinematic reached point|cinematic_reached_point]] | ||
| | |Flight[[#Api Model Point|Point]] reached for a specific [[Cinematic]]. | ||
|- | |- | ||
|[[Api session event logic cinematic stakeholder start|cinematic_stakeholder_start]] | |[[Api session event logic cinematic stakeholder start|cinematic_stakeholder_start]] | ||
| Line 58: | Line 58: | ||
|- | |- | ||
|[[Api session event logic measurement line add|measurement_line_add]] | |[[Api session event logic measurement line add|measurement_line_add]] | ||
|Add a Line[[Measurement]] for an [[Overlay]] for a specific [[ | |Add a Line[[Measurement]] for an [[Overlay]] for a specific [[Timeframe]]. | ||
|- | |- | ||
|[[Api session event logic measurement point add|measurement_point_add]] | |[[Api session event logic measurement point add|measurement_point_add]] | ||
| Line 70: | Line 70: | ||
|- | |- | ||
|[[Api session event logic measurement set overlays|measurement_set_overlays]] | |[[Api session event logic measurement set overlays|measurement_set_overlays]] | ||
|Set base [[Overlay]] for an existing [[Measurement]]. | |Set base [[Overlay]]s for an existing [[Measurement]]. | ||
|- | |- | ||
|[[Api session event logic measurement set sum|measurement_set_sum]] | |[[Api session event logic measurement set sum|measurement_set_sum]] | ||
|Set a [[Measurement]] to add its base [[Overlay]] to itself. | |Set a [[Measurement]] to add its base [[Overlay]]s to itself. | ||
|- | |- | ||
|[[Api session event logic money transfer add|money_transfer_add]] | |[[Api session event logic money transfer add|money_transfer_add]] | ||
|Create a new [[Money Transfer]] between two [[Stakeholder]]. | |Create a new [[Money Transfer]] between two [[Stakeholder]]s. | ||
|- | |- | ||
|[[Api session event logic money transfers set approved|money_transfers_set_approved]] | |[[Api session event logic money transfers set approved|money_transfers_set_approved]] | ||
| Line 82: | Line 82: | ||
|- | |- | ||
|[[Api session event logic neighborhood set attribute|neighborhood_set_attribute]] | |[[Api session event logic neighborhood set attribute|neighborhood_set_attribute]] | ||
|Set an | |Set an [[Attribute]] for a [[Neighborhood]]. | ||
|- | |- | ||
|[[Api session event logic net cluster set fraction connected|net_cluster_set_fraction_connected]] | |[[Api session event logic net cluster set fraction connected|net_cluster_set_fraction_connected]] | ||
|Set the | |Set the fr[[Action]] of connected loads with a cluster. | ||
|- | |- | ||
|[[Api session event logic net cluster set load attribute|net_cluster_set_load_attribute]] | |[[Api session event logic net cluster set load attribute|net_cluster_set_load_attribute]] | ||
|For each [[Net Load]] of a [[Net Cluster]], set the value of the | |For each [[Net Load]] of a [[Net Cluster]], set the value of the [[Attribute]]. | ||
|- | |- | ||
|[[Api session event logic net cluster set load attributes|net_cluster_set_load_attributes]] | |[[Api session event logic net cluster set load attributes|net_cluster_set_load_attributes]] | ||
|For each [[Net Load]] of a [[Net Cluster]], set the values of the provided | |For each [[Net Load]] of a [[Net Cluster]], set the values of the provided [[Attribute]]s. | ||
|- | |- | ||
|[[Api session event logic net clusters set default fraction connected|net_clusters_set_default_fraction_connected]] | |[[Api session event logic net clusters set default fraction connected|net_clusters_set_default_fraction_connected]] | ||
|Set the default | |Set the default fr[[Action]] of connected loads with a cluster. | ||
|- | |- | ||
|[[Api session event logic net clusters set load attributes|net_clusters_set_load_attributes]] | |[[Api session event logic net clusters set load attributes|net_clusters_set_load_attributes]] | ||
|Per [[Net Cluster]], for each [[Net Load]] of that [[Net Cluster]], set the values of the provided | |Per [[Net Cluster]], for each [[Net Load]] of that [[Net Cluster]], set the values of the provided [[Attribute]]s. | ||
|- | |- | ||
|[[Api session event logic net clusters set state|net_clusters_set_state]] | |[[Api session event logic net clusters set state|net_clusters_set_state]] | ||
|Per [[Net Cluster]], set all its [[Net Load]] of the provided [[Net Type]] to the given [[Timestate]]. | |Per [[Net Cluster]], set all its [[Net Load]]s of the provided [[Net Type]] to the given [[Timestate]]. | ||
|- | |- | ||
|[[Api session event logic net line set attribute|net_line_set_attribute]] | |[[Api session event logic net line set attribute|net_line_set_attribute]] | ||
|Set the | |Set the [[Attribute]] of a [[Net Line]] to the provided value. | ||
|- | |- | ||
|[[Api session event logic net lines set attribute|net_lines_set_attribute]] | |[[Api session event logic net lines set attribute|net_lines_set_attribute]] | ||
|For each [[Net Line]], set the value of the | |For each [[Net Line]], set the value of the [[Attribute]]. | ||
|- | |- | ||
|[[Api session event logic net lines set attributes|net_lines_set_attributes]] | |[[Api session event logic net lines set attributes|net_lines_set_attributes]] | ||
|Per entry in the array, set the value of the | |Per entry in the array, set the value of the [[Attribute]] for the [[Net Line]]. | ||
|- | |- | ||
|[[Api session event logic scenario set active|scenario_set_active]] | |[[Api session event logic scenario set active|scenario_set_active]] | ||
| Line 115: | Line 115: | ||
|- | |- | ||
|[[Api session event logic scenario set attribute|scenario_set_attribute]] | |[[Api session event logic scenario set attribute|scenario_set_attribute]] | ||
|Set [[Scenario]] Attribute to given number Value. | |Set [[Scenario]] [[Attribute]] to given number Value. | ||
|- | |- | ||
|[[Api session event logic search|search]] | |[[Api session event logic search|search]] | ||
| Line 121: | Line 121: | ||
|- | |- | ||
|[[Api session event logic session release|session_release]] | |[[Api session event logic session release|session_release]] | ||
|Release a client from a | |Release a client from a [[Session]] using its client token. | ||
|- | |- | ||
|[[Api session event logic set net setting boolean|set_net_setting_boolean]] | |[[Api session event logic set net setting boolean|set_net_setting_boolean]] | ||
|For boolean valued [[Net Setting]]s (ELECTRICITY_ACTIVE, GAS_ACTIVE, HEAT_ACTIVE, INTERNET_ACTIVE, SEWER_ACTIVE, REQUIRE_UTILITY_CORPORATION_APPROVAL, CLUSTER_MODELS_ENABLED, LOAD_TO_NODE_LINES_ENABLED, FIRST_CONNECT_ACCEPT, | |For boolean valued [[Net Setting]]s (ELECTRICITY_ACTIVE, GAS_ACTIVE, HEAT_ACTIVE, INTERNET_ACTIVE, SEWER_ACTIVE, REQUIRE_UTILITY_CORPORATION_APPROVAL, CLUSTER_MODELS_ENABLED, LOAD_TO_NODE_LINES_ENABLED, FIRST_CONNECT_ACCEPT, RESTRICT_TO_NET_[[Overlay]]), set the value to true or false. | ||
|- | |- | ||
|[[Api session event logic set traffic multiplier|set_traffic_multiplier]] | |[[Api session event logic set traffic multiplier|set_traffic_multiplier]] | ||
| Line 133: | Line 133: | ||
|- | |- | ||
|[[Api session event logic stakeholder release|stakeholder_release]] | |[[Api session event logic stakeholder release|stakeholder_release]] | ||
|Release a [[Stakeholder]] from a | |Release a [[Stakeholder]] from a [[Session]]. | ||
|- | |- | ||
|[[Api session event logic stakeholder select|stakeholder_select]] | |[[Api session event logic stakeholder select|stakeholder_select]] | ||
| Line 139: | Line 139: | ||
|- | |- | ||
|[[Api session event logic undo last building action|undo_last_building_action]] | |[[Api session event logic undo last building action|undo_last_building_action]] | ||
|Undo the last [[Building]] | |Undo the last [[Building]] [[Action]] of a [[Stakeholder]]. | ||
|- | |- | ||
|[[Api session event logic unit type set active|unit_type_set_active]] | |[[Api session event logic unit type set active|unit_type_set_active]] | ||
| Line 145: | Line 145: | ||
|- | |- | ||
|[[Api session event logic zone set attribute|zone_set_attribute]] | |[[Api session event logic zone set attribute|zone_set_attribute]] | ||
|Set an | |Set an [[Attribute]] for a [[Zone]]. | ||
|- | |- | ||
|[[Api session event logic zones set attributes|zones_set_attributes]] | |[[Api session event logic zones set attributes|zones_set_attributes]] | ||
|Set | |Set [[Attribute]]s to values for [[Zone]]s. | ||
|} | |} | ||
{{article end|seealso=*[[Api Events]] | {{article end|seealso=*[[Api Events]] | ||
Revision as of 14:49, 2 June 2026
Api session event logic Endpoints.
API EndPoints for EndPoints changing Functionality in a testrun/impact Session.
| Name | Description |
|---|---|
| action_log_export | Export history of Actions taken by participants. |
| action_menu_set_function_available | Add or remove a Function from a particular Action Menu. |
| action_menu_set_measure_available | Add or remove a Measure from a particular Action Menu. |
| action_menu_set_upgrade_available | Add or remove an upgrade from a particular Action Menu. |
| area_set_active | Activate/deactivate a Area. |
| area_set_attribute | Set Area Attribute to given number Value. |
| areas_set_attributes | Per entry in the array, set the value of the Attribute for the Area. |
| building_set_attribute | Set Building Attribute to given number Value. |
| building_set_attributes | Per entry in the array, set the values of the Attribute for the Building. |
| cinematic_reached_point | FlightPoint reached for a specific Cinematic. |
| cinematic_stakeholder_start | Start a Cinematic for a specific Stakeholder. |
| cinematic_stakeholder_stop | Stop any Cinematic for a specific Stakeholder. |
| dismiss_error | Dismiss Error Log. |
| global_set_value | Set Global Variable to given number Value. |
| global_set_values | Set Global Variable to given number Values. |
| map_direct_sell_land | Direct sale of land, no approval asked. |
| measurement_item_add | Add a ItemMeasurement for an Overlay. |
| measurement_line_add | Add a LineMeasurement for an Overlay for a specific Timeframe. |
| measurement_point_add | Add a PointMeasurement for an Overlay. |
| measurement_remove | Remove a Measurement. |
| measurement_save | Save a Measurement. |
| measurement_set_overlays | Set base Overlays for an existing Measurement. |
| measurement_set_sum | Set a Measurement to add its base Overlays to itself. |
| money_transfer_add | Create a new Money Transfer between two Stakeholders. |
| money_transfers_set_approved | Approve a Money Transfer |
| neighborhood_set_attribute | Set an Attribute for a Neighborhood. |
| net_cluster_set_fraction_connected | Set the frAction of connected loads with a cluster. |
| net_cluster_set_load_attribute | For each Net Load of a Net Cluster, set the value of the Attribute. |
| net_cluster_set_load_attributes | For each Net Load of a Net Cluster, set the values of the provided Attributes. |
| net_clusters_set_default_fraction_connected | Set the default frAction of connected loads with a cluster. |
| net_clusters_set_load_attributes | Per Net Cluster, for each Net Load of that Net Cluster, set the values of the provided Attributes. |
| net_clusters_set_state | Per Net Cluster, set all its Net Loads of the provided Net Type to the given Timestate. |
| net_line_set_attribute | Set the Attribute of a Net Line to the provided value. |
| net_lines_set_attribute | For each Net Line, set the value of the Attribute. |
| net_lines_set_attributes | Per entry in the array, set the value of the Attribute for the Net Line. |
| scenario_set_active | Activate a level. |
| scenario_set_attribute | Set Scenario Attribute to given number Value. |
| search | Search for Neighborhood, Building or Address. |
| session_release | Release a client from a Session using its client token. |
| set_net_setting_boolean | For boolean valued Net Settings (ELECTRICITY_ACTIVE, GAS_ACTIVE, HEAT_ACTIVE, INTERNET_ACTIVE, SEWER_ACTIVE, REQUIRE_UTILITY_CORPORATION_APPROVAL, CLUSTER_MODELS_ENABLED, LOAD_TO_NODE_LINES_ENABLED, FIRST_CONNECT_ACCEPT, RESTRICT_TO_NET_Overlay), set the value to true or false. |
| set_traffic_multiplier | Multiply visual (only) traffic density with this factor. |
| special_effect_set_active | Activate/deactivate a Special Effect. |
| stakeholder_release | Release a Stakeholder from a Session. |
| stakeholder_select | Select Stakeholder with preferred ID, when not available fallback to next best. |
| undo_last_building_action | Undo the last Building Action of a Stakeholder. |
| unit_type_set_active | Activate/deactivate units of a specific type. |
| zone_set_attribute | Set an Attribute for a Zone. |
| zones_set_attributes | Set Attributes to values for Zones. |