Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<model version="NetLogo 7.1.0-internal1" snapToGrid="true">
<code><![CDATA[
extensions [time csv]
__includes ["time-series.nls"]
import [ts-add-row ts-create ts-get-range] from time-series

globals [
start-time ; the time at which the first trap is triggered
Expand Down
16 changes: 16 additions & 0 deletions Code Examples/Extensions Examples/time/time-series.nls
Original file line number Diff line number Diff line change
@@ -1,5 +1,21 @@
;; NOTE: the main file that includes this one must have both the csv and time extensions

export [
ts-create
ts-add-row
ts-get
ts-get-before-and-after
ts-get-interp
ts-get-exact
ts-get-range
ts-load
ts-load-with-format
ts-has-repeat-times?
ts-has-repeat-of-time?
ts-write-with-format
ts-write
]

;; Implementation of what were primitives from the time-extension time-series tool
to-report ts-create [col-name-list]
report (list sentence "LOGOTIME" col-name-list)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<model version="NetLogo 7.1.0-internal1" snapToGrid="true">
<code><![CDATA[
__includes ["time-series.nls"]
import [ts-add-row ts-create ts-write] from time-series
extensions [ time csv ]

globals [
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,21 @@
;; NOTE: the main file that includes this one must have both the csv and time extensions

export [
ts-create
ts-add-row
ts-get
ts-get-before-and-after
ts-get-interp
ts-get-exact
ts-get-range
ts-load
ts-load-with-format
ts-has-repeat-times?
ts-has-repeat-of-time?
ts-write-with-format
ts-write
]

;; Implementation of what were primitives from the time-extension time-series tool
to-report ts-create [col-name-list]
report (list sentence "LOGOTIME" col-name-list)
Expand Down
Loading
Loading