HiRISE

HiRISE.HiCat.HiTList
Class PTFBuilder

java.lang.Object
  extended by HiRISE.HiCat.HiTList.PTFBuilder

public class PTFBuilder
extends Object

Build PTF records from a data vector retrieved from HiCat. The class will accept several different TargetList.ListTypes of input lists, (eg. "First Half Stereo", "Second Half Stereo", "High Stability", etc).

Version:
1.4
Author:
Rodney Heyd UA/PIRL
See Also:
HiRISE.HiCat.HiTList, TargetList.ListTypes

Field Summary
static String DEBUG_ADD_VECTOR_PROPERTY
           
static String DEBUG_CONSTRUCTOR_PROPERTY
           
static String DEBUG_DUPLICATE_PROPERTY
           
static String DEBUG_PTF_RECORDS_PROPERTY
           
static String DEBUG_WRITE_PROPERTY
           
static String DOWNLINK_PRIORITY
          The default downlink priority.
static String ID
          Class identification name with source code version and date.
static String INSTRUMENT_SET
          The default value of the instrument set field.
static int OBSERVATION_DURATION
          The default value of the observation duration.
static int SETUP_DURATION
          The default value of the setup duration.
 
Constructor Summary
PTFBuilder()
          Construct a ptf from a vector of vectors.
 
Method Summary
 void add(Vector<Vector<String>> data_vector, Vector<String> column_names, TargetList.ListTypes list_type)
          Add a list of records to be output in ptf format.
 void Write()
          Writes the ROI records contained in this object to System.out
 void Write(OutputStream output)
          Writes the PTF records contained in this object to the specified OutputStream
 
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

INSTRUMENT_SET

public static final String INSTRUMENT_SET
The default value of the instrument set field.

See Also:
Constant Field Values

OBSERVATION_DURATION

public static final int OBSERVATION_DURATION
The default value of the observation duration.

See Also:
Constant Field Values

SETUP_DURATION

public static final int SETUP_DURATION
The default value of the setup duration.

See Also:
Constant Field Values

DOWNLINK_PRIORITY

public static final String DOWNLINK_PRIORITY
The default downlink priority.

See Also:
Constant Field Values

DEBUG_CONSTRUCTOR_PROPERTY

public static final String DEBUG_CONSTRUCTOR_PROPERTY
See Also:
Constant Field Values

DEBUG_ADD_VECTOR_PROPERTY

public static final String DEBUG_ADD_VECTOR_PROPERTY
See Also:
Constant Field Values

DEBUG_PTF_RECORDS_PROPERTY

public static final String DEBUG_PTF_RECORDS_PROPERTY
See Also:
Constant Field Values

DEBUG_WRITE_PROPERTY

public static final String DEBUG_WRITE_PROPERTY
See Also:
Constant Field Values

DEBUG_DUPLICATE_PROPERTY

public static final String DEBUG_DUPLICATE_PROPERTY
See Also:
Constant Field Values
Constructor Detail

PTFBuilder

public PTFBuilder()
Construct a ptf from a vector of vectors.

Method Detail

add

public void add(Vector<Vector<String>> data_vector,
                Vector<String> column_names,
                TargetList.ListTypes list_type)
         throws ROIF_Exception
Add a list of records to be output in ptf format.

Parameters:
data_vector - A vector of vectors in which each vector element represents a data record to be output.
column_names - A vector containing the column names of each column in the data_vector.
list_type - The type of list being added. The list type should correspond to one of the list types in the precedence hash passed to the constructor.
Throws:
ROIF_Exception

Write

public void Write(OutputStream output)
Writes the PTF records contained in this object to the specified OutputStream

Parameters:
output - The OutputStream the ROI's should be written to. This should normally be a FileOutputStream.

Write

public void Write()
Writes the ROI records contained in this object to System.out

See Also:
Write(OutputStream)

HiRISE

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