Subject: | |
From: | |
Reply To: | |
Date: | Thu, 10 Feb 2011 08:47:00 -0500 |
Content-Type: | TEXT/PLAIN |
Parts/Attachments: |
|
|
Hi
The traffic simulation was built ecj-style: there are a bunch of
interfaces, and actual implementations for each component are put together
at run time by reading a textual specification (a bunch of .params files)
(see http://cs.gmu.edu/~eclab/projects/mason/extensions/webtutorial1/ for
a tutorial on params files and parameterizing your sim)
So look through the .params files in the traffic jar. Some params files
include other files (see "parent"), and not all .params files are enough
by themselves. Try grid/gridtest.params, grid/alternatinggrid.params,
grid/torus/*.params
Also, try ....traffic.grid.GridCityTrafficSimWithUI.java
Gabriel
On Thu, 10 Feb 2011, MASON-INTEREST-L automatic digest system wrote:
> Date: Wed, 9 Feb 2011 09:28:01 -0500
> From: "Yang, Ming" <[log in to unmask]>
> Subject: Re: Compile errors in the Urban Traffic Simulator inside Mason
>
> Thanks, Gabriel and Sean!
> I have used option 2 (plus changing the clone() return type in
> TallyInABag to match Tally's) and made it compiled without errors. When
> I run it, however it seemed to ask for a parameter file. The message in
> the console is:
>
> ------------------------------------------------------------------------
> --------------
> Exception in thread "main" java.lang.RuntimeException: No parameter file
> was specified.
> at sim.app.traffic.TrafficSim.main(TrafficSim.java:680)
> ------------------------------------------------------------------------
> ----------------------
>
> Thanks again.
> Ming
|
|
|