Re: Urbansim integration

From: Alan Borning <borning_at_cs.washington.edu>
Date: Mon, 23 Jul 2007 21:31:12 -0700

Christos,

We took the UrbanSim 3 download off of the website because it is
obsolete and superseded by UrbanSim 4. If you really need it let us
know and we can dig it up ... but from what you write, I would
suggest using the latest version instead.

It shouldn't be that hard to link your Java-based application with
UrbanSim -- I would do this by invoking the operating system from
your application, and letting the operating system call UrbanSim. We
do this regularly in the current code, actually - look for example at
the last line of eugene.tools.run_simulation_on_baseyear_cache --
this forks off another OS process to run the simulation. If you need
to pass lots of data back and forth, you can do this via the file
system or database.

Not sure how well UrbanSim would work with Jython -- the Python code
itself should be fine, but UrbanSim also uses a set of external
packages, in particular numpy, which I'm guessing don't play well
with Jython.

    Alan

On Jul 23, 2007, at 7:12 AM, Christos Tsarouchis wrote:

> Hello all,
>
> I am very new to this project, and I have a couple of generic
> questions
> to ask:
>
> I have a Java-based application and I am thinking of integrating it
> with
> Urbansim.
> My main goal is via my Java application to control (specify) in a
> dynamic fashion the datasets and the models that are loaded in an
> Urbansim simulation.
> Another important requirement is that feedback should be send to the
> Java application as the simulation is running. Are both of these
> requirements feasible with Urbansim?
>
> I am inclined to download the old Java version of Urbansim as this
> would
> presumably make the integration easier. However, I 'm not able to find
> it and I get a 404 error.
> Also, I understand that Jython is an option for me to integrate
> Java and
> Urbansim 4, however I am not sure that Jython can interpret Urbansim 4
> (I may be wrong, I only tested briefly).
>
> What are your views on these?
>
> Thanks a lot
>
> Christos
> _______________________________________________
> Users mailing list
> Users_at_urbansim.org
> http://www.urbansim.org/mailman/listinfo/users
Received on Mon Jul 23 2007 - 21:31:18 PDT

This archive was generated by hypermail 2.2.0 : Mon Jul 23 2007 - 21:31:20 PDT