swarm-support
[Top][All Lists]
Advanced

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

JHeatbugs won't compile under Swarm 2.2pr4 (W32)


From: Christopher J. Mackie
Subject: JHeatbugs won't compile under Swarm 2.2pr4 (W32)
Date: Mon, 14 Jan 2002 09:17:07 -0500

I downloaded Swarm 2.2 prerelease 4 over the weekend (including the
separate, updated Swarm.jar and javaswarm.dll), and tried to compile
JHeatbugs and JMousetrap on Win2000.  The compile failed with the following
four errors, all of them 'undefined constructor':

line 298 (HeatbugModelSwarm): swarm.defobj.FArgumentsImpl(HeatbugModelSwarm,
swarm.Selector, boolean)
line 43 (MousetrapModelSwarm):
swarm.random.UniformDoubleDistImpl(swarm.defobj.Zone, java.lang.Object,
double, double)
line 46 (MousetrapModelSwarm):
swarm.random.UniformIntegerDistImpl(swarm.defobj.Zone, java.lang.Object,
int, int)
line 49 (MousetrapModelSwarm):
swarm.random.UniformUnsignedDistImpl(swarm.defobj.Zone, java.lang.Object,
int, int)

All other targets compiled fine--just the two ModelSwarm objects failed.

In the HeatbugModelSwarm, it looks like the problem is the final boolean
argument, which doesn't exist in the FArgumentsImpl constructors in
swarm.defobj.

The JMousetrap problem is trickier: the constructors are present, but
they're expecting a SplitRandomGenerator or SimpleRandomGenerator object
instead of Java.lang.Object, and simply a 'Zone' rather than
swarm.defobj.Zone.  Since XxxxRandomGenerators must extend java.lang.Object,
it seems as though the problem must be with the 'Zone' declaration...yes?

Do I have an old version of JHeatbugs/JMousetrap (these are the versions
from 2.1.1), or is something else going on?

TIA,  --Chris


                  ==================================
   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]