User Tools

Site Tools


expression_editing_tool

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
expression_editing_tool [2023/02/14 15:48]
daria
expression_editing_tool [2023/02/16 14:04] (current)
daria
Line 2: Line 2:
  
 The editor tool appears when a table cell is clicked that contains an expression. It can be hidden by clicking the **Toggle** button, as shown in the screen shot below. The editor tool appears when a table cell is clicked that contains an expression. It can be hidden by clicking the **Toggle** button, as shown in the screen shot below.
 +
 +{{expression_edit_tool.png?600|Editting window}}
  
 The equation editor is very useful when your [[Model|model]] contains a large number of blocks as it allow you to quickly find either existing blocks. The equation editor is very useful when your [[Model|model]] contains a large number of blocks as it allow you to quickly find either existing blocks.
Line 20: Line 22:
  **Type** – in case of block shows type of block (Compartment, Expression etc.) and in case of function type is functions.   **Type** – in case of block shows type of block (Compartment, Expression etc.) and in case of function type is functions. 
  
-Presents the list of all available in Ecolego [[Function|functions]] with short description as well all presented blocks in the model (except [[connector]|connectors]], [[model_input]|inputs]] and [[model_output]|outputs]]). +Presents the list of all available in Ecolego [[Function|functions]] with short description as well all presented blocks in the model (except [[connector]|connectors]], [[model_input]|inputs]] and [[model_output]|outputs]]). Also, in the list are presented [[index_list|indecies]].
- +
-{{:expression_editing_tool.png|Screenshot}}+
  
 +A list of all available objects that can be used in equations, for instance [[Compartment|compartments]], [[Expression|expressions]] and [[Parameter|parameters]]. This list also includes all entries in the [[Glossary|glossary]], all blocks available in the [[Parameter_database_toolbox|parameter database]] and all [[Function|functions]].
  
 ===== Auto completion ===== ===== Auto completion =====
  
-While you enter an expression you can press the **Space** key on your keyboard to quickly find names of objects in the model or in the [[Parameter_database_toolbox|parameter database]]. If you are writing the expression “rate//Co” and press space, all objects that contain the text “Co” will be displayed. You can use the arrow-down key to select one of the listed names, and return to select it.//+While you enter an expression you can press the **Space** key on your keyboard to quickly find names of objects in the model or in the [[Parameter_database_toolbox|parameter database]]. If you are writing the expression “rate//Co//” and press space, all objects that contain the text “Co” will be displayed. You can use the arrow-down key to select one of the listed names, and return to select it.
  
-===== Tools =====+====== Tools ======
  
 The editor contains several tools at your disposal. By using the buttons in the toolbar you can select which tools to show. The editor contains several tools at your disposal. By using the buttons in the toolbar you can select which tools to show.
  
-===== Keypad Keypad =====+==== Show/Hide calculation tool ====
  
 |Note|For more information about conditions see [[Expression_syntax|expression syntax]]| |Note|For more information about conditions see [[Expression_syntax|expression syntax]]|
  
 +When this button is enabled operators are added to the table in the *Editor*. They are added under the list of all presented in the model blocks.
 Use the keypad with the mouse to enter a value or an operator without having to use the keyboard. Use the keypad with the mouse to enter a value or an operator without having to use the keyboard.
  
-|&& |The logical operator AND is used in conditions. For instance (time>100 && Comp1<1000)*TF.           | +==== Show/Hide the list of available blocks ====
-||| |The logical operator OR is used in conditions. For instance (time<10 || time>90)*TF.                | +
-|== |The logical operator EQUALS is used in conditions. For instance "(plantType==Vegetable)*TF"       | +
-|~= |The logical operator NOT EQUALS is used in conditions. For instance "(height~=0)*(volume/height)"+
-|<--|Backspace                                                                                           | +
-|<  |The logical operator LESS THAN is used in conditions. For instance "(Comp1<Max_Conc)*TF"          | +
-|<|The logical operator LESS THAN OR EQUAL is used in conditions. For instance "(Comp1<=Max_Conc)*TF". | +
-|>|The logical operator GREATER THAN OR EQUAL is used in conditions. For instance "(time>=10)*TF"    | +
-|>  |The logical operator GREATER THAN is used in conditions. For instance "(time>time_for_accident)*TF".| +
-|<- |Left. Move the cursor one character to the left                                                     | +
-|^  |The power function. For instance, "10^a" is an alternative way of writing "power(10,a)"           | +
-|-> |Right. Move the cursor one character to the right                                                   |+
  
-=====  Functions =====+When this button is enabled all available [[block|blocks]] in the model are added to the list in the table in the *Editor*.  
 + 
 +Local objects, that is, objects from the same [[Sub-system|Sub-system]] as the currently edited object, are highlighted in **bold**. 
 +==== Show/Hide the list of available functions ==== 
 + 
 +|Note|For more information about functions see [[function|function]]| 
 + 
 +When this button is enabled list of functions is added to the table in the *Editor*.  
 + 
 +====  Functions ====
  
 |Note|The time function included in the functions list can be used to insert time-dependent conditions in equations.| |Note|The time function included in the functions list can be used to insert time-dependent conditions in equations.|
Line 58: Line 58:
 The functions list contains a list of the available [[Function|functions]] in Ecolego. If you want to add your own [[Function|functions]] to the list, please see [[Creating_custom_functions|creating custom functions]]). The functions list contains a list of the available [[Function|functions]] in Ecolego. If you want to add your own [[Function|functions]] to the list, please see [[Creating_custom_functions|creating custom functions]]).
  
-=====  Model objects =====+====  Show/hide database name tool ====
  
-A list of all available objects that can be used in equations, for instance [[Compartment|compartments]], [[Expression|expressions]] and [[Parameter|parameters]]. This list also includes all entries in the [[Glossary|glossary]], all blocks available in the [[Parameter_database_toolbox|parameter database]] and all [[Function|functions]].+|Note|To use this option user should be logged-in into the [[Parameter_database_toolbox|parameter database ]]|
  
-Local objects, that is, objects from the same [[Sub-system|Sub-system]] as the currently edited object, are highlighted in **bold**.+When this button is enabled all available parameters from parameter database are added to the list in the table in the *Editor*. 
  
-As the number of objects quickly becomes very large, the list has options to quickly filter out objects. To the right of this list there is a field containing several criteria according to you can filter the objects. The criteria are selected by using the drop-down list 
  
-<HTML><ul></HTML> 
-<HTML><li></HTML><HTML><p></HTML>**Pattern** – Lets to enter a string according to which the items from the list will be filtered. Entering a string here will filter out all objects that do not contain the string. An asterisk “//” can be used as a wildcard. As you type a word in the equation, the pattern will automatically be set to the same word as you are writing.//<HTML></p></HTML><HTML></li></HTML> 
-<HTML><li></HTML><HTML><p></HTML>**Type** – Let you to specify the type of object that should appear in the list, that is, compartments, expressions, transfer etc;<HTML></p></HTML><HTML></li></HTML> 
-<HTML><li></HTML><HTML><p></HTML>**Indices** – Let you to specify the kind of data, vectorised or not, that should be shown in the list;<HTML></p></HTML><HTML></li></HTML> 
-<HTML><li></HTML><HTML><p></HTML>**Sub-system** – Let you to specify the sub-system.<HTML></p></HTML> 
 ===== See also ===== ===== See also =====
-<HTML></li></HTML> + 
-<HTML><li></HTML><HTML><p></HTML>[[Automatic_object_creation|Automatic object creation]]<HTML></p></HTML><HTML></li></HTML> +  [[Automatic_object_creation|Automatic object creation]] 
-<HTML><li></HTML><HTML><p></HTML>[[Expression_syntax|Expression syntax]]<HTML></p></HTML><HTML></li></HTML><HTML></ul></HTML>+ 
 +  * [[Expression_syntax|Expression syntax]] 
  
  
expression_editing_tool.1676386083.txt.gz · Last modified: 2023/02/14 15:48 by daria