HiRISE

HiRISE.HiPlan.Data_Slacker
Enum SsrDrainTableModel.Column

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

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

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


Enum Constant Summary
DURATION
          The duration column.
END_DATE
          The end date column.
LABEL
          The label column.
MEGABITS
          The megabits column.
RATE
          The transfer rate column.
START_DATE
          The start date column.
 
Method Summary
static int getColumnIndex(SsrDrainTableModel.Column column)
          Gets the index of the column in this enumeration.
 String getName()
          Gets the column's name.
static Map<String,SsrDrainTableModel.Column> getNameMap()
          Gets a map of column name to column enumeration member.
 Class getType()
          Gets the column's type.
static SsrDrainTableModel.Column valueOf(String name)
          Returns the enum constant of this type with the specified name.
static SsrDrainTableModel.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 SsrDrainTableModel.Column LABEL
The label column. The table cell value is obtained from the SSR drain's getLabel() method.

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


START_DATE

public static final SsrDrainTableModel.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 SsrDrainTableModel.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 SsrDrainTableModel.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 SsrDrainTableModel.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 SsrDrainTableModel.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.

Method Detail

values

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