NASA World Wind

gov.nasa.worldwind.symbology.milstd2525
Class SymbolCode

java.lang.Object
  extended by gov.nasa.worldwind.avlist.AVListImpl
      extended by gov.nasa.worldwind.symbology.milstd2525.SymbolCode
All Implemented Interfaces:
AVList

public class SymbolCode
extends AVListImpl

SymbolCode provides a utility for parsing and representing the individual fields of a MIL-STD-2525 symbol identification code (SIDC). A SymbolCode can either be created by parsing a 15-character symbol code string or by creating an empty SymbolCode and manually specifying its fields.

To parse a symbol code string, construct a new SymbolCode passing in the identifier string as the sole argument. SymbolCode validates and parses the string, and populates its fields according to the contents of the string. If any field in the code is unrecognized SymbolCode throws an exception and indicates the problematic fields in the exception's message. After parsing, each field can be accessed by calling the appropriate accessor methods (for example: getScheme/setScheme). SymbolCodes supports the following fields:

Which fields are populated after parsing a symbol code depends on the MIL-STD-2525 symbology set the symbol code belongs to:

Symbology SetCoding SchemeStandard IdentityBattle DimensionCategoryStatusFunction IDSymbol ModifierEchelonCountry CodeOrder of Battle
WarfightingYESYESYESNOYESYESYESNOYESYES
Tactical GraphicsYESYESNOYESYESYESNOYESYESYES
Signals IntelligenceYESYESYESNOYESYESNONOYESYES
Stability OperationsYESYESNOYESYESYESYESNOYESYES
Emergency ManagementYESYESNOYESYESYESYESNOYESYES


Field Summary
protected static String UNUSED_POSITION_CODE
          Indicates the character for an unused position in a MIL-STD-2525 symbol identification code
 
Constructor Summary
SymbolCode()
          Creates a new symbol code, but otherwise does nothing.
SymbolCode(String symCode)
          Creates a new SymbolCode by parsing the fields of the specified MIL-STD-2525 15-character alphanumeric symbol identification code (SIDC).
 
Method Summary
static void appendFieldValue(StringBuilder sb, String value, int length)
          Appends the specified field value to the specified StringBuilder, padding or trimming the value to fit its length in the symbol code as necessary.
protected  String composeEmergencyManagementSymCode()
          Composes a 15-character symbol identification code (SIDC) for the Emergency Management coding scheme.
protected  String composeIntelligenceSymCode()
          Composes a 15-character symbol identification code (SIDC) for the Signals Intelligence coding scheme.
protected  String composeMetocSymCode()
          Composes a 15-character symbol identification code (SIDC) for the Meteorological and Oceanographic coding scheme.
protected  String composeStabilityOperationsSymCode()
          Composes a 15-character symbol identification code (SIDC) for the Stability Operations coding scheme.
static String composeSymbolModifierCode(SymbolCode symbolCode, AVList modifiers, String modifierKey)
           
protected  String composeSymCode()
          Composes and returns a MIL-STD-2525 15-character symbol identification code (SIDC) from this SymbolCode's current field values.
protected  String composeTacticalGraphicsSymCode()
          Composes a 15-character symbol identification code (SIDC) for the Tactical Graphics coding scheme.
protected  String composeUnrecognizedSymCode()
          Returns null indicating that this SymbolCode's Coding Scheme is not recognized.
protected  String composeWarfightingSymCode()
          Composes a 15-character symbol identification code (SIDC) for the Warfighting coding scheme.
 String getBattleDimension()
          Indicates this symbol code's Battle Dimension field.
 String getCategory()
          Indicates this symbol code's Category field.
 String getCountryCode()
          Indicates this symbol code's Country Code field.
 String getEchelon()
          Indicates this symbol code's Echelon field.
 String getFunctionId()
          Indicates this symbol code's Function ID field.
 String getGraphicType()
          Indicates this symbol code's Graphic Type field.
 String getOrderOfBattle()
          Indicates this symbol code's Order of Battle field.
 String getScheme()
          Indicates this symbol code's Coding Scheme field.
 String getStandardIdentity()
          Indicates this symbol code's Standard Identity field.
 String getStaticDynamic()
          Indicates this symbol code's Static/Dynamic field.
 String getStatus()
          Indicates this symbol code's Status/Operational Condition field.
 String getSymbolModifier()
          Indicates this symbol code's Symbol Modifier field.
static boolean isFieldEmpty(String value)
          Indicates whether the specified field value is empty.
protected  boolean isUnitsAndEquipmentSymbolModifier(String value)
          Indicates whether the specified 2-character Symbol Modifier code represents a units and equipment symbol modifier code.
protected  String parseEmergencyManagementSymCode(String symCode)
          Parses a symbol code encoded in the Emergency Management coding scheme.
protected  String parseIntelligenceSymCode(String symCode)
          Parses symbol codes encoded for the Signals Intelligence coding scheme.
protected  String parseMetocSymCode(String symCode)
          Parses a symbol code encoded in the Meteorological and Oceanographic coding scheme.
protected  String parseStabilityOperationsSymCode(String symCode)
          Parses a symbol code encoded in the Stability Operations coding scheme.
static AVList parseSymbolModifierCode(String code, AVList params)
          Computes and returns the modifier key-value pairs associated with the specified SymbolModifier code.
protected  String parseSymCode(String symCode)
          Parses a symbol code encoded into its individual fields, populating this SymbolCode's fields with the value of each field.
protected  String parseTacticalGraphicsSymCode(String symCode)
          Parses a symbol code encoded in the Tactical Graphics coding scheme.
protected  String parseUnrecognizedSymCode(String symCode)
          Returns a error string indicating that the symbol code's scheme is not recognized.
protected  String parseWarfightingSymCode(String symCode)
          Parses a symbol code encoded in the Warfighting coding scheme.
 void setBattleDimension(String value)
          Specifies this symbol code's Battle Dimension field.
 void setCategory(String value)
          Specifies this symbol code's Category field.
 void setCountryCode(String value)
          Specifies this symbol code's Country Code field.
 void setEchelon(String value)
          Specifies this symbol code's Echelon field.
 void setFunctionId(String value)
          Specifies this symbol code's Function ID field.
 void setGraphicType(String value)
          Specifies this symbol code's Graphic Type field.
 void setOrderOfBattle(String value)
          Specifies this symbol code's Order of Battle field.
 void setScheme(String value)
          Specifies this symbol code's Coding Scheme field.
 void setStandardIdentity(String value)
          Specifies this symbol code's Standard Identity field.
 void setStaticDynamic(String value)
          Specifies this symbol code's Static/Dynamic field.
 void setStatus(String value)
          Specifies this symbol code's Status/Operational Condition field.
 void setSymbolModifier(String value)
          Specifies this symbol code's Symbol Modifier field.
 String toMaskedString()
          Indicates a string representation of the symbol code with positions that do not uniquely identify a particular symbol or graphic replaced with hyphens.
 String toString()
          Returns the MIL-STD-2525 15-character symbol identification code (SIDC) corresponding to this SymbolCode's current field values.
 
Methods inherited from class gov.nasa.worldwind.avlist.AVListImpl
addPropertyChangeListener, addPropertyChangeListener, clearList, copy, firePropertyChange, firePropertyChange, getBooleanValue, getBooleanValue, getChangeSupport, getDoubleValue, getDoubleValue, getEntries, getIntegerValue, getIntegerValue, getLongValue, getLongValue, getRestorableStateForAVPair, getStringValue, getStringValue, getStringValue, getValue, getValues, hasKey, removeKey, removePropertyChangeListener, removePropertyChangeListener, setValue, setValues
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

UNUSED_POSITION_CODE

protected static final String UNUSED_POSITION_CODE
Indicates the character for an unused position in a MIL-STD-2525 symbol identification code

See Also:
Constant Field Values
Constructor Detail

SymbolCode

public SymbolCode()
Creates a new symbol code, but otherwise does nothing. All fields are initialized to null.


SymbolCode

public SymbolCode(String symCode)
Creates a new SymbolCode by parsing the fields of the specified MIL-STD-2525 15-character alphanumeric symbol identification code (SIDC). This populates the new SymbolCode's fields according to the contents of the string. This throws an exception if any field in the symbol code is unrecognized, and indicates the problematic fields in the exception's message. After construction, each field can be accessed by calling the appropriate accessor methods (for example: getScheme/setScheme)

See SymbolCode's class-level documentation for an overview of the supported MIL-STD-2525 symbol code fields.

Parameters:
symCode - the symbol identification code to parse.
Throws:
IllegalArgumentException - if the symCode is null or has a length other than 15.
WWUnrecognizedException - if any field in the symCode is invalid or cannot be recognized.
Method Detail

appendFieldValue

public static void appendFieldValue(StringBuilder sb,
                                    String value,
                                    int length)
Appends the specified field value to the specified StringBuilder, padding or trimming the value to fit its length in the symbol code as necessary. If the value is shorter than the specified length, this appends the MIL-STD-2525 unused character "-" to fill the unused characters. If the value is longer than the specified length, this ignores the extra characters. If the value is null or empty, this appends unused characters to fill the entire space used by the field.

Parameters:
sb - the StringBuilder representing a MIL-STD-2525 symbol identification code (SIDC).
value - the field value to append.
length - the number of positions used by the field in the SIDC.

composeEmergencyManagementSymCode

protected String composeEmergencyManagementSymCode()
Composes a 15-character symbol identification code (SIDC) for the Emergency Management coding scheme. Emergency Management symbol codes contain the following fields: Standard Identity, Category, Status, Function ID, Symbol Modifier, Country Code, Order of Battle.

The Emergency Management coding scheme is defined in MIL-STD-2525C table G-I (page 1032).

Returns:
the MIL-STD-2525 15-character symbol identification code (SIDC) corresponding to this SymbolCode, according to the Emergency Management coding scheme.

composeIntelligenceSymCode

protected String composeIntelligenceSymCode()
Composes a 15-character symbol identification code (SIDC) for the Signals Intelligence coding scheme. Signals Intelligence symbol codes contain the following fields: Scheme, Standard Identity, Battle Dimension, Status, Function ID, Country Code, Order of Battle.

The Signals Intelligence coding scheme is defined in MIL-STD-2525C table D-I (page 964).

Returns:
the MIL-STD-2525 15-character symbol identification code (SIDC) corresponding to this SymbolCode, according to the Signals Intelligence coding scheme.

composeMetocSymCode

protected String composeMetocSymCode()
Composes a 15-character symbol identification code (SIDC) for the Meteorological and Oceanographic coding scheme. METOC symbol codes contain the following fields: Coding Scheme, Category, Static/Dynamic, Function ID, Graphic Type.

The Meteorological and Oceanographic coding scheme is defined in MIL-STD-2525C table C-I (page 763).

Returns:
the MIL-STD-2525 15-character symbol identification code (SIDC) corresponding to this SymbolCode, according to the METOC coding scheme.

composeStabilityOperationsSymCode

protected String composeStabilityOperationsSymCode()
Composes a 15-character symbol identification code (SIDC) for the Stability Operations coding scheme. Stability Operations symbol codes contain the following fields: Scheme, Standard Identity, Category, Status, Function ID, Symbol Modifier, Country Code, Order of Battle.

The Stability Operations coding scheme is defined in MIL-STD-2525C table E-I (page 991).

Returns:
the MIL-STD-2525 15-character symbol identification code (SIDC) corresponding to this SymbolCode, according to the Stability Operations coding scheme.

composeSymbolModifierCode

public static String composeSymbolModifierCode(SymbolCode symbolCode,
                                               AVList modifiers,
                                               String modifierKey)

composeSymCode

protected String composeSymCode()
Composes and returns a MIL-STD-2525 15-character symbol identification code (SIDC) from this SymbolCode's current field values. Fields that are not part of this SymbolCode's current Coding Scheme are ignored. Fields that are unspecified or null are replaced with the MIL-STD-2525 unused position character "-". Field values are either padded or trimmed to fit their portion of the symbol code, adding unused characters to pad or ignoring extra characters to trim.

This returns null if this SymbolCode's Coding Scheme is null or unrecognized.

Returns:
the MIL-STD-2525 15-character symbol identification code (SIDC) corresponding to this SymbolCode, or null if the Coding Scheme is unrecognized.

composeTacticalGraphicsSymCode

protected String composeTacticalGraphicsSymCode()
Composes a 15-character symbol identification code (SIDC) for the Tactical Graphics coding scheme. Tactical Graphics symbol codes contain the following fields: Coding Scheme, Standard Identity, Category, Status, Function ID, Echelon, Country Code, Order of Battle.

The Tactical Graphics coding scheme is defined in MIL-STD-2525C table B-I (page 305).

Returns:
the MIL-STD-2525 15-character symbol identification code (SIDC) corresponding to this SymbolCode, according to the Tactical Graphics coding scheme.

composeUnrecognizedSymCode

protected String composeUnrecognizedSymCode()
Returns null indicating that this SymbolCode's Coding Scheme is not recognized.

Returns:
null.

composeWarfightingSymCode

protected String composeWarfightingSymCode()
Composes a 15-character symbol identification code (SIDC) for the Warfighting coding scheme. Warfighting symbol codes contain the following fields: Coding Scheme, Standard Identity, Battle Dimension, Status, Function ID, Symbol Modifier, Country Code, Order of Battle.

The Warfighting coding scheme is defined in MIL-STD-2525C table A-I (page 51).

Returns:
the MIL-STD-2525 15-character symbol identification code (SIDC) corresponding to this SymbolCode, according to the Warfighting coding scheme.

getBattleDimension

public String getBattleDimension()
Indicates this symbol code's Battle Dimension field.

Returns:
the value of the Battle Dimension field. May be null.
See Also:
setBattleDimension(String)

getCategory

public String getCategory()
Indicates this symbol code's Category field.

Returns:
the value of the Category field. May be null.
See Also:
setCategory(String)

getCountryCode

public String getCountryCode()
Indicates this symbol code's Country Code field.

Returns:
the value of the Country Code field. May be null.
See Also:
setCountryCode(String)

getEchelon

public String getEchelon()
Indicates this symbol code's Echelon field.

Returns:
the value of the Echelon field. May be null.
See Also:
setEchelon(String)

getFunctionId

public String getFunctionId()
Indicates this symbol code's Function ID field.

Returns:
the value of the Function ID field. May be null.
See Also:
setFunctionId(String)

getGraphicType

public String getGraphicType()
Indicates this symbol code's Graphic Type field.

Returns:
the value of the Graphic Type field. May be null.
See Also:
setStaticDynamic(String)

getOrderOfBattle

public String getOrderOfBattle()
Indicates this symbol code's Order of Battle field.

Returns:
the value of the Order of Battle field. May be null.
See Also:
setOrderOfBattle(String)

getScheme

public String getScheme()
Indicates this symbol code's Coding Scheme field.

Returns:
the value of the Coding Scheme field. May be null.
See Also:
setScheme(String)

getStandardIdentity

public String getStandardIdentity()
Indicates this symbol code's Standard Identity field.

Returns:
the value of the Standard Identity field. May be null.
See Also:
setStandardIdentity(String)

getStaticDynamic

public String getStaticDynamic()
Indicates this symbol code's Static/Dynamic field.

Returns:
the value of the Static/Dynamic Condition field. May be null.
See Also:
setStaticDynamic(String)

getStatus

public String getStatus()
Indicates this symbol code's Status/Operational Condition field.

Returns:
the value of the Status/Operational Condition field. May be null.
See Also:
setStatus(String)

getSymbolModifier

public String getSymbolModifier()
Indicates this symbol code's Symbol Modifier field.

Returns:
the value of the Symbol Modifier field. May be null.
See Also:
setSymbolModifier(String)

isFieldEmpty

public static boolean isFieldEmpty(String value)
Indicates whether the specified field value is empty. This returns true if the specified value is null, is the empty string, or is filled entirely with the unused character "-".

Parameters:
value - the value to test. May be null.
Returns:
true if the value is empty, and false otherwise.

isUnitsAndEquipmentSymbolModifier

protected boolean isUnitsAndEquipmentSymbolModifier(String value)
Indicates whether the specified 2-character Symbol Modifier code represents a units and equipment symbol modifier code.

Parameters:
value - the modifier code to test. Must be non-null and have length of 2 or greater. Any characters after the 2nd character are ignored.
Returns:
true if the specified code represents a units and equipment modifier code, and false otherwise.

parseEmergencyManagementSymCode

protected String parseEmergencyManagementSymCode(String symCode)
Parses a symbol code encoded in the Emergency Management coding scheme. Emergency Management symbol codes contain the following fields: Scheme, Standard Identity, Category, Status, Function ID, Symbol Modifier, Country Code, Order of Battle. All fields except Function ID, Symbol Modifier, Country Code and Order of Battle must be non-null.

The Emergency Management coding scheme is defined in MIL-STD-2525C table G-I (page 1032).

Parameters:
symCode - the symbol code to parse. Must be non-null and have length of 15 or greater. Any characters after the 15th character are ignored.
Returns:
null if the symbol code is recognized, otherwise a non-null string listing the unrecognized symbol elements.

parseIntelligenceSymCode

protected String parseIntelligenceSymCode(String symCode)
Parses symbol codes encoded for the Signals Intelligence coding scheme. Signals Intelligence symbol codes contain the following fields: Scheme, Standard Identity, Battle Dimension, Status, Function ID, Country Code, Order of Battle. All fields except Function ID, Country Code and Order of Battle must be non-null.

The Signals Intelligence coding scheme is defined in MIL-STD-2525C table D-I (page 964).

Parameters:
symCode - the symbol code to parse. Must be non-null and have length of 15 or greater. Any characters after the 15th character are ignored.
Returns:
null if the symbol code is recognized, otherwise a non-null string listing the unrecognized symbol elements.

parseMetocSymCode

protected String parseMetocSymCode(String symCode)
Parses a symbol code encoded in the Meteorological and Oceanographic coding scheme. METOC symbol codes are not currently supported, and this returns a string indicating that the scheme is unrecognized.

Parameters:
symCode - the symbol code to parse. Must be non-null and have length of 15 or greater. Any characters after the 15th character are ignored.
Returns:
an error string.

parseStabilityOperationsSymCode

protected String parseStabilityOperationsSymCode(String symCode)
Parses a symbol code encoded in the Stability Operations coding scheme. Stability Operations symbol codes contain the following fields: Scheme, Standard Identity, Category, Status, Function ID, Symbol Modifier, Country Code, Order of Battle. All fields except Function ID, Symbol Modifier, Country Code and Order of Battle must be non-null.

The Stability Operations coding scheme is defined in MIL-STD-2525C table E-I (page 991).

Parameters:
symCode - the symbol code to parse. Must be non-null and have length of 15 or greater. Any characters after the 15th character are ignored.
Returns:
null if the symbol code is recognized, otherwise a non-null string listing the unrecognized symbol elements.

parseSymbolModifierCode

public static AVList parseSymbolModifierCode(String code,
                                             AVList params)
Computes and returns the modifier key-value pairs associated with the specified SymbolModifier code. This recognizes modifier codes used by the Warfighting, Stability Operations, and Emergency Management symbology schemes: echelon, headquarters, task force, feint/dummy, installation, equipment mobility, and auxiliary equipment. This adds modifier keys only for those modifiers present in the SymbolModifier field. Any modifiers not in the SymbolModifier field are ignored. The following key-value pairs are used to indicate each modifier:

ModifierKeyValue
EchelonSymbologyConstants.ECHELONSee SymbologyConstants.ECHELON
HeadquartersSymbologyConstants.HEADQUARTERSBoolean.TRUE or null
Task ForceSymbologyConstants.TASK_FORCEBoolean.TRUE or null
Feint/DummySymbologyConstants.FEINT_DUMMYBoolean.TRUE or null
InstallationSymbologyConstants.INSTALLATIONSee SymbologyConstants.INSTALLATION
Equipment MobilitySymbologyConstants.MOBILITYSee SymbologyConstants.MOBILITY
Auxiliary EquipmentSymbologyConstants.AUXILIARY_EQUIPMENTSee SymbologyConstants.AUXILIARY_EQUIPMENT

Note that the installation modifier code indicates that an installation is either a normal installation or a feint/dummy installation. In the latter case, this also sets the modifier key SymbologyConstants.FEINT_DUMMY to Boolean.TRUE. This provides a consistent way to identify feint/dummy modifier status for both units/equipment and installations.

Parameters:
code - the symbol modifier code to parse.
params - a parameter list in which to place the modifier key-value pairs, or null to allocate and return a new parameter list.
Returns:
a parameter list containing the modifier key-value pairs.

parseSymCode

protected String parseSymCode(String symCode)
Parses a symbol code encoded into its individual fields, populating this SymbolCode's fields with the value of each field. Fields that are either not part of the specified symbol code or are unspecified are left unchanged.

Parameters:
symCode - the symbol code to parse. Must be non-null and have length of 15 or greater. Any characters after the 15th character are ignored.
Returns:
null if the symbol code is recognized, otherwise a non-null string listing the unrecognized symbol code fields.

parseTacticalGraphicsSymCode

protected String parseTacticalGraphicsSymCode(String symCode)
Parses a symbol code encoded in the Tactical Graphics coding scheme. Tactical Graphic symbol codes contain the following fields: Coding Scheme, Standard Identity, Category, Status, Function ID, Echelon, Country Code, Order of Battle. All fields except Function ID, Echelon, Country Code and Order of Battle must be non-null.

The Tactical Graphics coding scheme is defined in MIL-STD-2525C table B-I (page 305).

Parameters:
symCode - the symbol code to parse. Must be non-null and have length of 15 or greater. Any characters after the 15th character are ignored.
Returns:
null if the symbol code is recognized, otherwise a non-null string listing the unrecognized symbol elements.

parseUnrecognizedSymCode

protected String parseUnrecognizedSymCode(String symCode)
Returns a error string indicating that the symbol code's scheme is not recognized.

Parameters:
symCode - the unknown symbol code.
Returns:
an error string.

parseWarfightingSymCode

protected String parseWarfightingSymCode(String symCode)
Parses a symbol code encoded in the Warfighting coding scheme. Warfighting symbol codes contain the following fields: Coding Scheme, Standard Identity, Battle Dimension, Status, Function ID, Symbol Modifier, Country Code, Order of Battle. All fields except Function ID, Symbol Modifier, Country Code and Order of Battle must be non-null.

The Warfighting coding scheme is defined in MIL-STD-2525C table A-I (page 51).

Parameters:
symCode - the symbol code to parse. Must be non-null and have length of 15 or greater. Any characters after the 15th character are ignored.
Returns:
null if the symbol code is recognized, otherwise a non-null string listing the unrecognized symbol code fields.

setBattleDimension

public void setBattleDimension(String value)
Specifies this symbol code's Battle Dimension field. A symbol code's Battle Dimension defines the primary mission area for the object being represented. The value must be null or one of the following:

Parameters:
value - the new value for the Battle Dimension field. May be null.

setCategory

public void setCategory(String value)
Specifies this symbol code's Category field. The meaning of a symbol code's Category and the recognized values depend on the specific MIL-STD-2525 symbology scheme the symbol code belongs to:

Tactical Graphics

Stability Operations

Emergency Management

Parameters:
value - the new value for the Category field. May be null.

setCountryCode

public void setCountryCode(String value)
Specifies this symbol code's Country Code field. See ISO 3166-1 for a definition of valid Country Codes. The Country Codes are the same for all symbology schemes that use them.

Parameters:
value - the new value for the Country Code field. May be null.

setEchelon

public void setEchelon(String value)
Specifies this symbol code's Echelon field. A symbol code's Echelon defines the command level of a unit represented by the symbol. The value must be null or one of the following:

Parameters:
value - the new value for the Echelon field. May be null.

setFunctionId

public void setFunctionId(String value)
Specifies this symbol code's Function ID field. The Function IDs are unique to each symbology schemes that uses them, and are defined in each appendix of the MIL-STD-2525C specification:

Parameters:
value - the new value for the Function ID field. May be null.

setGraphicType

public void setGraphicType(String value)
Specifies this symbol code's Graphic Type field. This field is used by graphics in the Meteorological and Oceanographic scheme. Valid values are GRAPHIC_TYPE_POINT, GRAPHIC_TYPE_LINE, GRAPHIC_TYPE_AREA.

Parameters:
value - the new value for the Graphic Type field. May be null.

setOrderOfBattle

public void setOrderOfBattle(String value)
Specifies this symbol code's Order of Battle field. A symbol code's Order of Battle provides additional information about the symbol in the operational environment. The recognized values depend on the specific MIL-STD-2525 symbology scheme the symbol code belongs to:

Warfighting, Signals Intelligence, Stability Operations, Emergency Management

Tactical Graphics

Parameters:
value - the new value for the Order of Battle field. May be null.

setScheme

public void setScheme(String value)
Specifies this symbol code's Coding Scheme field. A symbol code's Coding Scheme defines the specific MIL-STD-2525 symbology set that it belongs to. The value must be null or one of the following:

Parameters:
value - the new value for the Coding Scheme field. May be null.

setStandardIdentity

public void setStandardIdentity(String value)
Specifies this symbol code's Standard Identity field. A symbol code's Standard Identity defines the threat posed by the object being represented. The value must be null or one of the following:

Parameters:
value - the new value for the Standard Identity field. May be null.

setStaticDynamic

public void setStaticDynamic(String value)
Specifies this symbol code's Static/Dynamic field. This field is used by graphics in the Meteorological and Oceanographic scheme. Valid values are STATIC and DYNAMIC.

Parameters:
value - the new value for the Static/Dynamic field. May be null.

setStatus

public void setStatus(String value)
Specifies this symbol code's Status/Operational Condition field. A symbol code's Status defines whether the represented object exists at the time the symbol was generated, or is anticipated to exist in the future. Additionally, a symbol code's Status can define its operational condition. The recognized values depend on the specific MIL-STD-2525 symbology scheme the symbol code belongs to:

Warfighting, Signals Intelligence, Stability Operations

Tactical Graphics

Emergency Management

Parameters:
value - the new value for the Status/Operational Condition field. May be null.

setSymbolModifier

public void setSymbolModifier(String value)
Specifies this symbol code's Symbol Modifier field. The Symbol Modifier defines what graphic symbol modifiers should be displayed around the symbol's icon such as echelon, headquarters, task force, feint/dummy, installation, equipment mobility, and auxiliary equipment. The recognized values depend on the specific MIL-STD-2525 symbology scheme the symbol code belongs to, and are defined in each appendix of the MIL-STD-2525C specification:

Parameters:
value - the new value for the Symbol Modifier field. May be null.

toMaskedString

public String toMaskedString()
Indicates a string representation of the symbol code with positions that do not uniquely identify a particular symbol or graphic replaced with hyphens. This method masks out the Standard Identity, Status, Echelon, Symbol Modifier, Country Code, and Order Of Battle fields. For example, the masked version of "GFGPGPAD---AUSX" is "G-F-GPAD-------".

Returns:
String representation of the symbol code with some fields replaced with hyphens.

toString

public String toString()
Returns the MIL-STD-2525 15-character symbol identification code (SIDC) corresponding to this SymbolCode's current field values. Fields that are not part of this SymbolCode's current Coding Scheme are ignored. Fields that are unspecified or null are replaced with the MIL-STD-2525 unused position character "-". Field values are either padded or trimmed to fit their portion of the symbol code, adding unused characters to pad or ignoring extra characters to trim.

This returns null if this SymbolCode's Coding Scheme is null or unrecognized.

Overrides:
toString in class Object
Returns:
the MIL-STD-2525 15-character symbol identification code (SIDC) corresponding to this SymbolCode, or null if the Coding Scheme is unrecognized.

NASA World Wind