Sender: |
|
Date: |
Thu, 10 Feb 2011 09:50:57 -0500 |
MIME-version: |
1.0 (Apple Message framework v936) |
Reply-To: |
|
Content-type: |
text/plain; charset=US-ASCII; format=flowed; delsp=yes |
Subject: |
|
From: |
|
In-Reply-To: |
<Pine.GSO.4.52.1102100834140.27867@imaps> |
Content-transfer-encoding: |
7bit |
Parts/Attachments: |
|
|
Early ECJ-style parameter files don't play well with jar files. I
know: I wrote them in 1998. :-) It might be best if you un-jared the
files. But we've made recent modifiations to the parameter database
in ECJ which enables embedding in jar files in pretty nice ways.
Sean
On Feb 10, 2011, at 8:47 AM, Gabriel Catalin Balan wrote:
> 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
|
|
|