Users can also create and record a time series of events within their model, access that series during simulations, and export it to a file for analysis. You then access the data by time and by column heading, akin to saying "get the flow from May 8, 2008". The remaining columns can be numeric or string values. The first column in that text file holds dates or datetimes. With a single command, you can load an entire time series data set from a text file. The s file includes convenient procedures for handling time series data. You can then include that file with the _ includes primitive. The time extension no longer provides time series functionality (plus some), but the same functionality is included the s file in this repo which you can download by clicking that link and then right clicking the "raw" button on the upper right of the file and selecting "download linked file" (you might have to remove a '.txt' file extension so that the file ends with the '.nls' extension). Modelers commonly need to use time series data in NetLogo. The time extension makes it easy to convert string representations of dates and date/times to a LogoTime object which can then be used to do many common time manipulations such as incrementing the time by some amount (e.g. A subset of these capabilities have been extended to NetLogo. This extension is powered by the Java Time Library, which has very sophisticated and comprehensive date/time facilities. It allows users to do things such as starting a simulation on 1 January of 2010 and end on 31 December 2015, have each tick represent 6 hours, and check whether the current simulation date is between 1 and 15 March. The extension provides tools for representing time explicitly, especially by linking NetLogo’s ticks to a specific time interval. The package provides tools for common date and time operations, discrete event scheduling, and using time-series input data. This package contains the NetLogo time extension, which provides NetLogo with three kinds of capabilities for models that use discrete-event simulation or represent time explicitly. then all 5 turtles will go forward at tick 10
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |