Class GeoAgent
java.lang.Object
com.eco.bio7.simulation.GeoAgent
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
FieldsModifier and TypeFieldDescriptiondoubleThe 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).doubleThe 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).doubleThe position: longitude and latitude in degrees (WGS84).doubleThe position: longitude and latitude in degrees (WGS84).A 3D model (glTF, loaded with loadModel) on the globe (its height: agentSizeMeters; null: none).doubleThe radius of the point in pixels (0: the size of the model, agentSize). -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
lon
public double lonThe position: longitude and latitude in degrees (WGS84). -
lat
public double latThe position: longitude and latitude in degrees (WGS84). -
color
The color (e.g., "#d62728"; null: the color of the model, agentColor). -
size
public double sizeThe radius of the point in pixels (0: the size of the model, agentSize). -
label
A text beside the agent (null: none). -
altitude
public double altitudeThe altitude above the ground in meters (for the 3D shapes on the globe). -
heading
public double headingThe heading in degrees (0 north, 90 east; NaN: the direction of the last movement). -
image
An image (loaded with loadImage) instead of the point (its size: size in pixels; null: none). -
model
A 3D model (glTF, loaded with loadModel) on the globe (its height: agentSizeMeters; null: none). -
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).
-