Class GeoAgent

java.lang.Object
com.eco.bio7.simulation.GeoAgent

public class GeoAgent extends Object
An agent of a GeoAgentModel: a geographic position (longitude and latitude in degrees, WGS84), a color (e.g., "#d62728", null: the color of the model), a size (the radius of the point in pixels, 0: the size of the model), an optional label, an altitude and a heading (for the 3D shapes on the WorldWind globe). Subclasses add their own fields and methods.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    double
    The altitude above the ground in meters (for the 3D shapes on the globe).
    The animation of the model (its name or number, null: the first animation, "none": still).
    The color (e.g., "#d62728"; null: the color of the model, agentColor).
    double
    The heading in degrees (0 north, 90 east; NaN: the direction of the last movement).
    An image (loaded with loadImage) instead of the point (its size: size in pixels; null: none).
    A text beside the agent (null: none).
    double
    The position: longitude and latitude in degrees (WGS84).
    double
    The position: longitude and latitude in degrees (WGS84).
    A 3D model (glTF, loaded with loadModel) on the globe (its height: agentSizeMeters; null: none).
    double
    The radius of the point in pixels (0: the size of the model, agentSize).
  • Constructor Summary

    Constructors
    Constructor
    Description
    An agent at longitude 0, latitude 0.
    GeoAgent(double lon, double lat)
    An agent at the position (degrees).
  • Method Summary

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • lon

      public double lon
      The position: longitude and latitude in degrees (WGS84).
    • lat

      public double lat
      The position: longitude and latitude in degrees (WGS84).
    • color

      public String color
      The color (e.g., "#d62728"; null: the color of the model, agentColor).
    • size

      public double size
      The radius of the point in pixels (0: the size of the model, agentSize).
    • label

      public String label
      A text beside the agent (null: none).
    • altitude

      public double altitude
      The altitude above the ground in meters (for the 3D shapes on the globe).
    • heading

      public double heading
      The heading in degrees (0 north, 90 east; NaN: the direction of the last movement).
    • image

      public String image
      An image (loaded with loadImage) instead of the point (its size: size in pixels; null: none).
    • model

      public String model
      A 3D model (glTF, loaded with loadModel) on the globe (its height: agentSizeMeters; null: none).
    • animation

      public String animation
      The animation of the model (its name or number, null: the first animation, "none": still).
  • Constructor Details

    • GeoAgent

      public GeoAgent()
      An agent at longitude 0, latitude 0.
    • GeoAgent

      public GeoAgent(double lon, double lat)
      An agent at the position (degrees).