public final class TrackType extends Object
Modifier | Constructor and Description |
---|---|
private |
TrackType()
Constructor
|
Modifier and Type | Method and Description |
---|---|
static int |
addStrategy(int type,
StrategyType strategyType) |
private static int |
encodeType(StrategyType strategyType,
boolean isGblTrack)
Track type encoder.
|
static int |
getType(StrategyType strategyType)
Returns the track type for the given strategy.
|
static int |
getType(StrategyType strategyType,
boolean isGblTrack)
Returns the track type for a given strategy based of whether the track is
a GBL track or not.
|
static boolean |
isGBL(int type) |
static int |
setGBL(int type,
boolean isGblTrack) |
public static int getType(StrategyType strategyType)
strategyType
- The StrategyType associated with the tracking
tracking strategy of interest.public static int getType(StrategyType strategyType, boolean isGblTrack)
strategyType
- The StrategyType associated with the tracking
tracking strategy of interest.isGblTrack
- Flag indicating whether the track is a GBL trackprivate static int encodeType(StrategyType strategyType, boolean isGblTrack)
StrategyType
enum, so:
bit0 = MATCHED_TRACKS
bit1 = S345_C2_E16
bit2 = S456_C3_E21
bit3 = S123_C4_E56
bit4 = S123_C5_E46
bit5 = GBL Track.strategyType
- The StrategyType associated with the tracking
strategy of interest.isGblTrack
- Flag indicating whether the track is a GBL trackpublic static int addStrategy(int type, StrategyType strategyType)
public static boolean isGBL(int type)
public static int setGBL(int type, boolean isGblTrack)
Copyright © 2019. All rights reserved.