Class SimulationRecorder.Frame
java.lang.Object
com.eco.bio7.spatial.SimulationRecorder.Frame
- Enclosing class:
SimulationRecorder
The data of a step: the grid, the agents, the points, the lines, the surface and the chart values.
-
Method Summary
Modifier and TypeMethodDescriptionagents(double[] x, double[] y) Agents on the grid at the positions x, y (in cells, e.g., 10.5 = the center of the cell 10).agents(double[] x, double[] y, int[] colors) Agents on the grid with a color (0xRRGGBB) for each agent.A value of a series of the chart.grid(double[][] values) A grid of continuous values as a 2D array values[x][y].grid(int[][] cells) A grid of integer states as a 2D array cells[x][y] (e.g., the grid of a Bio7 model).grid(int width, int height, byte[] states) A grid of integer states (0 - 255) as bytes, index y * width + x.grid(int width, int height, double[] values) A grid of continuous values (the colors of the color map), index y * width + x.grid(int width, int height, int[] states) A grid of integer states (0 - 255, the colors of the palette), index y * width + x.lines(double[] xyz) Lines of the 3D view: x0, y0, z0, x1, y1, z1 for each line (in the coordinates of the box).lines(double[] xyz, int[] colors) Lines with a color (0xRRGGBB) for each line.points(double[] x, double[] y, double[] z) Points (spheres) of the 3D view (in the coordinates of the box).points(double[] x, double[] y, double[] z, int[] colors) Points (spheres) with a color (0xRRGGBB) for each point.surface(double[][] z) A surface of the grid z[i][j] (SURFACE_3D, the height and the colors of the range).
-
Method Details
-
grid
A grid of integer states (0 - 255, the colors of the palette), index y * width + x. -
grid
A grid of integer states (0 - 255) as bytes, index y * width + x. -
grid
A grid of integer states as a 2D array cells[x][y] (e.g., the grid of a Bio7 model). -
grid
A grid of continuous values (the colors of the color map), index y * width + x. -
grid
A grid of continuous values as a 2D array values[x][y]. -
agents
Agents on the grid at the positions x, y (in cells, e.g., 10.5 = the center of the cell 10). -
agents
Agents on the grid with a color (0xRRGGBB) for each agent. -
points
Points (spheres) of the 3D view (in the coordinates of the box). -
points
Points (spheres) with a color (0xRRGGBB) for each point. -
lines
Lines of the 3D view: x0, y0, z0, x1, y1, z1 for each line (in the coordinates of the box). -
lines
Lines with a color (0xRRGGBB) for each line. -
surface
A surface of the grid z[i][j] (SURFACE_3D, the height and the colors of the range). -
chart
A value of a series of the chart.
-