Skip to main content

Notice: this Wiki will be going read only early in 2024 and edits will no longer be possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.

Jump to: navigation, search

Difference between revisions of "AMP/Running Examples"

< AMP
(Run the Model)
(Run the Model)
Line 30: Line 30:
 
[[image:EpidemicModelRunning.png]]
 
[[image:EpidemicModelRunning.png]]
  
We're working on more end-user documentaiton, but hopefully you'll find model control pretty self-explanatory.
+
We're working on more end-user documentaiton, but hopefully you'll find model control pretty self-explanatory. The toolbar buttons allow you to control model execution.
 +
 
 +
[[image:EpidemicModelControls.png]]
 +
 
 +
From right to left, you can start, restart, pause, step, stop and close a model. You can even run multiple models and control them independently. You can also move views around, close them and so on as with any other Eclipse views. Here we're running two separate models for comparison.
 +
 
 +
[[image:EpidemicModelComparison.png]]
 +
 
 +
If you want to find out more about an agent, show the properties view, and click on agent.
 +
 
 +
[[image:EpidemicModelAgentProperties.png]]
 +
 
 +
You can experiment with different parameters (settings) for models by then clicking in the gray area away within the view.
 +
 
 +
[[image:EpidemicModelProperties.png]]
 +
 
 +
There are a number of other things to play around with, such as zooming the agent view or selecting other chart series to display using the Chart Customizer, so just explore. You can always close an active model by clicking on the close toolbar button. Or if you can't access the models controls for some reason, you can open the progress view and close projects form there.
  
 
====Next Steps====
 
====Next Steps====

Revision as of 02:31, 8 October 2009

Exploring Example ABM Models

The first thing most people will want to do in AMP is to play with the example models. You don't need to do any programming for this, and the setup is really straightforward. Of course, the first think you'll need to do is Install AMP. (You don't need any of the optional components unless you want to play with the 3D visualizations, Ascape, or Repast.)

AMF Models

There are a number of models developed with AMF that can automatically generate example models to run in Escape. There are two ways to run the example models:

Setup Escape Projects

Creating a New Escape Project

The best option is to simply create a new Escape project and drag the models into it! We're working on a simple cheat sheet for this, but until then, just follow these simple steps:

  1. If you're not already there, open the Agent Modeling Perspective. Select Window > Open Perspective > Other.. and then Agent Modeling. (Or you can choose Window > Reset Perspective and the Agent Modeling perspective should appear in the Open Perspective list itself.)
  2. Next, let's create the project where we'll place our model. Select File > New > Escape AMF Project. Give it a name like "escape.tutorial", then click Finish.
  3. Finally grab the Epidemic.metaabm model from here and drag it into the project.
  1. Use the cheat sheet that walks you through creating a new Escape project.
Using an Pre-Built Example Project

If you get really stuck somewhere, you can also get ready made projects from CVS. See this page for information on CVS setup. The project for Escape example models are located at:

org.eclipse.amp/org.eclipse.amp.amf/examples/org.eclipse.amp.amf.examples.escape

Run the Model

Right-click on the model, and select "Execute"! You should see something like this:

EpidemicModelRunning.png

We're working on more end-user documentaiton, but hopefully you'll find model control pretty self-explanatory. The toolbar buttons allow you to control model execution.

EpidemicModelControls.png

From right to left, you can start, restart, pause, step, stop and close a model. You can even run multiple models and control them independently. You can also move views around, close them and so on as with any other Eclipse views. Here we're running two separate models for comparison.

EpidemicModelComparison.png

If you want to find out more about an agent, show the properties view, and click on agent.

EpidemicModelAgentProperties.png

You can experiment with different parameters (settings) for models by then clicking in the gray area away within the view.

EpidemicModelProperties.png

There are a number of other things to play around with, such as zooming the agent view or selecting other chart series to display using the Chart Customizer, so just explore. You can always close an active model by clicking on the close toolbar button. Or if you can't access the models controls for some reason, you can open the progress view and close projects form there.

Next Steps

Other models are located at: (to do)

To understand the capabilities of AMF, you might also want to try out running the same models automatically generated for Ascape or Repast.

org.eclipse.amp/org.eclipse.amp.amf/examples/org.eclipse.amp.amf.examples.ascape
org.eclipse.amp/org.eclipse.amp.amf/examples/org.eclipse.amp.amf.examples.repast

Back to the top