org.gjt.universe
Class AtmosphereCompositionType

java.lang.Object
  |
  +--org.gjt.universe.Classification
        |
        +--org.gjt.universe.AtmosphereCompositionType
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
AtmosphereCompositionType.CarbonDioxideAtmosphereCompositionType, AtmosphereCompositionType.HydrogenAtmosphereCompositionType, AtmosphereCompositionType.NoneAtmosphereCompositionType, AtmosphereCompositionType.NormalAtmosphereCompositionType

public abstract class AtmosphereCompositionType
extends Classification

See Also:
Serialized Form

Nested Class Summary
static class AtmosphereCompositionType.CarbonDioxideAtmosphereCompositionType
          This standard subclass is used to represent planets which have an atmosphere composed almost entirely of carbon dioxide.
static class AtmosphereCompositionType.HydrogenAtmosphereCompositionType
          This standard subclass is used to represent planets which have an atmosphere composed almost entirely of hydrogen.
static class AtmosphereCompositionType.NoneAtmosphereCompositionType
          This standard subclass is used to represent planets which have such a low surface pressure that they have no appreciable atmosphere.
static class AtmosphereCompositionType.NormalAtmosphereCompositionType
          This standard subclass is used to represent planets which have atmospheric composition ranges which are much like those of Earth.
 
Field Summary
private static java.util.Vector allInstances
           
static AtmosphereCompositionType CARBON_DIOXIDE
           
static float HIGH_NORMAL_N2
           
static float HIGH_NORMAL_O2
           
static AtmosphereCompositionType HYDROGEN
           
static float LOW_NORMAL_N2
           
static float LOW_NORMAL_O2
           
 java.awt.Color myColor
           
static AtmosphereCompositionType NONE
           
static AtmosphereCompositionType NORMAL
           
 
Fields inherited from class org.gjt.universe.Classification
 
Constructor Summary
protected AtmosphereCompositionType(java.lang.String aName, java.lang.String aBackStory, java.awt.Color aColor)
          This constructor is used to construct instances of this class.
 
Method Summary
 java.awt.Color getColor()
          This method returns a color that can be used to indicate the chemical composition of the atmosphere in a graphical user interface.
static AtmosphereCompositionType instanceForMakeup(SimpleAccrete.PlanetaryMakeup aMakeup)
          This class method returns the atmospheric composition type instance which best matches the given planetary make-up.
 
Methods inherited from class org.gjt.universe.Classification
getBackStory, getName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

allInstances

private static java.util.Vector allInstances

NORMAL

public static AtmosphereCompositionType NORMAL

NONE

public static AtmosphereCompositionType NONE

HYDROGEN

public static AtmosphereCompositionType HYDROGEN

CARBON_DIOXIDE

public static AtmosphereCompositionType CARBON_DIOXIDE

LOW_NORMAL_N2

public static float LOW_NORMAL_N2

HIGH_NORMAL_N2

public static float HIGH_NORMAL_N2

LOW_NORMAL_O2

public static float LOW_NORMAL_O2

HIGH_NORMAL_O2

public static float HIGH_NORMAL_O2

myColor

public java.awt.Color myColor
Constructor Detail

AtmosphereCompositionType

protected AtmosphereCompositionType(java.lang.String aName,
                                    java.lang.String aBackStory,
                                    java.awt.Color aColor)
This constructor is used to construct instances of this class. It should not be necessary for callers to invoke this directly, since all atmospheric composition types should be created automatically.

Parameters:
aName - The short localized name of the atmospheric composition type.
aBackStory - A localized description of the atmospheric composition type.
aColor - A color used to indicate the chemical composition of the atmosphere.
Method Detail

instanceForMakeup

public static AtmosphereCompositionType instanceForMakeup(SimpleAccrete.PlanetaryMakeup aMakeup)
This class method returns the atmospheric composition type instance which best matches the given planetary make-up.

Parameters:
aMakeup - A planetary make-up to be matched against.

getColor

public java.awt.Color getColor()
This method returns a color that can be used to indicate the chemical composition of the atmosphere in a graphical user interface.



Copyright © 2001 Universe Dev Team All Rights Reserved.