Download NetLogo 4.0 User Manual - scstevenson

Transcript
NetLogo 4.0 User Manual
Table of Contents
Extensions Guide
Conclusion....................................................................................................................193
Array and Table Extensions........................................................................................................195
When to use........................................................................................................................195
How to use..........................................................................................................................195
Limitation on table keys.................................................................................................195
Array example.....................................................................................................................195
Table example....................................................................................................................196
Known issues......................................................................................................................196
Array primitives...................................................................................................................196
array:from−list...............................................................................................................196
array:item......................................................................................................................196
array:set........................................................................................................................197
array:length...................................................................................................................197
array:to−list...................................................................................................................197
Table Primitives..................................................................................................................197
table:clear......................................................................................................................197
table:from−list................................................................................................................197
table:get........................................................................................................................197
table:has−key?..............................................................................................................198
table:keys......................................................................................................................198
table:length...................................................................................................................198
table:make.....................................................................................................................198
table:put........................................................................................................................198
table:remove.................................................................................................................198
table:to−list....................................................................................................................198
Sound Extension..........................................................................................................................199
Using the Sound Extension.................................................................................................199
MIDI support.......................................................................................................................199
Primitives............................................................................................................................199
sound:drums.................................................................................................................199
sound:instruments.........................................................................................................200
sound:play−drum..........................................................................................................200
sound:play−note............................................................................................................200
sound:play−note−later...................................................................................................200
sound:play−sound.........................................................................................................200
sound:play−sound−and−wait........................................................................................201
sound:play−sound−later................................................................................................201
sound:start−note...........................................................................................................201
sound:stop−note...........................................................................................................201
sound:stop−instrument..................................................................................................202
sound:stop−music.........................................................................................................202
Sound names......................................................................................................................202
Drums............................................................................................................................202
Instruments...................................................................................................................202
vii