What is model.xml (when using development environment

View: New views
3 Messages — Rating Filter:   Alert me  

What is model.xml (when using development environment

by farheart :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello, according to http://repast.sourceforge.net/docs/development.html, I successfully installed the development environment components and checked out the Repast Simphony source code from the Sourceforge SVN repository.  All projects (50) were compiled smoothly.

Then I imported my project (created using Repast Simphony-1.2.0 which was installed before)

When I try to run my simulation model, the Repast Simphony windows appear, but with an error log :

-----------------------------------------------------

repast.simphony.scenario.ScenarioLoadException: XXXXX\workspace\abcd\abcd.rs\model.xml (The system cannot find the file specified)

...

Caused by: java.io.FileNotFoundException: XXXXX\workspace\abcd\abcd.rs\model.xml (The system cannot find the file specified)

...

-----------------------------------------------------

I thought here the model.xml may refer to model.score, so I changed the file name from model.score to model.xml (since it does be a xml file), but new error appears......

Could someone give me some explanation of what happens, what is the model.xml? and where can I find it/ how can I generate it. (Since I hope that I can continue my simulation work under the development environment instead of a installed RepastS environment using plugins, in order to better learning and understanding the Repast system mechanism)

Thanks,


Re: What is model.xml (when using development environment

by farheart :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Today find that the examples:  SugarScape  &  SimpleHappy (in repast.simphony.demos)
can be run without any problem, since there are model.xml & context.xml existing under the corresponding *.rs directory.

I will start to look at these two demos for more details.

Any suggestions or recommendation are still very welcome!




farheart wrote:
Hello, according to http://repast.sourceforge.net/docs/development.html, I successfully installed the development environment components and checked out the Repast Simphony source code from the Sourceforge SVN repository.  All projects (50) were compiled smoothly.

Then I imported my project (created using Repast Simphony-1.2.0 which was installed before)

When I try to run my simulation model, the Repast Simphony windows appear, but with an error log :

-----------------------------------------------------

repast.simphony.scenario.ScenarioLoadException: XXXXX\workspace\abcd\abcd.rs\model.xml (The system cannot find the file specified)

...

Caused by: java.io.FileNotFoundException: XXXXX\workspace\abcd\abcd.rs\model.xml (The system cannot find the file specified)

...

-----------------------------------------------------

I thought here the model.xml may refer to model.score, so I changed the file name from model.score to model.xml (since it does be a xml file), but new error appears......

Could someone give me some explanation of what happens, what is the model.xml? and where can I find it/ how can I generate it. (Since I hope that I can continue my simulation work under the development environment instead of a installed RepastS environment using plugins, in order to better learning and understanding the Repast system mechanism)

Thanks,

Re: What is model.xml (when using development environment

by farheart :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

En, After studying the SugarScape, SimpleHappy  & Schellling for quite a while.
I imitate myself's       model.xml & context.xml .

Then modify the launcher file:

at Main Tab:
1. change the Project to: repast.simphony.runtime
2. Main class: repast.simphony.runtime.RepastMain

at Arguments Tab:
"${workspace_loc:****.abcd}/abcd.rs"  (point to my *.rs file)

at Classpath Tab:
1. change User Entries to : repast.simphony.runtime (default classpath)
    by clicking "Restore Default Entries"

Keep the reminder as is.

Now the project can be loaded successfully, and seems can be run.
However, I can create the GIS view, although I can
1. Add Display by right click Displays, then the Display Configuration window pop-up normally;
2. the Projections and Value Layers list the Geography projection correctly - AGeography;
3. select AGeography and set it as the target
4. push Next button...

Display Error: A GIS display must contain a single Geography.

It is strange since AGeography does exist
in model.score as

...
<projections xsi:type="score:SGeography" label="AGeography" ID="aGeography" pluralLabel="AGeographies"/>
...

and

in context.xml as

...
        <context id="AContext">
                <projection id="AGeography" type="geography" />
        </context>
...


I am reading the source code now, it seems that AGeography is not treated as
an instanceof SGeography  (repast.simphony.visualization.gui.GeneralStep    672)
but the solid reason is still under discovery....









Today find that the examples:  SugarScape  &  SimpleHappy (in repast.simphony.demos)
can be run without any problem, since there are model.xml & context.xml existing under the corresponding *.rs directory.

I will start to look at these two demos for more details.

Any suggestions or recommendation are still very welcome!




farheart wrote:
Hello, according to http://repast.sourceforge.net/docs/development.html, I successfully installed the development environment components and checked out the Repast Simphony source code from the Sourceforge SVN repository.  All projects (50) were compiled smoothly.

Then I imported my project (created using Repast Simphony-1.2.0 which was installed before)

When I try to run my simulation model, the Repast Simphony windows appear, but with an error log :

-----------------------------------------------------

repast.simphony.scenario.ScenarioLoadException: XXXXX\workspace\abcd\abcd.rs\model.xml (The system cannot find the file specified)

...

Caused by: java.io.FileNotFoundException: XXXXX\workspace\abcd\abcd.rs\model.xml (The system cannot find the file specified)

...

-----------------------------------------------------

I thought here the model.xml may refer to model.score, so I changed the file name from model.score to model.xml (since it does be a xml file), but new error appears......

Could someone give me some explanation of what happens, what is the model.xml? and where can I find it/ how can I generate it. (Since I hope that I can continue my simulation work under the development environment instead of a installed RepastS environment using plugins, in order to better learning and understanding the Repast system mechanism)

Thanks,