HiRISE

HiRISE.HiPlan.Data_Slacker
Enum SsrStateTableModel.Column

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

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

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


Enum Constant Summary
LABEL
          The label column.
MEGABITS
          The megabits column.
PERCENT_FRAMED
          The percent framed column.
PERCENT_RAW
          The percent raw column.
START_DATE
          The date column.
 
Method Summary
static int getColumnIndex(SsrStateTableModel.Column column)
          Gets the index of the column in this enumeration.
 String getName()
          Gets the column's name.
static Map<String,SsrStateTableModel.Column> getNameMap()
          Gets a map of column name to column enumeration member.
 Class getType()
          Gets the column's type.
static SsrStateTableModel.Column valueOf(String name)
          Returns the enum constant of this type with the specified name.
static SsrStateTableModel.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 SsrStateTableModel.Column LABEL
The label column. The table cell value is obtained from the SSR state's getLabel() method.

The getName() value is "Label." The getType() value is String.


START_DATE

public static final SsrStateTableModel.Column START_DATE
The date column. The table cell value is obtained from the SSR state's getDate() method.

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


MEGABITS

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

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


PERCENT_FRAMED

public static final SsrStateTableModel.Column PERCENT_FRAMED
The percent framed column. The table cell value is obtained from the SSR state's getBits() method and compared to the table model's getFramedPartitionMegabits() value.

The getName() value is "% Framed." The getType() value is Double.


PERCENT_RAW

public static final SsrStateTableModel.Column PERCENT_RAW
The percent raw column. The table cell value is obtained from the SSR state's getBits() method and compared to the table model's getFramedPartitionMegabits() and getRawPartitionMegabits() values.

The getName() value is "% Raw." The getType() value is Double.

Method Detail

values

public static SsrStateTableModel.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 (SsrStateTableModel.Column c : SsrStateTableModel.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 SsrStateTableModel.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,SsrStateTableModel.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(SsrStateTableModel.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