HiRISE

HiRISE.HiPlan.HiTemp
Class HiTemp

java.lang.Object
  extended by HiRISE.HiPlan.HiTemp.HiTemp
All Implemented Interfaces:
ClipboardOwner, ActionListener, EventListener, ChangeListener, ListSelectionListener, TableModelListener

public class HiTemp
extends Object
implements ActionListener, ChangeListener, ClipboardOwner, ListSelectionListener, TableModelListener

An application for displaying the predicted thermal state of the HiRISE focal plane assembly and focal plane electronics assembly.

Version:
1.146
Author:
Christian Schaller - UA/PIRL
See Also:
"Payload Target File and Integrated Payload Target File Software Interface Specification (JPL MRO SEQ032)"

Field Summary
static String APPLICATION_GROUP
          The application-specific parameter group name for HiTemp.
static String AUTOSCALE_DATE_AXIS
           
static String AUTOSCALE_TEMPERATURE_AXIS
           
static boolean DEFAULT_AUTOSCALE_DATE_AXIS
           
static boolean DEFAULT_AUTOSCALE_TEMPERATURE_AXIS
           
static double DEFAULT_MAXIMUM_TEMPERATURE
          The default maximum temperature threshold.
static double DEFAULT_MINIMUM_IMAGING_TEMPERATURE
          The default minimum imaging temperature.
static double DEFAULT_MODEL_DURATION
          The default model duration, 604,800 seconds, or 1 week.
static double DEFAULT_MODEL_TIME_STEP_SIZE
          The default model time step size.
static double DEFAULT_WARNING_TEMPERATURE
          The default warning temperature threshold.
static int FAILURE
          Exit status for an unsuccessful operation.
static String FPA_SET_POINT_TEMPERATURE
          The configuration parameter holding the FPA set point temperature.
static String FPEA_SET_POINT_TEMPERATURE
          The configuration parameter holding the FPEA set point temperature.
static String ID
          Class identification name with source code version and date.
static String IEA_TEMPERATURE
          The configuration parameter holding the IEA temperature.
static String INITIAL_FPA_TEMPERATURE
          The configuration parameter holding the initial FPA temperature.
static String INITIAL_FPEA_TEMPERATURE
          The configuration parameter holding the initial FPEA temperature.
static String MAXIMUM_OUTPUT_SAMPLES
          The configuration parameter holding the maximum number of plot output samples.
static String MAXIMUM_TEMPERATURE
          The configuration parameter holding the maximum allowable temperature.
static String MINIMUM_IMAGING_TEMPERATURE
          The configuration paramter holding the minimum imaging temperature.
static String MINIMUM_SAMPLE_SIZE
          The configuration parameter holding the minimum sample size in time steps per sample.
static String MODEL_DURATION
          The configuration parameter holding the model duration in seconds.
static String MODEL_TIME_STEP_SIZE
          The configuration parameter holding the model time step size in seconds.
static String OPTICAL_BENCH_TEMPERATURE
          The configuration parameter holding the optical bench temperature.
static int SUCCESS
          Exit status for a successful operation.
static String WARNING_TEMPERATURE
          The configuration parameter holding the warning temperature.
 
Method Summary
 void actionPerformed(ActionEvent e)
          Receives action events.
 Alerts getAlerts()
          Gets the HiTemp alert manager.
 JFrame getFrame()
          Gets the HiTemp frame.
 edu.asu.jmars.layer.obs.mro.MttLayer getMttLayer()
          Gets the HiTemp MTT layer.
 void handleAbout()
          Handles a request to display the application About dialog.
 boolean handleMacQuit()
          Handles a request to quit as generated by the Mac-supplied Quit menu item.
 void lostOwnership(Clipboard clipboard, Transferable contents)
          Notifies HiTemp that is no longer the clipboard owner.
static void main(String[] args)
          Invokes an instance of the HiTemp application in its own thread.
 void stateChanged(ChangeEvent e)
           
 void tableChanged(TableModelEvent e)
          Receives table model events.
 void valueChanged(ListSelectionEvent e)
          Receives list selection events.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ID

public static final String ID
Class identification name with source code version and date.

See Also:
Constant Field Values

APPLICATION_GROUP

public static final String APPLICATION_GROUP
The application-specific parameter group name for HiTemp.

See Also:
Constant Field Values

FPA_SET_POINT_TEMPERATURE

public static final String FPA_SET_POINT_TEMPERATURE
The configuration parameter holding the FPA set point temperature. Default value: Thermal_Model.DEFAULT_FPA_SET_POINT_TEMPERATURE.

See Also:
Constant Field Values

FPEA_SET_POINT_TEMPERATURE

public static final String FPEA_SET_POINT_TEMPERATURE
The configuration parameter holding the FPEA set point temperature. Default value: Thermal_Model.DEFAULT_FPEA_SET_POINT_TEMPERATURE.

See Also:
Constant Field Values

OPTICAL_BENCH_TEMPERATURE

public static final String OPTICAL_BENCH_TEMPERATURE
The configuration parameter holding the optical bench temperature. Default value: Thermal_Model.DEFAULT_OPTICAL_BENCH_TEMPERATURE.

See Also:
Constant Field Values

IEA_TEMPERATURE

public static final String IEA_TEMPERATURE
The configuration parameter holding the IEA temperature. Default value: Thermal_Model.DEFAULT_IEA_TEMPERATURE.

See Also:
Constant Field Values

INITIAL_FPA_TEMPERATURE

public static final String INITIAL_FPA_TEMPERATURE
The configuration parameter holding the initial FPA temperature. Default value: Thermal_Model.DEFAULT_FPA_SET_POINT_TEMPERATURE.

See Also:
Constant Field Values

INITIAL_FPEA_TEMPERATURE

public static final String INITIAL_FPEA_TEMPERATURE
The configuration parameter holding the initial FPEA temperature. Default value: Thermal_Model.DEFAULT_FPEA_SET_POINT_TEMPERATURE.

See Also:
Constant Field Values

MODEL_DURATION

public static final String MODEL_DURATION
The configuration parameter holding the model duration in seconds. Default value: DEFAULT_MODEL_DURATION.

See Also:
Constant Field Values

DEFAULT_MODEL_DURATION

public static final double DEFAULT_MODEL_DURATION
The default model duration, 604,800 seconds, or 1 week.

See Also:
Constant Field Values

MODEL_TIME_STEP_SIZE

public static final String MODEL_TIME_STEP_SIZE
The configuration parameter holding the model time step size in seconds. Default value: DEFAULT_MODEL_TIME_STEP_SIZE.

See Also:
Constant Field Values

DEFAULT_MODEL_TIME_STEP_SIZE

public static final double DEFAULT_MODEL_TIME_STEP_SIZE
The default model time step size. One second is a reasonable value: it provides decent resolution into the model while not letting the model be overwhelmingly computationally intensive.

See Also:
Constant Field Values

MAXIMUM_OUTPUT_SAMPLES

public static final String MAXIMUM_OUTPUT_SAMPLES
The configuration parameter holding the maximum number of plot output samples. Default value: Thermal_Model.ModelParameters.DEFAULT_MAXIMUM_OUTPUT_SAMPLES.

See Also:
Constant Field Values

MINIMUM_SAMPLE_SIZE

public static final String MINIMUM_SAMPLE_SIZE
The configuration parameter holding the minimum sample size in time steps per sample. Default value: Thermal_Model.ModelParameters.DEFAULT_MINIMUM_SAMPLE_SIZE.

See Also:
Constant Field Values

MAXIMUM_TEMPERATURE

public static final String MAXIMUM_TEMPERATURE
The configuration parameter holding the maximum allowable temperature. Default value: DEFAULT_MAXIMUM_TEMPERATURE.

See Also:
Constant Field Values

DEFAULT_MAXIMUM_TEMPERATURE

public static final double DEFAULT_MAXIMUM_TEMPERATURE
The default maximum temperature threshold. The FPA and FPEA temperatures should not exceed the temperature threshold. Value: 47.0.

See Also:
Constant Field Values

WARNING_TEMPERATURE

public static final String WARNING_TEMPERATURE
The configuration parameter holding the warning temperature. Default value: DEFAULT_WARNING_TEMPERATURE.

See Also:
Constant Field Values

DEFAULT_WARNING_TEMPERATURE

public static final double DEFAULT_WARNING_TEMPERATURE
The default warning temperature threshold. The FPA and FPEA temperatures should not exceed this temperature without care. Value: 42.0.

See Also:
Constant Field Values

MINIMUM_IMAGING_TEMPERATURE

public static final String MINIMUM_IMAGING_TEMPERATURE
The configuration paramter holding the minimum imaging temperature. Default value: DEFAULT_MINIMUM_IMAGING_TEMPERATURE.

See Also:
Constant Field Values

DEFAULT_MINIMUM_IMAGING_TEMPERATURE

public static final double DEFAULT_MINIMUM_IMAGING_TEMPERATURE
The default minimum imaging temperature. The FPA and FPEA temperatures should be above this prior to the start of an observation. Value: 34.0.

See Also:
Constant Field Values

AUTOSCALE_DATE_AXIS

public static final String AUTOSCALE_DATE_AXIS
See Also:
Constant Field Values

DEFAULT_AUTOSCALE_DATE_AXIS

public static final boolean DEFAULT_AUTOSCALE_DATE_AXIS
See Also:
Constant Field Values

AUTOSCALE_TEMPERATURE_AXIS

public static final String AUTOSCALE_TEMPERATURE_AXIS
See Also:
Constant Field Values

DEFAULT_AUTOSCALE_TEMPERATURE_AXIS

public static final boolean DEFAULT_AUTOSCALE_TEMPERATURE_AXIS
See Also:
Constant Field Values

SUCCESS

public static final int SUCCESS
Exit status for a successful operation.

See Also:
Constant Field Values

FAILURE

public static final int FAILURE
Exit status for an unsuccessful operation.

See Also:
Constant Field Values
Method Detail

getFrame

public JFrame getFrame()
Gets the HiTemp frame.

Returns:
the HiTemp frame.

getMttLayer

public edu.asu.jmars.layer.obs.mro.MttLayer getMttLayer()
Gets the HiTemp MTT layer. The MTT layer manages SPICE kernels and OPTG info for HiTemp. Until a state file is loaded, it is null.

Returns:
the HiTemp MTT layer, which may be null.

getAlerts

public Alerts getAlerts()
Gets the HiTemp alert manager.

Returns:
the HiTemp alert manager.

actionPerformed

public void actionPerformed(ActionEvent e)
Receives action events. This method is invoked when an action occurs; it uses the source of the action to determine what to do next.

Specified by:
actionPerformed in interface ActionListener
Parameters:
e - the action event that invoked this method.

stateChanged

public void stateChanged(ChangeEvent e)
Specified by:
stateChanged in interface ChangeListener

lostOwnership

public void lostOwnership(Clipboard clipboard,
                          Transferable contents)
Notifies HiTemp that is no longer the clipboard owner. This method is called when another application asserts ownership of the clipboard. This method currently does nothing, but it is required by the ClipboardOwner interface.

Specified by:
lostOwnership in interface ClipboardOwner
Parameters:
clipboard - the clipboard that is no longer owned.
contents - the contents this owner had placed in the clipboard.

valueChanged

public void valueChanged(ListSelectionEvent e)
Receives list selection events. This method is invoked whenever the selection state of the observation timeline changes.

Specified by:
valueChanged in interface ListSelectionListener
Parameters:
e - the event that characterizes the selection change.

tableChanged

public void tableChanged(TableModelEvent e)
Receives table model events. This method is invoked whenever the state of the observation timeline table changes.

Specified by:
tableChanged in interface TableModelListener
Parameters:
e - the event that characterizes the change in the table model.

handleMacQuit

public boolean handleMacQuit()
Handles a request to quit as generated by the Mac-supplied Quit menu item.

This method is exposed for access by the Mac Adapter.

Returns:
true.

handleAbout

public void handleAbout()
Handles a request to display the application About dialog. This method is called when the operator selects the About menu item in HiTemp's Help menu.

On a Mac, an About menu item is also supplied in the application menu. A Mac_Adapter registers this method as the handler for the Apple event generated by this menu item.

This method is exposed for access by the Mac Adapter.


main

public static void main(String[] args)
Invokes an instance of the HiTemp application in its own thread. One or more input sources of observation IDs may be supplied for the initial state of the observation timeline; see Observation_ID_Accumulator for information about sources.

Usage

HiTemp [--configuration configuration_pathname] [[--state-file] state_file_pathname] [observation_id_source [...]]

HiTemp --usage

HiTemp --version

Options are not case-sensitive and may be reduced to their shortest unique form. One or two dashes may be used.

Options

--configuration configuration_pathname
Sets the pathname of the configuration file from which to configure the application. See Configuration_Helper.getConfiguration(String,String,String...) for details on the configuration pathname; if this option is not used, the config source argument is null.
--state-file state_file_pathname
Specifies the optional state file. Note that the B<--state-file> switch is optional if the state filename ends with the ".nk" extension.

Parameters:
args - the command-line arguments.

HiRISE

Copyright (C) Arizona Board of Regents on behalf of the Planetary Image Research Laboratory, Lunar and Planetary Laboratory at the University of Arizona