|
From: <fo...@ma...> - 2007-07-18 02:56:47
|
Hi,
Thank for your useful development tool for ABM.
I have some problem with 3D grid representation. My code is following
------------------
xdim = 30;
ydim = 20;
zdim = 10;
GridFactoryFinder.createGridFactory(new HashMap()).createGrid("Grid", context,
GridBuilderParameters.singleOccupancyNDTorus(new RandomGridAdder<LifeModelAgent>(), xdim, ydim, zdim));
for (int i = 0; i < initialNumberAgents; i++) {
LifeModelAgent agent = new LifeModelAgent();
agent.setName("Agent-" + i);
context.add(agent);
}
return context;
----------------
Agents are depicted a 2d display correctly but 3d display is wrong. Agents lay in plane and some of them out of grid range (its display's coordinates not correspond with the agents coordinate description that I take interactively). Can you help me with it?
Yuodin Evgeniy,
graduate student, Omsk State Technical University, Russia
|