Package armyc2.c5isr.renderer.utilities
Class SymbolID
java.lang.Object
armyc2.c5isr.renderer.utilities.SymbolID
Utility class for helping to parse out parts of the symbol ID.
</>
</>
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final char
static final char
static final char
static final char
static final char
static final char
static final char
static final char
static final char
static final char
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
Deprecated.withdrawn from standard -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic int
getAffiliation
(String symbolID) Get Affiliation from position 4static int
getAmplifierDescriptor
(String symbolID) Get Amplifier Descriptor which can describe things like Echelon / Mobility / Towed Array / Leadership Indicator from positions 9-10static int
getCommonModifier1
(String symbolID) Get Common Sector 1 Modifier from position 21.static int
getCommonModifier2
(String symbolID) Get Common Sector 2 Modifier from position 22.static int
getContext
(String symbolID) Get Context (Reality (0), Exercise (1), Simulation (2)) at position 3 Higher values are NATO onlystatic int
getCountryCode
(String symbolID) Gets the 3 digit county code from positions 28-30static char
getDefaultFrameShape
(String symbolID) In 2525E, position 23 of the symbol code has the Frame Shape modifier.static int
Get Entity from positions 11-12.static int
getEntityCode
(String symbolID) Get Entity Code from positions 11-16.static int
getEntitySubtype
(String symbolID) Get Entity Subtype from positions 15-16.static int
getEntityType
(String symbolID) Get Entity Type from positions 13-14.static String
getFrameID
(String symbolID) Deprecated.static char
getFrameShape
(String symbolID) Gets the Frame Shape override from position 23.static int
Get Symbol Set from position 8static String
getMainIconID
(String symbolID) Deprecated.static String
Deprecated.SeeSVGLookup.getMod1ID(String)
(String)}static String
Deprecated.SeeSVGLookup.getMod2ID(String)
(String)}static int
getModifier1
(String symbolID) Get Sector 1 Modifier from positions 17-18.static int
getModifier2
(String symbolID) Get Sector 2 Modifier from positions 17-18.static int
getStandardIdentity
(String symbolID) Gets the version number from the Symbol ID at positions 3-4.static int
Get Symbol Set from position 7static int
getSymbolSet
(String symbolID) Get Symbol Set from positions 5-6static int
getVersion
(String symbolID) Gets the version number from the Symbol ID at positions 1-2static Boolean
Deprecated.static String
reconcileSymbolID
(String symbolID) Deprecated.static String
setAffiliation
(String symbolID, int affiliation) Set Affiliation at position 4static String
setAmplifierDescriptor
(String symbolID, int ad) Set Amplifier Descriptor which can describe things like Echelon / Mobility / Towed Array / Leadership Indicator at positions 9-10static String
setCommonModifier1
(String symbolID, int mod1I) Set Common Sector 1 Modifier at position 21.static String
setCommonModifier2
(String symbolID, int mod1I) Set Common Sector 2 Modifier at position 22.static String
setContext
(String symbolID, int context) Set Context (Reality (0), Exercise (1), Simulation (2)) at position 3static String
setEntityCode
(String symbolID, int entityCode) Set Entity Code at positions 11-16.static String
Set Symbol Set at position 8static String
setModifier1
(String symbolID, int mod1) Set Sector 1 Modifier at positions 17-18.static String
setModifier2
(String symbolID, int mod1) Set Sector 2 Modifier at positions 17-18.static String
setStandardIdentity
(String symbolID, int si) Sets the version number of the Symbol ID at positions 3-4static String
Set Symbol Set at position 7static String
setSymbolSet
(String symbolID, int ss) Set Symbol Set at positions 5-6static String
setVersion
(String symbolID, int ver) Sets the version number of the Symbol ID at positions 1-2
-
Field Details
-
Version_2525D
- See Also:
-
Version_2525Dch1
- See Also:
-
Version_APP6Dch2
Deprecated.withdrawn from standard- See Also:
-
Version_2525E
- See Also:
-
StandardIdentity_Context_Reality
- See Also:
-
StandardIdentity_Context_Exercise
- See Also:
-
StandardIdentity_Context_Simulation
- See Also:
-
StandardIdentity_Affiliation_Pending
- See Also:
-
StandardIdentity_Affiliation_Unknown
- See Also:
-
StandardIdentity_Affiliation_AssumedFriend
- See Also:
-
StandardIdentity_Affiliation_Friend
- See Also:
-
StandardIdentity_Affiliation_Neutral
- See Also:
-
StandardIdentity_Affiliation_Suspect_Joker
- See Also:
-
StandardIdentity_Affiliation_Hostile_Faker
- See Also:
-
SymbolSet_Unknown
- See Also:
-
SymbolSet_Air
- See Also:
-
SymbolSet_AirMissile
- See Also:
-
SymbolSet_Space
- See Also:
-
SymbolSet_SpaceMissile
- See Also:
-
SymbolSet_LandUnit
- See Also:
-
SymbolSet_LandCivilianUnit_Organization
- See Also:
-
SymbolSet_LandEquipment
- See Also:
-
SymbolSet_LandInstallation
- See Also:
-
SymbolSet_ControlMeasure
- See Also:
-
SymbolSet_DismountedIndividuals
- See Also:
-
SymbolSet_SeaSurface
- See Also:
-
SymbolSet_SeaSubsurface
- See Also:
-
SymbolSet_MineWarfare
- See Also:
-
SymbolSet_Activities
- See Also:
-
SymbolSet_Atmospheric
- See Also:
-
SymbolSet_Oceanographic
- See Also:
-
SymbolSet_MeteorologicalSpace
- See Also:
-
SymbolSet_SignalsIntelligence
- See Also:
-
SymbolSet_SignalsIntelligence_Space
- See Also:
-
SymbolSet_SignalsIntelligence_Air
- See Also:
-
SymbolSet_SignalsIntelligence_Land
- See Also:
-
SymbolSet_SignalsIntelligence_SeaSurface
- See Also:
-
SymbolSet_SignalsIntelligence_SeaSubsurface
- See Also:
-
SymbolSet_CyberSpace
- See Also:
-
SymbolSet_InvalidSymbol
- See Also:
-
SymbolSet_VersionExtensionFlag
- See Also:
-
Status_Present
- See Also:
-
Status_Planned_Anticipated_Suspect
- See Also:
-
Status_Present_FullyCapable
- See Also:
-
Status_Present_Damaged
- See Also:
-
Status_Present_Destroyed
- See Also:
-
Status_Present_FullToCapacity
- See Also:
-
Status_Present_VersionExtensionFlag
- See Also:
-
HQTFD_Unknown
- See Also:
-
HQTFD_FeintDummy
- See Also:
-
HQTFD_Headquarters
- See Also:
-
HQTFD_FeintDummy_Headquarters
- See Also:
-
HQTFD_TaskForce
- See Also:
-
HQTFD_FeintDummy_TaskForce
- See Also:
-
HQTFD_TaskForce_Headquarters
- See Also:
-
HQTFD_FeintDummy_TaskForce_Headquarters
- See Also:
-
HQTFD_VersionExtensionFlag
- See Also:
-
Echelon_Unknown
- See Also:
-
Echelon_Team_Crew
- See Also:
-
Echelon_Squad
- See Also:
-
Echelon_Section
- See Also:
-
Echelon_Platoon_Detachment
- See Also:
-
Echelon_Company_Battery_Troop
- See Also:
-
Echelon_Battalion_Squadron
- See Also:
-
Echelon_Regiment_Group
- See Also:
-
Echelon_Brigade
- See Also:
-
Echelon_VersionExtensionFlag
- See Also:
-
Echelon_Division
- See Also:
-
Echelon_Corps_MEF
- See Also:
-
Echelon_Army
- See Also:
-
Echelon_ArmyGroup_Front
- See Also:
-
Echelon_Region_Theater
- See Also:
-
Echelon_Region_Command
- See Also:
-
Echelon_VersionExtensionFlag2
- See Also:
-
Mobility_Unknown
- See Also:
-
Mobility_WheeledLimitedCrossCountry
- See Also:
-
Mobility_WheeledCrossCountry
- See Also:
-
Mobility_Tracked
- See Also:
-
Mobility_Wheeled_Tracked
- See Also:
-
Mobility_Towed
- See Also:
-
Mobility_Rail
- See Also:
-
Mobility_PackAnimals
- See Also:
-
Mobility_OverSnow
- See Also:
-
Mobility_Sled
- See Also:
-
Mobility_Barge
- See Also:
-
Mobility_Amphibious
- See Also:
-
Mobility_ShortTowedArray
- See Also:
-
Mobility_LongTowedArray
- See Also:
-
Leadership_Individual
- See Also:
-
FrameShape_Unknown
- See Also:
-
FrameShape_Space
- See Also:
-
FrameShape_Air
- See Also:
-
FrameShape_LandUnit
- See Also:
-
FrameShape_LandEquipment_SeaSurface
- See Also:
-
FrameShape_LandInstallation
- See Also:
-
FrameShape_DismountedIndividuals
- See Also:
-
FrameShape_SeaSubsurface
- See Also:
-
FrameShape_Activity_Event
- See Also:
-
FrameShape_Cyberspace
- See Also:
-
-
Constructor Details
-
SymbolID
public SymbolID()
-
-
Method Details
-
reconcileSymbolID
Deprecated.Attempts to resolve a bad symbol ID into a value that can be found inMSLookup
. If it fails, it will return the symbol code for a invalid symbol which is displayed as an inverted question mark (110098000010000000000000000000) -
getVersion
Gets the version number from the Symbol ID at positions 1-2- Parameters:
symbolID
- 30 characterString
- Returns:
Integer
likeVersion_2525Dch1
(11)
</>
-
setVersion
Sets the version number of the Symbol ID at positions 1-2- Parameters:
symbolID
- 30 characterString
ver
-Integer
likeVersion_2525Dch1
(11)- Returns:
- updated 30 character
String
symbol ID
-
getStandardIdentity
Gets the version number from the Symbol ID at positions 3-4. Restricted and No-Strike values are NATO only. -
setStandardIdentity
Sets the version number of the Symbol ID at positions 3-4 -
getContext
Get Context (Reality (0), Exercise (1), Simulation (2)) at position 3 Higher values are NATO only -
setContext
Set Context (Reality (0), Exercise (1), Simulation (2)) at position 3 -
getAffiliation
Get Affiliation from position 4- Parameters:
symbolID
- 30 CharacterString
- Returns:
Integer
likeStandardIdentity_Affiliation_Friend
-
setAffiliation
Set Affiliation at position 4- Parameters:
symbolID
- 30 CharacterString
affiliation
- likeStandardIdentity_Affiliation_Friend
- Returns:
String
updated Symbol ID.
-
getSymbolSet
Get Symbol Set from positions 5-6- Parameters:
symbolID
- 30 CharacterString
- Returns:
Integer
likeSymbolSet_LandCivilianUnit_Organization
-
setSymbolSet
Set Symbol Set at positions 5-6- Parameters:
symbolID
- 30 CharacterString
ss
- likeSymbolSet_LandCivilianUnit_Organization
- Returns:
String
updated Symbol ID.
-
getStatus
Get Symbol Set from position 7- Parameters:
symbolID
- 30 CharacterString
- Returns:
Integer
likeStatus_Present
-
setStatus
Set Symbol Set at position 7- Parameters:
symbolID
- 30 CharacterString
status
- likeStatus_Present
- Returns:
String
updated Symbol ID.
-
getHQTFD
Get Symbol Set from position 8- Parameters:
symbolID
- 30 CharacterString
- Returns:
Integer
likeHQTFD_Headquarters
-
setHQTFD
Set Symbol Set at position 8- Parameters:
symbolID
- 30 CharacterString
HQTFD
- likeHQTFD_Headquarters
- Returns:
String
updated Symbol ID.
-
getAmplifierDescriptor
Get Amplifier Descriptor which can describe things like Echelon / Mobility / Towed Array / Leadership Indicator from positions 9-10 -
setAmplifierDescriptor
Set Amplifier Descriptor which can describe things like Echelon / Mobility / Towed Array / Leadership Indicator at positions 9-10 -
getEntityCode
Get Entity Code from positions 11-16. These six digits identify a unique symbol within a symbol set. -
setEntityCode
Set Entity Code at positions 11-16. These six digits identify a unique symbol within a symbol set. -
getEntity
Get Entity from positions 11-12. -
getEntityType
Get Entity Type from positions 13-14. -
getEntitySubtype
Get Entity Subtype from positions 15-16. -
getModifier1
Get Sector 1 Modifier from positions 17-18. -
setModifier1
Set Sector 1 Modifier at positions 17-18. -
getCommonModifier1
Get Common Sector 1 Modifier from position 21. -
setCommonModifier1
Set Common Sector 1 Modifier at position 21. -
getModifier2
Get Sector 2 Modifier from positions 17-18. -
setModifier2
Set Sector 2 Modifier at positions 17-18. -
getCommonModifier2
Get Common Sector 2 Modifier from position 22. -
setCommonModifier2
Set Common Sector 2 Modifier at position 22. -
isMETOC
Deprecated.Returns true is symbol is of the Meteorological variety. -
getFrameID
Deprecated.Build string to grab appropriate SVG file -
getMainIconID
Deprecated.Build string to grab appropriate SVG file -
getMod2ID
Deprecated.SeeSVGLookup.getMod2ID(String)
(String)}Build string to grab appropriate SVG file -
getMod1ID
Deprecated.SeeSVGLookup.getMod1ID(String)
(String)}Build string to grab appropriate SVG file -
getCountryCode
Gets the 3 digit county code from positions 28-30 -
getDefaultFrameShape
In 2525E, position 23 of the symbol code has the Frame Shape modifier. This lets a user force a different frame shape than what a symbol would normally have. Like you could have Air Fixed Wing with a ground unit rectangle frame for when it's on the ground. This function returns the frame shape value for what the default frame would be for a specific symbol set. -
getFrameShape
Gets the Frame Shape override from position 23.
-