Class SimulationRecorder.Frame

java.lang.Object
com.eco.bio7.spatial.SimulationRecorder.Frame
Enclosing class:
SimulationRecorder

public static final class SimulationRecorder.Frame extends Object
The data of a step: the grid, the agents, the points, the lines, the surface and the chart values.
  • Method Details

    • grid

      public SimulationRecorder.Frame grid(int width, int height, int[] states)
      A grid of integer states (0 - 255, the colors of the palette), index y * width + x.
    • grid

      public SimulationRecorder.Frame grid(int width, int height, byte[] states)
      A grid of integer states (0 - 255) as bytes, index y * width + x.
    • grid

      public SimulationRecorder.Frame grid(int[][] cells)
      A grid of integer states as a 2D array cells[x][y] (e.g., the grid of a Bio7 model).
    • grid

      public SimulationRecorder.Frame grid(int width, int height, double[] values)
      A grid of continuous values (the colors of the color map), index y * width + x.
    • grid

      public SimulationRecorder.Frame grid(double[][] values)
      A grid of continuous values as a 2D array values[x][y].
    • agents

      public SimulationRecorder.Frame agents(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

      public SimulationRecorder.Frame agents(double[] x, double[] y, int[] colors)
      Agents on the grid with a color (0xRRGGBB) for each agent.
    • points

      public SimulationRecorder.Frame points(double[] x, double[] y, double[] z)
      Points (spheres) of the 3D view (in the coordinates of the box).
    • points

      public SimulationRecorder.Frame points(double[] x, double[] y, double[] z, int[] colors)
      Points (spheres) with a color (0xRRGGBB) for each point.
    • lines

      public SimulationRecorder.Frame lines(double[] xyz)
      Lines of the 3D view: x0, y0, z0, x1, y1, z1 for each line (in the coordinates of the box).
    • lines

      public SimulationRecorder.Frame lines(double[] xyz, int[] colors)
      Lines with a color (0xRRGGBB) for each line.
    • surface

      public SimulationRecorder.Frame surface(double[][] z)
      A surface of the grid z[i][j] (SURFACE_3D, the height and the colors of the range).
    • chart

      public SimulationRecorder.Frame chart(String name, double value)
      A value of a series of the chart.