Producer Consumer: Difference between revisions
Appearance
No edit summary |
No edit summary |
||
| Line 4: | Line 4: | ||
==Screenshot== | ==Screenshot== | ||
[[Image: | [[Image:Consumer.gif]] | ||
==Download Model== | ==Download Model== | ||
Download the .scn, .sel and .lse files by clicking on the following link: [[Image: | Download the .scn, .sel and .lse files by clicking on the following link: [[Image:ProducerConsumer.zip]] | ||
==Model Code Exploration== | ==Model Code Exploration== | ||
| Line 14: | Line 14: | ||
In the following sections we will examine all of the model files for this model. Note that instead of downloading the zip file above, you could just copy the text in the boxes below into a text editor and save it with the appropriate name (Section title). Opening the resulting .scn file in the SELES simulator would run this model. | In the following sections we will examine all of the model files for this model. Note that instead of downloading the zip file above, you could just copy the text in the boxes below into a text editor and save it with the appropriate name (Section title). Opening the resulting .scn file in the SELES simulator would run this model. | ||
=== | ===Consume.scn=== | ||
Seles Scenario | |||
Model.sel | Model.sel | ||
SimPriority Low Priority | SimPriority Low Priority | ||
===Model.sel=== | ===Model.sel=== | ||
Seles Model | Seles Model | ||
Time Units: Step kiloStep 1000 | Time Units: Step kiloStep 1000 1000 | ||
Landscape Events: | Landscape Events: | ||
Producer.lse DEBUG | |||
Consumer.lse DEBUG | |||
Update.lse DEBUG | |||
Spatial Variables: | Spatial Variables: | ||
LSState[3] | |||
PrevLSState[3] | |||
Legends: | |||
LSStateTypes = {0:Uncolonised, 1:Producer, 2:Consumer} | |||
Global Variables: | Global Variables: | ||
pInitialProducer = 0.01 | |||
pInitialConsumer = 0.01 | |||
pSpreadProducer = 0.1 | |||
pSpreadConsumer = 0.2 | |||
pDeathProducer = 0.01 | |||
pDeathConsumer = 0.05 | |||
// SpreadRateProducer = 1 | |||
// SpreadRateConsumer = 1 | |||
Output Frequency: 1 | Output Frequency: 1 | ||
=== | ===consumer.lse=== | ||
===producer.lse=== | |||
===update.lse=== | |||
==Suggested Experiments== | ==Suggested Experiments== | ||
To explore this cellular automata model further, try the following: | To explore this cellular automata model further, try the following: | ||
Revision as of 23:15, 8 November 2006
Summary
Screenshot
Download Model
Download the .scn, .sel and .lse files by clicking on the following link: File:ProducerConsumer.zip
Model Code Exploration
In the following sections we will examine all of the model files for this model. Note that instead of downloading the zip file above, you could just copy the text in the boxes below into a text editor and save it with the appropriate name (Section title). Opening the resulting .scn file in the SELES simulator would run this model.
Consume.scn
Seles Scenario Model.sel SimPriority Low Priority
Model.sel
Seles Model
Time Units: Step kiloStep 1000 1000
Landscape Events:
Producer.lse DEBUG
Consumer.lse DEBUG
Update.lse DEBUG
Spatial Variables:
LSState[3]
PrevLSState[3]
Legends:
LSStateTypes = {0:Uncolonised, 1:Producer, 2:Consumer}
Global Variables:
pInitialProducer = 0.01
pInitialConsumer = 0.01
pSpreadProducer = 0.1
pSpreadConsumer = 0.2
pDeathProducer = 0.01
pDeathConsumer = 0.05
// SpreadRateProducer = 1
// SpreadRateConsumer = 1
Output Frequency: 1
consumer.lse
producer.lse
update.lse
Suggested Experiments
To explore this cellular automata model further, try the following:
