|
Re: integrating real time data with eclipse abm platform [message #733553 is a reply to message #733552] |
Tue, 04 October 2011 23:10   |
Eclipse User |
|
|
|
samitha wrote on Tue, 04 October 2011 23:05Hi,
Thank You for the prompt reply. Actually my concern is this. For each agent, if I have a data base of real movements and if I have already converted them into movements in (x,y) space with appropriate time stamps, could I include that to describe the movements of the agents rather than applying a random movement with out involving a GIS layer. For example agent K start its journey from point (x1,y1) at time t = t1 and it comes to point (x2,y2) at time t = t5 and so on.
Oh yeah, that would totally work. You'd probably want some custom java in there to accomplish but it shouldn't be too difficult. Check out the Ascape API docs, but basically you can just do:
Method:
//some routine to get x,y given period t..
agent.moveTo(new Coordinate2DDiscrete(x, y));
|
|
|
|
|
|
Re: integrating real time data with eclipse abm platform [message #734196 is a reply to message #734194] |
Thu, 06 October 2011 21:39  |
Eclipse User |
|
|
|
samitha wrote on Thu, 06 October 2011 21:32Hi,
I'm using a escape model. Little bit confused with what you referred as a Modeling Project as I started working on the eclipse abm platform exactly week ago.
You can do a straight Escape project or and Escape Modeling project. If you do the latter you could have the issues you describe below. See the description in the action references below for one good way of doing that. Basically you just delegate the method out to a static class somewhere so you don't have to hassle with code generation, protected regions etc...
http://www.eclipse.org/amp/documentation/contents/Modeler_Guide.html#Reference_2
Note that you should probably just create a copy of the Epidemic model and make sure you change the package name (in the root context) so that the two models won't both be generated to the same place.
Quote:Now those two methods are in a class called "Individual". Should I make them empty methods and override them in a sub class of Individual Class?
See above for a better way of doing this.
hth!
|
|
|
Powered by
FUDForum. Page generated in 0.05013 seconds