HiRISE

HiRISE.HiPlan.Data_Slacker
Class Data_Slacker

java.lang.Object
  extended by HiRISE.HiPlan.Data_Slacker.Data_Slacker

public class Data_Slacker
extends Object

A command-line utility to model HiRISE's use of the MRO SSR. It is similar to the MRO Project-supplied Data Tracker tool, with certain limitations; see Model for details.

Original Python code by Ross Beyer of NASA Ames.

Version:
1.28
Author:
Christian Schaller - UA/PIRL

Field Summary
static String APPLICATION_GROUP
          The application-specific parameter group name for Data Slacker.
static double DEFAULT_FRAMED_PARTITION_MEGABITS
          The default number of base-2 megabits assigned to HiRISE framed space.
static double DEFAULT_RAW_PARTITION_MEGABITS
          The default number of base-2 megabits assigned to HiRISE raw space.
static int FAILURE
          Exit status for an unsuccessful operation.
static String FRAMED_PARTITION_MEGABITS
          The configuration parameter holding the number of base-2 megabits assigned to framed space for HiRISE.
static String ID
          Class identification name with source code version and date.
static String RAW_PARTITION_MEGABITS
          The configuration parameter holding the number of base-2 megabits assigned to raw space for HiRISE.
static int SUCCESS
          Exit status for a successful operation.
 
Method Summary
 boolean handleMacQuit()
          Handles a request to quit as generated by the Mac-supplied Quit menu item.
static void main(String[] args)
          Invokes an instance of Data_Slacker and processes the command-line arguments.
 void showAbout()
          Displays the application's About box.
 
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 Data Slacker.

See Also:
Constant Field Values

RAW_PARTITION_MEGABITS

public static final String RAW_PARTITION_MEGABITS
The configuration parameter holding the number of base-2 megabits assigned to raw space for HiRISE. Default value: DEFAULT_RAW_PARTITION_MEGABITS.

See Also:
Constant Field Values

DEFAULT_RAW_PARTITION_MEGABITS

public static final double DEFAULT_RAW_PARTITION_MEGABITS
The default number of base-2 megabits assigned to HiRISE raw space.

See Also:
Constant Field Values

FRAMED_PARTITION_MEGABITS

public static final String FRAMED_PARTITION_MEGABITS
The configuration parameter holding the number of base-2 megabits assigned to framed space for HiRISE. Default value: DEFAULT_FRAMED_PARTITION_MEGABITS.

See Also:
Constant Field Values

DEFAULT_FRAMED_PARTITION_MEGABITS

public static final double DEFAULT_FRAMED_PARTITION_MEGABITS
The default number of base-2 megabits assigned to HiRISE framed space.

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

showAbout

public void showAbout()
Displays the application's About box.

This method is exposed for access by the Mac Adapter.


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.

main

public static void main(String[] args)
Invokes an instance of Data_Slacker and processes the command-line arguments. One or more input sources of observation IDs may be supplied; see Observation_ID_Accumulator for information about sources.

The application displays a GUI for modeling HiRISE's use of the MRO solid-state recorder (SSR).

Usage

Data_Slacker [--configuration configuration_pathname] [--initial-data-volume data_volume] [--initial-date date] [--live-update-ptfs] [[--state-file] state_file_pathname] [observation_id_source [...]]

Data_Slacker --usage

Data_Slacker --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.
--initial-data-volume data_volume
Sets the data volume initial condition, which is the amount of data in the SSR at the start of the model run. The value may be either a percentage of framed space (e.g., 35%) or a number of megabits (e.g., 32000). If this option is not used, the initial data volume is set to 0. It can be changed within the application.
--initial-date date
Sets the date initial condition, which is the date at which the model run starts. All activity prior to this date is ignored, including downlinks and observations. The data volume at this point is set to the initial data volume specified, which is either 0 or the value specified by the --initial-data-volume option. If this option is not used, the model run starts at the earliest of the downlinks or observations. It can be changed within the application.
--live-update-ptfs
Sets the Data Slacker to get model observation data "live" from the database for input PTFs. Without this option, PTF observation data are taken directly from the input PTFs. Regardless, observation data from non-PTF inputs are always taken from the current values in the database.
--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.

The state file pathname may be that of a state file proper, from which a downlink volume file will be loaded, or it may be that of an actual downlink volume file. State filenames end with .nk; downlink volume file names end with .dlink.

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