public class Temperature_Profile
extends java.lang.Object
The toXySeries(Sensor,boolean)
method may be used to create a
JFreeChart XYSeries
for either the FPA temperatures or the FPEA
temperatures. The series is suitable for plotting in a JFreeChart
.
Modifier and Type | Class and Description |
---|---|
static class |
Temperature_Profile.Data
A data sample from the HiTemp temperature profile.
|
static class |
Temperature_Profile.Sensor
An enumeration of the sensor points in the temperature profile.
|
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_INITIAL_CAPACITY
The default initial capacity of the regular samples list.
|
static java.lang.String |
ID
Class identification name with source code version and date.
|
Constructor and Description |
---|
Temperature_Profile()
Creates a temperature profile with a default initial sample capacity.
|
Temperature_Profile(int initialCapacity)
Creates a new temperature profile with a specified initial sample capacity.
|
Modifier and Type | Method and Description |
---|---|
void |
addPeak(java.util.Date date,
double fpaTemperature,
double fpeaTemperature) |
void |
addPeak(java.util.Date date,
Temperatures temperatures) |
void |
addPeak(long millis,
double fpaTemperature,
double fpeaTemperature) |
void |
addPeak(long millis,
Temperatures temperatures) |
void |
addPeak(Temperature_Profile.Data data) |
void |
addSample(java.util.Date date,
double fpaTemperature,
double fpeaTemperature) |
void |
addSample(java.util.Date date,
Temperatures temperatures) |
void |
addSample(long millis,
double fpaTemperature,
double fpeaTemperature) |
void |
addSample(long millis,
Temperatures temperatures) |
void |
addSample(Temperature_Profile.Data data) |
void |
exportToFile(java.io.File file,
Thermal_Model thermalModel,
java.lang.Double initialFpaTemperature,
java.lang.Double initialFpeaTemperature) |
java.util.List<Temperature_Profile.Data> |
getAllData()
Gets the union of sampled and peak data from the profile.
|
java.util.List<Temperature_Profile.Data> |
getFpaPeaks(double threshold)
Gets every peak temperature point with an FPA temperature above a given
threshold.
|
java.util.List<Temperature_Profile.Data> |
getFpeaPeaks(double threshold)
Gets every peak temperature point with an FPEA temperature above a given
threshold.
|
java.util.List<Temperature_Profile.Data> |
getPeaks()
Gets every peak temperature point in the profile.
|
java.util.List<Temperature_Profile.Data> |
getSamples()
Gets the regularly sampled data.
|
double |
getStartTime()
Gets the start time of this data set in seconds.
|
double |
getStopTime()
Gets the stop time of this data set in seconds.
|
org.jfree.data.xy.XYSeries |
toXySeries(Temperature_Profile.Sensor sensor,
boolean useMillis)
Creates an XY data series from this temperature profile for one of its
measured sensors.
|
public static final java.lang.String ID
public static final int DEFAULT_INITIAL_CAPACITY
public Temperature_Profile(int initialCapacity)
initialCapacity
- the initial sample capacity.public Temperature_Profile()
DEFAULT_INITIAL_CAPACITY
public void addSample(Temperature_Profile.Data data)
public void addSample(java.util.Date date, Temperatures temperatures)
public void addSample(java.util.Date date, double fpaTemperature, double fpeaTemperature)
public void addSample(long millis, Temperatures temperatures)
public void addSample(long millis, double fpaTemperature, double fpeaTemperature)
public java.util.List<Temperature_Profile.Data> getSamples()
public void addPeak(Temperature_Profile.Data data)
public void addPeak(java.util.Date date, Temperatures temperatures)
public void addPeak(java.util.Date date, double fpaTemperature, double fpeaTemperature)
public void addPeak(long millis, Temperatures temperatures)
public void addPeak(long millis, double fpaTemperature, double fpeaTemperature)
public java.util.List<Temperature_Profile.Data> getPeaks()
public java.util.List<Temperature_Profile.Data> getFpaPeaks(double threshold)
threshold
- the threshold temperature.public java.util.List<Temperature_Profile.Data> getFpeaPeaks(double threshold)
threshold
- the threshold temperature.public java.util.List<Temperature_Profile.Data> getAllData()
public double getStartTime()
public double getStopTime()
public org.jfree.data.xy.XYSeries toXySeries(Temperature_Profile.Sensor sensor, boolean useMillis)
JFreeChart
.
The x-axis is time. If useMillis is true, the time is converted from seconds to milliseconds, which is useful for a JFreeChart date axis; otherwise the time is left in seconds.
The y-axis is the temperature of the sensor in question, in degrees Celsius.
sensor
- the sensor from which to derive the data set.useMillis
- if true, the time is converted to milliseconds;
otherwise it is left as seconds.public void exportToFile(java.io.File file, Thermal_Model thermalModel, java.lang.Double initialFpaTemperature, java.lang.Double initialFpeaTemperature) throws java.io.FileNotFoundException
file
- the filename; if null, data are written to
System.out
.java.io.FileNotFoundException
Copyright \ (C) Arizona Board of Regents on behalf of the \ Planetary Image Research Laboratory, Lunar and \ Planetary Laboratory at the University of Arizona