User Tools

Site Tools


time_event

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
time_event [2021/11/12 14:14]
mina [Time event]
time_event [2023/03/02 12:39] (current)
dmytroh [See also]
Line 11: Line 11:
 Simulation time boundaries are set in the [[simulation settings]] window. The **start time** is typically 0, and **end time** typically indicates the number of time units to run the simulation.  Simulation time boundaries are set in the [[simulation settings]] window. The **start time** is typically 0, and **end time** typically indicates the number of time units to run the simulation. 
  
-When you want an event to trigger depending on the value of the [[time]] variable, you use either [[parameter]] or [[lookup table]] blocks. +When you want an event to trigger depending on the value of the //time// variable, you use either [[parameter]] or [[lookup table]] blocks. 
  
 ^Type^Description^ ^Type^Description^
Line 22: Line 22:
 The end user specifies the simulation start date in the [[simulation settings]] window. The end date is either derived from the duration of the simulation (the end time-the start time), or given by the user. When working with dates Ecolego converts the simulation time to a calendar date. This means that leap years are taken into account.    The end user specifies the simulation start date in the [[simulation settings]] window. The end date is either derived from the duration of the simulation (the end time-the start time), or given by the user. When working with dates Ecolego converts the simulation time to a calendar date. This means that leap years are taken into account.   
  
-For dates there are more options than when working with simulation time. You would use either [[time point]] or [[time series]] blocks. The **mode** of the block (date, year, day of year etc.) will influence the behaviour of the event time block.  +For dates there are more options than when working with simulation time. You would use either [[time point]] or [[time_series_page|time series]] blocks. The **mode** of the block (date, year, day of year etc.) will influence the behaviour of the event time block.  
  
 ^Type^Periodic^Description^ ^Type^Periodic^Description^
 |Date|No|Use a [[time point]] block in **date** mode| |Date|No|Use a [[time point]] block in **date** mode|
-|Multiple dates|No|Use a [[time series]] block in **date** mode. An event will be sent for every date in the block.|+|Multiple dates|No|Use a [[time_series_page|time series]] block in **date** mode. An event will be sent for every date in the block.|
 |Year|No|Use a [[time point]] block in **year** mode| |Year|No|Use a [[time point]] block in **year** mode|
-|Multiple years|No|Use a [[time series]] block in **year** mode. An event will be sent for every year in the block.|+|Multiple years|No|Use a [[time_series_page|time series]] block in **year** mode. An event will be sent for every year in the block.|
 |Monthly|Yes|Use a [[time point]] block in **month** mode. Events are fired yearly at the 1st of the month specified in the block.| |Monthly|Yes|Use a [[time point]] block in **month** mode. Events are fired yearly at the 1st of the month specified in the block.|
-|Multiple months|Yes|Use a [[time series]] block in **month** mode. Events are fired yearly at the 1st of each month specified in the block.|+|Multiple months|Yes|Use a [[time_series_page|time series]] block in **month** mode. Events are fired yearly at the 1st of each month specified in the block.|
 |Day of year|Yes|Use a [[time point]] block in **day of year** mode. Events are fired yearly at the day and month specified in the block.| |Day of year|Yes|Use a [[time point]] block in **day of year** mode. Events are fired yearly at the day and month specified in the block.|
-|Day of year|Yes|Use a [[time series]] block in **day of year** mode. Events are fired yearly at each day and month specified in the block.|+|Day of year|Yes|Use a [[time_series_page|time series]] block in **day of year** mode. Events are fired yearly at each day and month specified in the block.|
 |Day of month|Yes|Use a [[time point]] block in **day of month** mode. Events are fired every month at the day  specified in the block. **Note:** events are only fired if the day is valid for the month. For example, if the day 29 is specified, an event will only fire for months with 29 days or more - non-leap year Februaries are ignored.| |Day of month|Yes|Use a [[time point]] block in **day of month** mode. Events are fired every month at the day  specified in the block. **Note:** events are only fired if the day is valid for the month. For example, if the day 29 is specified, an event will only fire for months with 29 days or more - non-leap year Februaries are ignored.|
-|Day of month|Yes|Use a [[time series]] block in **day of month** mode. Events are fired yearly at each day and month specified in the block.|+|Day of month|Yes|Use a [[time_series_page|time series]] block in **day of month** mode. Events are fired yearly at each day and month specified in the block.|
 |Weekly|Yes|Use a [[time point]] block in **day** mode. Events are fired weekly at the day specified in the block.| |Weekly|Yes|Use a [[time point]] block in **day** mode. Events are fired weekly at the day specified in the block.|
-|Weekly|Yes|Use a [[time series]] block in **day** mode. Events are fired weekly at the days specified in the block.|+|Weekly|Yes|Use a [[time_series_page|time series]] block in **day** mode. Events are fired weekly at the days specified in the block.|
 |Daily|Yes|Use a [[time point]] block in **hour** mode. Events are fired daily at the hour specified in the block.| |Daily|Yes|Use a [[time point]] block in **hour** mode. Events are fired daily at the hour specified in the block.|
-|Daily|Yes|Use a [[time series]] block in **hour** mode. Events are fired daily at the hours specified in the block.|+|Daily|Yes|Use a [[time_series_page|time series]] block in **hour** mode. Events are fired daily at the hours specified in the block.|
 |Hourly|Yes|Use a [[time point]] block in **minute** mode. Events are fired hourly at the minute specified in the block.| |Hourly|Yes|Use a [[time point]] block in **minute** mode. Events are fired hourly at the minute specified in the block.|
-|Hourly|Yes|Use a [[time series]] block in **minute** mode. Events are fired hourly at the minutes specified in the block.|+|Hourly|Yes|Use a [[time_series_page|time series]] block in **minute** mode. Events are fired hourly at the minutes specified in the block.|
 |Once every minute|Yes|Use a [[time point]] block in **seconds** mode. Events are fired at the seconds specified in the block.| |Once every minute|Yes|Use a [[time point]] block in **seconds** mode. Events are fired at the seconds specified in the block.|
-|Several times each minute|Yes|Use a [[time series]] block in **seconds** mode. Events are fired at each second specified in the block.|+|Several times each minute|Yes|Use a [[time_series_page|time series]] block in **seconds** mode. Events are fired at each second specified in the block.|
  
 For examples, check out the [[Tutorial - Time events]].  For examples, check out the [[Tutorial - Time events]]. 
Line 50: Line 50:
 As with [[discrete event|discrete events]], several blocks can take advantage of events. Read more [[events#Reacting to events|here]]. As with [[discrete event|discrete events]], several blocks can take advantage of events. Read more [[events#Reacting to events|here]].
  
-===== Creating a discrete event =====+===== Creating a time event =====
  
 From the [[Projects_window|Projects window]] From the [[Projects_window|Projects window]]
  
-  * Expand the Project to which you wish to add the discrete event by clicking the + symbol next to it. Right-click on ‘Blocks’, or a [[Sub-system|sub-system]] in ‘Blocks’, and select **Time event** from the pop-up menu.+  * Expand the Project to which you wish to add the time event by clicking the + symbol next to it. Right-click on ‘Blocks’, or a [[Sub-system|sub-system]] in ‘Blocks’, and select **Time event** from the pop-up menu.
  
 From the [[Matrix_window|Matrix window]] From the [[Matrix_window|Matrix window]]
Line 83: Line 83:
 ==== Values ==== ==== Values ====
  
-This page lets you select which objects to read time points from. This page lists all [[parameter]], [[lookup table]], [[time point]] and [[time series]] blocks of the model. Below the list are controls that allow you to search for blocks and selecting a sub-system. **Note** by default the list shows only blocks from the same sub-system as the event. +This page lets you select which objects to read time points from. This page lists all [[parameter]], [[lookup table]], [[time point]] and [[time_series_page|time series]] blocks of the model. Below the list are controls that allow you to search for blocks and selecting a sub-system. **Note** by default the list shows only blocks from the same sub-system as the event. 
  
 **Dimension** - You can specify the dimension of the block by using the **Type** drop down list. Depending on the dimension the index drop down lists are activated. See [[Editing_values|editing values]] for more information. **Dimension** - You can specify the dimension of the block by using the **Type** drop down list. Depending on the dimension the index drop down lists are activated. See [[Editing_values|editing values]] for more information.
Line 92: Line 92:
   * The [[Blocks_window|Blocks window]]   * The [[Blocks_window|Blocks window]]
   * The [[Matrix_window|Matrix window]]   * The [[Matrix_window|Matrix window]]
-  * The [[Recorder|recorder]] block 
   * [[Expression_syntax|Expression syntax]]   * [[Expression_syntax|Expression syntax]]
  
time_event.1636722857.txt.gz · Last modified: 2021/11/12 14:14 by mina