|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.gjt.universe.Classification | +--org.gjt.universe.AtmosphereType
Nested Class Summary | |
static class |
AtmosphereType.NoneAtmosphereType
This standard subclass is used to represent non-existent atmospheres (i.e. |
static class |
AtmosphereType.NormalAtmosphereType
This standard subclass is used to represent atmospheres which are much like that of Earth. |
Field Summary | |
private static java.util.Vector |
allInstances
|
private AtmosphereCompositionType |
myAtmosphereCompositionType
|
private SurfacePressureType |
mySurfacePressureType
|
private WeatherType |
myWeatherType
|
static AtmosphereType |
NONE
|
static AtmosphereType |
NORMAL
|
Fields inherited from class org.gjt.universe.Classification |
|
Constructor Summary | |
protected |
AtmosphereType(java.lang.String aName,
java.lang.String aBackStory,
SurfacePressureType aSurfacePressureType,
WeatherType aWeatherType,
AtmosphereCompositionType aCompositionType)
This constructor is used to construct instances of this class. |
Method Summary | |
private static java.lang.String |
compositeName(SurfacePressureType aSurfacePressureType,
WeatherType aWeatherType,
AtmosphereCompositionType aCompositionType)
This method returns the briefest possible name describing the particular collection of sub-classifications. |
AtmosphereCompositionType |
getAtmosphereCompositionType()
This method returns the classification of the gasses that make-up the atmosphere. |
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. |
SurfacePressureType |
getSurfacePressureType()
This method returns the classification of the atmospheric surface pressure. |
WeatherType |
getWeatherType()
This method returns the classification of the atmosphere's weather. |
static AtmosphereType |
instanceForMakeup(SimpleAccrete.PlanetaryMakeup aMakeup)
This class method returns the planet type instance which best matches the given planetary make-up. |
static AtmosphereType |
sharedInstance(SurfacePressureType aSurfacePressureType,
WeatherType aWeatherType,
AtmosphereCompositionType aCompositionType)
This method returns the shared instance which matches the given set of subclassifications, creating the new instance if necessary. |
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 |
private static java.util.Vector allInstances
public static AtmosphereType NORMAL
public static AtmosphereType NONE
private SurfacePressureType mySurfacePressureType
private WeatherType myWeatherType
private AtmosphereCompositionType myAtmosphereCompositionType
Constructor Detail |
protected AtmosphereType(java.lang.String aName, java.lang.String aBackStory, SurfacePressureType aSurfacePressureType, WeatherType aWeatherType, AtmosphereCompositionType aCompositionType)
aName
- The short localized name of the planet type.aBackStory
- A localized description of the planet type.Method Detail |
public static AtmosphereType instanceForMakeup(SimpleAccrete.PlanetaryMakeup aMakeup)
aMakeup
- A planetary make-up to be matched against.public static AtmosphereType sharedInstance(SurfacePressureType aSurfacePressureType, WeatherType aWeatherType, AtmosphereCompositionType aCompositionType)
private static java.lang.String compositeName(SurfacePressureType aSurfacePressureType, WeatherType aWeatherType, AtmosphereCompositionType aCompositionType)
public SurfacePressureType getSurfacePressureType()
public WeatherType getWeatherType()
public AtmosphereCompositionType getAtmosphereCompositionType()
public java.awt.Color getColor()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |