Difference between revisions of "Defining hare population as a function of time"

 
(15 intermediate revisions by 5 users not shown)
Line 1: Line 1:
* Select Hares at start. Click on the key icon to open the Attribute panel. Click on the Description field, type ‘The hare population at the start of each time period.’ Press alt+enter.
+
[[Category: Foxes and Hares model]]
  
[[Image:Foxes and Hares diagram 1.1.jpg]]
+
* On the diagram, click on 'Hares at start' node to select it. Click on the key icon to open the [[Attribute panel]]. Click on the Description field, type ‘The hare population at the start of each time period.’ Press ''Alt+Enter''.
  
* Select Definition from the Attribute popup menu. Click on the expr popup menu, select ‘other’. Object finder window should appear.
+
* Select Definition from the [[Attribute dropdown menu]]. Click on the [[expr]] popup menu, select ‘other’. Object finder window should appear.
  
[[Image:Attribute Other.jpg]]
+
:[[Image:Attribute Other.jpg]]
  
* Select ‘Special’ from the Library popup menu.
+
* Select ‘Special’ from the Library popup menu, subsection control constructs and local variables.
  
[[Image:Object special.jpg]]
+
:[[Image:Object special.jpg]]
  
* Select Dynamic to open parameter box for Dynamic function(). Click on the Dynamic field. Type ‘100, Hares_at_end[Time-1]*(1+Hare_birth_rate)’. Click ‘ok’ button.
+
* Select Dynamic to open parameter box for Dynamic function(). Click on the Dynamic field. Type without quotes ‘100, Hares_at_end[Time-1]*(1+Hare_birth_rate)’. Click '''OK''' button.
  
[[Image:Object finder dynamic.jpg]]
+
:[[Image:Object finder dynamic.jpg]]
  
* Press alt+enter to accept the definition.
+
:[[Image:Attribute dynamic.jpg]]
  
[[Image:Attribute dynamic.jpg]]
+
'''Expected: You should have this result. Note in particular, the gray arrow pointing from Hares at end to Hares at start.'''
  
'''Expected: You should have this result.'''
+
:[[Image:Foxes and Hares diagram 1.2.jpg]]
 
 
[[Image:Foxes and Hares diagram 1.2.jpg]]
 
  
 
* Select ‘Hares at end’. Select ‘Description’ from the Attribute popup menu. Type ‘The hare population at the end of each time period.’
 
* Select ‘Hares at end’. Select ‘Description’ from the Attribute popup menu. Type ‘The hare population at the end of each time period.’
  
[[Image:Attribute Hares at end.jpg]]
+
:[[Image:Attribute Hares at end.jpg]]
  
 
* Select ‘Definition’ from the Attribute popup menu. Click on the definition field.  
 
* Select ‘Definition’ from the Attribute popup menu. Click on the definition field.  
Line 31: Line 29:
 
'''Expected: Inputs popup menu should appear.'''
 
'''Expected: Inputs popup menu should appear.'''
  
* Select ‘Hares at start’.
+
* Click on the inputs popup menu, and select ‘Hares at start’.
  
[[Image:Attritbute Hares at end 1.1.jpg]]
+
:[[Image:Attritbute Hares at end 1.1.jpg]]
  
* Click on the ‘Result’ button.  
+
* Click on the ‘Show result’ button on the tool palette.  
  
'''Expected: A result graph window should appear.'''
+
'''Expected: A result table window should appear. Change to graph '''
  
[[Image:Result button 1.1.jpg]]
+
:[[Image:Result window.jpg]]
  
[[Image:Result window.jpg]]
+
==See Also==
 +
* [[Tutorial: Dynamic system model]]
 +
* [[Creating the Foxes and Hares model (based on chapter 7 of tutorial)]]

Latest revision as of 09:20, 4 March 2020


  • On the diagram, click on 'Hares at start' node to select it. Click on the key icon to open the Attribute panel. Click on the Description field, type ‘The hare population at the start of each time period.’ Press Alt+Enter.
  • Select Definition from the Attribute dropdown menu. Click on the expr popup menu, select ‘other’. Object finder window should appear.
Attribute Other.jpg
  • Select ‘Special’ from the Library popup menu, subsection control constructs and local variables.
Object special.jpg
  • Select Dynamic to open parameter box for Dynamic function(). Click on the Dynamic field. Type without quotes ‘100, Hares_at_end[Time-1]*(1+Hare_birth_rate)’. Click OK button.
Object finder dynamic.jpg
Attribute dynamic.jpg

Expected: You should have this result. Note in particular, the gray arrow pointing from Hares at end to Hares at start.

Foxes and Hares diagram 1.2.jpg
  • Select ‘Hares at end’. Select ‘Description’ from the Attribute popup menu. Type ‘The hare population at the end of each time period.’
Attribute Hares at end.jpg
  • Select ‘Definition’ from the Attribute popup menu. Click on the definition field.

Expected: Inputs popup menu should appear.

  • Click on the inputs popup menu, and select ‘Hares at start’.
Attritbute Hares at end 1.1.jpg
  • Click on the ‘Show result’ button on the tool palette.

Expected: A result table window should appear. Change to graph

Result window.jpg

See Also

Comments


You are not allowed to post comments.