public enum StrategyType extends Enum<StrategyType>
Track
objects based on what tracking
strategy was used. The type is defined by comparing the tracking strategy
name to the name of all the enum constants.Enum Constant and Description |
---|
MATCHED_TRACKS
This is the default TrackType value set by the reconstruction.
|
S123_C4_E56
Seed 123, confirm 4, extend 56
|
S123_C5_E46
Seed 123, confirm 5, extend 46
|
S345_C2_E16
Seed 345, confirm 2, extend 16
|
S456_C3_E21
Seed 456, confirm 3, extend 21
|
Modifier and Type | Field and Description |
---|---|
private int |
type |
private static Map<String,StrategyType> |
typeNameMap
Map from an enum constant name to an enum constant
|
private static Map<Integer,StrategyType> |
typeValueMap
Map from an enum constant value to an enum constant
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(StrategyType strategyType)
Returns true if the specified
StrategyType is equal to this enum
constant. |
int |
getType()
Returns the enum constant of this enum type
|
static StrategyType |
getType(int typeValue)
Returns the
StrategyType with the specified type value. |
static StrategyType |
getType(String name)
Returns the
StrategyType with the specified name. |
static StrategyType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static StrategyType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final StrategyType MATCHED_TRACKS
public static final StrategyType S345_C2_E16
public static final StrategyType S456_C3_E21
public static final StrategyType S123_C4_E56
public static final StrategyType S123_C5_E46
private int type
private static Map<Integer,StrategyType> typeValueMap
private static Map<String,StrategyType> typeNameMap
public static StrategyType[] values()
for (StrategyType c : StrategyType.values()) System.out.println(c);
public static StrategyType valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic int getType()
public static StrategyType getType(String name)
StrategyType
with the specified name. If a
StrategyType
with that name doesn't exist, it returns null.name
- The name of the StrategyType enum constant to returnStrategyType
enum constant of the given name or
null if it doesn't exist.public static StrategyType getType(int typeValue)
StrategyType
with the specified type value. If a
StrategyType
with that type value doesn't exist, it returns
null.typeValue
- The type value of the StrategyType enum constant to
returnStrategyType
enum constant with the given type
value or null if it doesn't exist.public boolean equals(StrategyType strategyType)
StrategyType
is equal to this enum
constant.strategyType
- enum constant to checkStrategyType
is equal to this enum
constantCopyright © 2019. All rights reserved.