org.gjt.universe
Class TemperatureType

java.lang.Object
  |
  +--org.gjt.universe.Classification
        |
        +--org.gjt.universe.TemperatureType
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
TemperatureType.CoolTemperatureType, TemperatureType.ExtremeTemperatureType, TemperatureType.GlacialTemperatureType, TemperatureType.HotTemperatureType, TemperatureType.InfernalTemperatureType, TemperatureType.NormalTemperatureType

public abstract class TemperatureType
extends Classification

See Also:
Serialized Form

Nested Class Summary
static class TemperatureType.CoolTemperatureType
          This standard subclass is used to represent planets which have temperature ranges slightly colder than those of Earth.
static class TemperatureType.ExtremeTemperatureType
          This standard subclass is used to represent planets which have temperature ranges entirely above the boiling point of water on Earth.
static class TemperatureType.GlacialTemperatureType
          This standard subclass is used to represent planets which have temperature ranges entirely below the freezing point of water on Earth.
static class TemperatureType.HotTemperatureType
          This standard subclass is used to represent planets which have temperature ranges slightly warmer than those of Earth.
static class TemperatureType.InfernalTemperatureType
          This standard subclass is used to represent planets which have temperature ranges entirely above the boiling point of water on Earth.
static class TemperatureType.NormalTemperatureType
          This standard subclass is used to represent planets which have temperature ranges which are much like those of Earth.
 
Field Summary
private static java.util.Vector allInstances
           
static TemperatureType COOL
           
static float EARTH_AVG_TEMP
           
static float EARTH_MAX_TEMP
           
static float EARTH_MIN_TEMP
           
static TemperatureType EXTREME
           
static TemperatureType GLACIAL
           
static TemperatureType HOT
           
static TemperatureType INFERNO
           
static TemperatureType NORMAL
           
 
Fields inherited from class org.gjt.universe.Classification
 
Constructor Summary
protected TemperatureType(java.lang.String aName, java.lang.String aBackStory)
          This constructor is used to construct instances of this class.
 
Method Summary
static TemperatureType instanceForMakeup(SimpleAccrete.PlanetaryMakeup aMakeup)
          This class method returns the temperature 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 TemperatureType NORMAL

COOL

public static TemperatureType COOL

GLACIAL

public static TemperatureType GLACIAL

HOT

public static TemperatureType HOT

INFERNO

public static TemperatureType INFERNO

EXTREME

public static TemperatureType EXTREME

EARTH_MIN_TEMP

public static float EARTH_MIN_TEMP

EARTH_MAX_TEMP

public static float EARTH_MAX_TEMP

EARTH_AVG_TEMP

public static float EARTH_AVG_TEMP
Constructor Detail

TemperatureType

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

Parameters:
aName - The short localized name of the temperature type.
aBackStory - A localized description of the temperature type.
Method Detail

instanceForMakeup

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

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


Copyright © 2001 Universe Dev Team All Rights Reserved.