|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Object java.lang.Enum<ProcessingType> edu.nrao.sss.model.resource.vla.ProcessingType
public enum ProcessingType
Data processing that can be done by the correlator.
Version Info:
$Revision: 1218 $ |
$Date: 2008-04-14 14:56:14 -0600 (Mon, 14 Apr 2008) $ |
$Author: btruitt $ (last person to modify) |
Enum Constant Summary | |
---|---|
HANNING
|
|
LAG
|
|
TRUE_CHANNEL_ZERO
|
Method Summary | |
---|---|
char |
getCode()
Returns a character code for this element. |
static String |
getCombinationCode(Set<ProcessingType> combination)
Returns a code that represents the given combination of processing types. |
static Set<ProcessingType> |
getTypesFromComboCode(String comboCode)
Returns the collection of processing types represented by the collection of characters in comboCode . |
static boolean |
isValidSelection(Set<ProcessingType> combination)
Returns true if the given set of processing types may be used simultaneously. |
String |
toString()
Returns text for this element that is suitable for user displays. |
static ProcessingType |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static ProcessingType[] |
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, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final ProcessingType TRUE_CHANNEL_ZERO
public static final ProcessingType HANNING
public static final ProcessingType LAG
Method Detail |
---|
public static ProcessingType[] values()
for (ProcessingType c : ProcessingType.values()) System.out.println(c);
public static ProcessingType valueOf(String name)
name
- the name of the enum constant to be returned.
IllegalArgumentException
- if this enum type has no constant
with the specified name
NullPointerException
- if the argument is nullpublic char getCode()
getCombinationCode(Set)
.
public String toString()
toString
in class Enum<ProcessingType>
public static boolean isValidSelection(Set<ProcessingType> combination)
combination
- a collection of processing types to be tested for validity of
simultaneous use. If the list is null, empty, or contains
one element, the return value will always be true.
public static String getCombinationCode(Set<ProcessingType> combination)
combination
- a collection of processing types for which a combined code is needed.
public static Set<ProcessingType> getTypesFromComboCode(String comboCode)
comboCode
. This method does not test
the collection for validity (see isValidSelection(Set)
.
comboCode
- text representation of zero or more processing types.
This value may be null or the empty string, in which case
an empty set will be returned.
comboCode
. The returned collection will
never be null, but could be empty.
IllegalArgumentException
- if comboCode
contains any unknown character codes.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |