general
Enum Parameter

java.lang.Object
  extended by java.lang.Enum<Parameter>
      extended by general.Parameter
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<Parameter>

public enum Parameter
extends java.lang.Enum<Parameter>

Parameter class, includes all parameter info. Constructor.

Version:
1
Author:
Potkuri-group

Enum Constant Summary
ColorAlert
          Plane alert color.
ColorNormal
          Plane normal color.
DataDir
          Source directory of weather data.
DBZstormSensitivity
          Minimum noticed storm on dBZ -scale, should be between 0-50.
Debug
          Debug mode.
Demo
          Demo mode.
GraphHeight
          Graph height.
GraphicsEngineArcpointsColor
          ArcPoints render color.
GraphicsEngineArrivalTreeColor
          ArrivalTree render color.
GraphWidth
          Graph width.
JarFile
          If the data will be found in jar file completely.
LocationCornerLatitude
          The latitude of map's corner.
LocationCornerLongitude
          The longitude of map's corner.
MediaDir
          Media directory.
MinSafeDistance
          Minimum safe distance between paths.
NoiseFilterSensitivity
          Radar image filter, only values between 0-6 are allowed.
NumberOfStartPoints
          Number of prospected arrival points.
PlaneCreateInterval
          How often plane(s) is/are created.
PlaneCreateMultiplier
          Plane create multiplier.
PlaneMaximumSpeed
          Maximum speed of Plane.
PlaneMinimumSpeed
          Maximum speed of Plane.
PlaneMinSafeDistance
          Minimum safe distance between planes.
ProgramDate
          Date of last production version.
ProgramVersion
          Program version.
RenderAirspace
          Render airspace.
RenderArcpoints
          Render arc points.
RenderArrivalTree
          Render arrival tree.
RenderPlaneAsTriangle
          Render plane as triangle if true, as circle if false.
RenderPlanePath
          Render plane path.
SectorEndDeg
          Arriving sector end.
SectorStartDeg
          Arriving sector start.
StartDelay
          Start delay in milliseconds.
StormSafetyDistance
          Safety zone distance for storms (how many graph nodes).
TimerInterval
          Timer value in milliseconds.
Title
          Title of the program.
UpdateIntervalOfAirspace
          Update interval of map.
UpdateIntervalOfGraphics
          Update interval of map.
UpdateIntervalOfMap
          Update interval of map.
WeatherDataFile
          Data file name, which contains a list of PGM-images.
WeatherDataType
          Source of weather data type.
WeathermapCornerBackgroudcolor
          Background color of corner.
WeathermapHeight
          Height of the weather map.
WeathermapRadarBackgroudcolor
          Background color of radar area.
WeathermapRenderHeight
          Render height.
WeathermapRenderWidth
          Render width.
WeathermapWidth
          Width of the weather map.
WindowHeight
          Height of the display window.
WindowWidth
          Width of the display window.
 
Field Summary
private static java.util.Map<java.lang.String,Parameter> LOOKUP
          Map function.
private  java.lang.String paramName
          Parameter name string.
private  java.lang.String paramValue
          Parameter value string.
 
Method Summary
static Parameter get(java.lang.String paramName)
          Get Parameter by its name.
 java.lang.String getParameterName()
          Get parameter name.
 java.lang.String getParameterValue()
          Get parameter value.
 boolean setParameterValue(java.lang.String pValue)
          Set parameter value.
static Parameter valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static Parameter[] 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, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

ColorAlert

public static final Parameter ColorAlert
Plane alert color.


ColorNormal

public static final Parameter ColorNormal
Plane normal color.


DataDir

public static final Parameter DataDir
Source directory of weather data.


DBZstormSensitivity

public static final Parameter DBZstormSensitivity
Minimum noticed storm on dBZ -scale, should be between 0-50.


Debug

public static final Parameter Debug
Debug mode.


Demo

public static final Parameter Demo
Demo mode.


GraphHeight

public static final Parameter GraphHeight
Graph height.


GraphicsEngineArcpointsColor

public static final Parameter GraphicsEngineArcpointsColor
ArcPoints render color. Value must be between 0-255.


GraphicsEngineArrivalTreeColor

public static final Parameter GraphicsEngineArrivalTreeColor
ArrivalTree render color. Value must be between 0-255.


GraphWidth

public static final Parameter GraphWidth
Graph width.


JarFile

public static final Parameter JarFile
If the data will be found in jar file completely.


LocationCornerLatitude

public static final Parameter LocationCornerLatitude
The latitude of map's corner.


LocationCornerLongitude

public static final Parameter LocationCornerLongitude
The longitude of map's corner.


MediaDir

public static final Parameter MediaDir
Media directory.


MinSafeDistance

public static final Parameter MinSafeDistance
Minimum safe distance between paths.


NoiseFilterSensitivity

public static final Parameter NoiseFilterSensitivity
Radar image filter, only values between 0-6 are allowed.


NumberOfStartPoints

public static final Parameter NumberOfStartPoints
Number of prospected arrival points.


PlaneCreateInterval

public static final Parameter PlaneCreateInterval
How often plane(s) is/are created.


PlaneCreateMultiplier

public static final Parameter PlaneCreateMultiplier
Plane create multiplier.


PlaneMaximumSpeed

public static final Parameter PlaneMaximumSpeed
Maximum speed of Plane.


PlaneMinimumSpeed

public static final Parameter PlaneMinimumSpeed
Maximum speed of Plane.


PlaneMinSafeDistance

public static final Parameter PlaneMinSafeDistance
Minimum safe distance between planes. (nmi)


ProgramDate

public static final Parameter ProgramDate
Date of last production version.


ProgramVersion

public static final Parameter ProgramVersion
Program version.


RenderAirspace

public static final Parameter RenderAirspace
Render airspace.


RenderArcpoints

public static final Parameter RenderArcpoints
Render arc points.


RenderArrivalTree

public static final Parameter RenderArrivalTree
Render arrival tree.


RenderPlaneAsTriangle

public static final Parameter RenderPlaneAsTriangle
Render plane as triangle if true, as circle if false.


RenderPlanePath

public static final Parameter RenderPlanePath
Render plane path.


SectorEndDeg

public static final Parameter SectorEndDeg
Arriving sector end.


SectorStartDeg

public static final Parameter SectorStartDeg
Arriving sector start.


StartDelay

public static final Parameter StartDelay
Start delay in milliseconds. This guarantee that graphics get enough computer time when construct window.


StormSafetyDistance

public static final Parameter StormSafetyDistance
Safety zone distance for storms (how many graph nodes).


TimerInterval

public static final Parameter TimerInterval
Timer value in milliseconds.


Title

public static final Parameter Title
Title of the program.


UpdateIntervalOfAirspace

public static final Parameter UpdateIntervalOfAirspace
Update interval of map. This value should always be 1


UpdateIntervalOfGraphics

public static final Parameter UpdateIntervalOfGraphics
Update interval of map. This value should always be 1


UpdateIntervalOfMap

public static final Parameter UpdateIntervalOfMap
Update interval of map. This value should always be 10


WeatherDataFile

public static final Parameter WeatherDataFile
Data file name, which contains a list of PGM-images.


WeatherDataType

public static final Parameter WeatherDataType
Source of weather data type.


WeathermapCornerBackgroudcolor

public static final Parameter WeathermapCornerBackgroudcolor
Background color of corner. Value must be between 0-255.


WeathermapHeight

public static final Parameter WeathermapHeight
Height of the weather map.


WeathermapRadarBackgroudcolor

public static final Parameter WeathermapRadarBackgroudcolor
Background color of radar area. Value must be between 0-255.


WeathermapRenderHeight

public static final Parameter WeathermapRenderHeight
Render height.


WeathermapRenderWidth

public static final Parameter WeathermapRenderWidth
Render width.


WeathermapWidth

public static final Parameter WeathermapWidth
Width of the weather map.


WindowHeight

public static final Parameter WindowHeight
Height of the display window.


WindowWidth

public static final Parameter WindowWidth
Width of the display window.

Field Detail

LOOKUP

private static final java.util.Map<java.lang.String,Parameter> LOOKUP
Map function.


paramName

private java.lang.String paramName
Parameter name string.


paramValue

private java.lang.String paramValue
Parameter value string.

Method Detail

get

public static Parameter get(java.lang.String paramName)
Get Parameter by its name.

Parameters:
paramName - Parameters name
Returns:
parameter name

getParameterName

public java.lang.String getParameterName()
Get parameter name.

Returns:
parameter name.

getParameterValue

public java.lang.String getParameterValue()
Get parameter value.

Returns:
Parameter value

setParameterValue

public boolean setParameterValue(java.lang.String pValue)
Set parameter value.

Parameters:
pValue - Parameters value
Returns:
succeed

valueOf

public static Parameter valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null

values

public static Parameter[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (Parameter c : Parameter.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared