Function Value: Difference between revisions

From Tygron Support wiki
Jump to navigation Jump to search
No edit summary
 
(9 intermediate revisions by the same user not shown)
Line 15: Line 15:
==Overview of all function values==
==Overview of all function values==
Most function values have specific effects in the context of the {{software}}. Individual function values can be grouped into categories based on their effects or themes.
Most function values have specific effects in the context of the {{software}}. Individual function values can be grouped into categories based on their effects or themes.
===Name===
{{Function values|
{{Function values|type=row
  |functionvalue= | linkoverride=Name
  |attribute=(Property of function value)
  |unit=text
  |category=
  |description=The name of the Function.
  }}
}}


===Assets and visualization===
===Assets and visualization===
Line 35: Line 24:
{{:Roof color (Function Value)}}
{{:Roof color (Function Value)}}
{{:Terrain mix (Function Value)}}
{{:Terrain mix (Function Value)}}
{{Function values|type=row
  |functionvalue= | linkoverride=Description
  |attribute=(Property of function value)
  |unit=text
  |category=
  |description=The textual description of this function, which is displayed to the user when using this function as as [[action]].
  }}
}}
}}


Line 115: Line 97:
{{:Ground infiltration per day (Function Value)}}
{{:Ground infiltration per day (Function Value)}}
{{:Manning value (Function Value)}}
{{:Manning value (Function Value)}}
{{:Water evaporation (Function Value)}}
{{:Water transpiration (Function Value)}}
{{:Water microrelief (Function Value)}}
{{:Water microrelief (Function Value)}}
{{:Water storage (Function Value)}}
{{:Water storage (Function Value)}}
Line 123: Line 105:
Besides the function values which are provided by default, it is possible to add user-defined attributes to function values as well. Any attribute added is automatically available as an [[Attribute]] for all [[Function]]s, and all [[Building]]s, although the default value of the [[Attribute]] will be 0.
Besides the function values which are provided by default, it is possible to add user-defined attributes to function values as well. Any attribute added is automatically available as an [[Attribute]] for all [[Function]]s, and all [[Building]]s, although the default value of the [[Attribute]] will be 0.


User-defined [[Attribute]]s added to a function value always apply to the building as a whole, and cannot be [[Category Value|category-specific]].
[[Attribute]]s added to a function value always apply to the building as a whole, and cannot be [[Category Value|category-specific]].
{{Function values|
 
| {{Function values|type=row
Examples of Function Attributes:
  |functionvalue= | linkoverride= 
{{Building attributes|
  |attribute=[[Private yard (Building Attribute)|PRIVATE_YARD]]
{{:Private yard (Building Attribute)}}
  |unit={{boolean}}
  |category=
  |description=Whether the building is a private yard belonging to a residence or private stakeholder.
  }}
{{Function values|type=row
  |functionvalue= | linkoverride=(user defined)
  |attribute=(user defined)
  |unit=(user defined)
  |category=
  |description=Attributes can be used to assign any additional values or properties to functions and the buildings which derive from them.
  }}
}}
}}


Line 155: Line 126:
|api=
|api=
*[[Api session event editor functionoverride set function value]]
*[[Api session event editor functionoverride set function value]]
*[[Api session event editor functionoverride reset values]]
*[[Api session event editor building set function value]]
*[[Api session event editor building reset function values]]
}}
}}


{{editor current situation nav}}
{{editor current situation nav}}

Latest revision as of 13:02, 13 July 2026

Function values are specific values which form the general properties of any building with a specific function. A function has many function values, and any building of that function also has those function values.

Function values can be changed for an individual building, or for a function, which in turn would affect all buildings of that function.

For values related to a specific Function Category, which are handled differently, see Category Values.

Overwrites

Function Values can be defined on several levels. Primarily, they can be defined on Functions. The Function Values of Functions can be overwritten by adding them to the Function Values Table. Additionally, a Function can be duplicated, and that new Function will effectively have the same values of the original Function. Lastly, regardless of the Function a Building has, it can have its own Function Values as well. This means the used Function Values are determined as follows:

  • If a building has their own Function Value set, that value is used.
  • Otherwise, if the building's Function has an explicit Function Value defined, that value is used.
  • Otherwise, if that Function was created by duplicating another Function, that Function's value is used. This step is repeated until either a value is found, or the original Function (from which all the others are derived) is found.
  • The original Function always has a valid Function Value.

Overview of all function values

Most function values have specific effects in the context of the Tygron Platform. Individual function values can be grouped into categories based on their effects or themes.

Assets and visualization

Construction

Environment

Network

Traffic

Traffic is split up into two further categories, to differentiate between traffic which may apply to Traffic Overlays and alternative types of traffic. Values are generally set based on data from Traffic Plugin.

Car traffic

Other traffic

Water

Attributes

Besides the function values which are provided by default, it is possible to add user-defined attributes to function values as well. Any attribute added is automatically available as an Attribute for all Functions, and all Buildings, although the default value of the Attribute will be 0.

Attributes added to a function value always apply to the building as a whole, and cannot be category-specific.

Examples of Function Attributes: