--
You received this message because you are subscribed to the Google Groups "The Modelling4All project" group.
To unsubscribe from this group and stop receiving emails from it, send an email to modelling4al...@googlegroups.com.
To post to this group, send email to modell...@googlegroups.com.
Visit this group at http://groups.google.com/group/modelling4all.
For more options, visit https://groups.google.com/d/optout.
Hi.If the list is per agent then my-tree or the like is appropriate rather than a global parameter.Monitors can display the results of any 'reporter'. E.g. [my-family] of one-of all-of-kind "Person" would display the list for a different random person each time. Obviously more useful expressions can be defined.You could have a button that says 'Monitor the family tree of an individual' that when pressed either sets a global to a random individual or has an interface where the user clicks on the individual they want to monitor. Then the monitor is something likeifelse-value is-agent? the-monitored-individual [[my-family] of the-monitored-individual] [""]which will display nothing if the-monitored-individual isn't set.Best,-ken
On 27 March 2014 13:35, Howard Noble <howard...@gmail.com> wrote:
Hi.
In the section 'Measure runs using these reporters' you can add the same type of code you can add to a monitor. E.g.[my-family] of alll-of-kind "male"
[my-family] of alll-of-kind "female"
would add two new columns filled with the lists.Best,-ken
On 28 March 2014 09:46, Andreas Duering <andreasdu...@gmail.com> wrote:
http://m.modelling4all.org/m/?frozen=wRnekKydga3EcPuxVZ906b&MforAllModel=1
What did I do wrong?
Best
Andreas
Perfect :-)!I had tried a few things but it was just that I forgot the parantheses. It showed me an error telling me that I could not monitor lists of agent specific parameters.
Andreas Duering, M.A., M.St.
Clarendon Scholar
D.Phil. student in Archaeology
School of Archaeology
University of Oxford
St Cross College
andreas...@stx.ox.ac.uk
andreasdu...@gmail.com
2014-03-28 9:43 GMT+00:00 Ken Kahn <toon...@gmail.com>:
Hi.
In the section 'Measure runs using these reporters' you can add the same type of code you can add to a monitor. E.g.[my-family] of alll-of-kind "male"
[my-family] of alll-of-kind "female"
would add two new columns filled with the lists.Best,-ken
On 28 March 2014 09:46, Andreas Duering <andreasdu...@gmail.com> wrote:
Hi.
This was very tricky. You need[lput my-number_of_children my-fline] of myselfinstead oflput [ my-number_of_children ] of myself my-fline
The reason is create female offspring calls create-agents which is documented as 'Create additional agents initialising them as if at set up time. 'So in your code my-fline has the value of a freshly initialised female which is what setup female line does. By moving the lput and my-fline inside the square brackets we get the value of the variables for 'myself'', i.e. the mother. Make sense?
Best,-ken