public abstract class Analyzer extends java.lang.Object implements SimulationObject, DirectlyUpdatable
Modifier and Type | Field and Description |
---|---|
private org.jfree.data.xy.XYSeriesCollection |
dataset
The collection of lines.
|
private double |
lastUpdate
The last update time.
|
protected Map |
map
The map.
|
private double |
secondsDelay
The seconds delay.
|
Constructor and Description |
---|
Analyzer()
Creates a parameter tracker without simulator access and 5 seconds delay.
|
Analyzer(float secondsDelay)
Creates a parameter tracker.
|
Modifier and Type | Method and Description |
---|---|
float[][][] |
exportData()
exports the data of the graph.
|
org.jfree.data.xy.XYSeriesCollection |
getDataset()
Gets the data set.
|
abstract java.lang.String[] |
getLineNames()
Gets the names of the lines.
|
Map |
getMap()
Gets the simulator.
|
abstract java.lang.String |
getTitle()
The title of the value update.
|
abstract double[] |
getValues()
Gets the current values for a graph.
|
abstract java.lang.String |
getYAxis()
The title of the y axis.
|
private void |
init()
Initialize the parameters.
|
void |
setMap(Map map)
Sets the map.
|
void |
update(int timeStep)
Update the graph time with a specified step.
|
private void |
updateValues()
Updates the values.
|
private org.jfree.data.xy.XYSeriesCollection dataset
private double lastUpdate
private double secondsDelay
protected Map map
public Analyzer()
public Analyzer(float secondsDelay)
secondsDelay
- The seconds delay.public float[][][] exportData()
public org.jfree.data.xy.XYSeriesCollection getDataset()
public abstract java.lang.String[] getLineNames()
public Map getMap()
public abstract java.lang.String getTitle()
public abstract double[] getValues()
public abstract java.lang.String getYAxis()
private void init()
public void setMap(Map map)
map
- The map.public void update(int timeStep)
private void updateValues()