HiRISE

HiRISE.HiPlan.Data_Slacker
Enum SsrInputTableModel.Column

java.lang.Object
  extended by java.lang.Enum<SsrInputTableModel.Column>
      extended by HiRISE.HiPlan.Data_Slacker.SsrInputTableModel.Column
All Implemented Interfaces:
Serializable, Comparable<SsrInputTableModel.Column>
Enclosing class:
SsrInputTableModel

public static enum SsrInputTableModel.Column
extends Enum<SsrInputTableModel.Column>

An enumeration of the table model's columns. Each column object includes a name and a type.


Enum Constant Summary
COMMENT
           
DURATION
          The duration column.
END_DATE
          The end date column.
LABEL
          The label column.
MEGABITS
          The megabits column.
RATE
          The transfer rate column.
REQUEST_CATEGORY
           
REQUEST_PRIORITY
           
SPARE3
           
START_DATE
          The start date column.
 
Method Summary
static int getColumnIndex(SsrInputTableModel.Column column)
          Gets the index of the column in this enumeration.
 String getName()
          Gets the column's name.
static Map<String,SsrInputTableModel.Column> getNameMap()
          Gets a map of column name to column enumeration member.
 Class getType()
          Gets the column's type.
static SsrInputTableModel.Column valueOf(String name)
          Returns the enum constant of this type with the specified name.
static SsrInputTableModel.Column[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

LABEL

public static final SsrInputTableModel.Column LABEL
The label column. The table cell value is obtained from the SSR drain's getLabel() method.

The getName() value is "Observation ID." The getType() value is String.


START_DATE

public static final SsrInputTableModel.Column START_DATE
The start date column. The table cell value is obtained from the SSR drain's getStartDate() method.

The getName() value is "Start Date." The getType() value is Date.


END_DATE

public static final SsrInputTableModel.Column END_DATE
The end date column. The table cell value is obtained from the SSR drain's getEndDate() method.

The getName() value is "End Date." The getType() value is Date.


MEGABITS

public static final SsrInputTableModel.Column MEGABITS
The megabits column. The table cell value is obtained from the SSR drain's getBits() method, divided by 1,048,576 to convert to base-2 megabits.

The getName() value is "Megabits." The getType() value is Double.


DURATION

public static final SsrInputTableModel.Column DURATION
The duration column. The table cell value is obtained from the SSR drain's getDuration() method.

The getName() value is "Duration (s)." The getType() value is Double.


RATE

public static final SsrInputTableModel.Column RATE
The transfer rate column. The table cell value is obtained from the SSR drain's getRate() method, divided by 1,048,576 to convert to base-2 megabits per second.

The getName() value is "Rate (Mbps)." The getType() value is Double.


REQUEST_PRIORITY

public static final SsrInputTableModel.Column REQUEST_PRIORITY

REQUEST_CATEGORY

public static final SsrInputTableModel.Column REQUEST_CATEGORY

SPARE3

public static final SsrInputTableModel.Column SPARE3

COMMENT

public static final SsrInputTableModel.Column COMMENT
Method Detail

values

public static SsrInputTableModel.Column[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (SsrInputTableModel.Column c : SsrInputTableModel.Column.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static SsrInputTableModel.Column valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null

getName

public String getName()
Gets the column's name.

Returns:
the column's name.

getType

public Class getType()
Gets the column's type.

Returns:
the column's type.

getNameMap

public static Map<String,SsrInputTableModel.Column> getNameMap()
Gets a map of column name to column enumeration member.

Returns:
a map of column name to column enumeration member.

getColumnIndex

public static int getColumnIndex(SsrInputTableModel.Column column)
Gets the index of the column in this enumeration.

Parameters:
column - the column.
Returns:
the index.

HiRISE

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