swarm-support
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Java mousetrap


From: Paul Johnson
Subject: Re: Java mousetrap
Date: Sat, 07 Dec 2002 14:55:25 -0600
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.1) Gecko/20020918

Again it is a mismatch between the Swarm you have installed and the application. That jmousetrap is for swarm 2.1.1. There is a new jmousetrap in the testing directory, try that, see what it gives.

There may still be some trouble. I've heard from some java users that there is a wrinkle with distribution objects, but you should test and see.
pj

Li An wrote:
Thanks, Paul. It worked.

Then I tried to run java mousetrap (version 2.1). After issuing "make" at the prompt, I got the following:

address@hidden jmousetrap-2.1]$ make
/usr/bin/javacswarm Mousetrap.java MousetrapModelSwarm.java MousetrapObserverSwarm.java MousetrapStatistics.java MousetrapBatchSwarm.java StartMousetrap.java
Found 3 semantic errors compiling "Mousetrap.java":
                          <---------------------------
    42.     uniform0to1 = new  UniformDoubleDistImpl
    43.       (modelSwarm.getZone (), randGenerator, 0.0, 1.0);
        ----------------------------------------------------->
*** Error: No match was found for constructor "UniformDoubleDistImpl(swarm.defobj.Zone, java.lang.Object, double, double)".

                            <-------------------------------
    45.     uniformRadius = new UniformIntegerDistImpl
    46.       (modelSwarm.getZone (), randGenerator, -maxD, maxD);
        -------------------------------------------------------->
*** Error: No match was found for constructor "UniformIntegerDistImpl(swarm.defobj.Zone, java.lang.Object, int, int)".

                               <----------------------------
    48.     uniformTrigTime =  new UniformUnsignedDistImpl
                               . . .
    50.        modelSwarm.getMaxTriggerTime ());
        -------------------------------------->
*** Error: No match was found for constructor "UniformUnsignedDistImpl(swarm.defobj.Zone, java.lang.Object, int, int)".
make: *** [all] Error 1

What is wrong? Thanks.

Li

Li An
Ph.D. candidate, Systems Modeling Lab


--
Paul E. Johnson                       email: address@hidden
Dept. of Political Science            http://lark.cc.ku.edu/~pauljohn
University of Kansas                  Office: (785) 864-9086
Lawrence, Kansas 66045                FAX: (785) 864-5700


                 ==================================
  Swarm-Support is for discussion of the technical details of the day
  to day usage of Swarm.  For list administration needs (esp.
  [un]subscribing), please send a message to <address@hidden>
  with "help" in the body of the message.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]