org.mars_sim.msp.core.science
Class Science

java.lang.Object
  extended by org.mars_sim.msp.core.science.Science
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable

public class Science
extends java.lang.Object
implements java.io.Serializable, java.lang.Comparable

A class representing a field of science.

See Also:
Serialized Form

Field Summary
static java.lang.String AREOLOGY
           
static java.lang.String ASTRONOMY
           
static java.lang.String BIOLOGY
           
static java.lang.String BOTANY
           
static java.lang.String CHEMISTRY
           
static java.lang.String MATHEMATICS
           
static java.lang.String MEDICINE
           
static java.lang.String METEOROLOGY
           
static java.lang.String PHYSICS
           
 
Method Summary
 int compareTo(java.lang.Object o)
          Compares this object with the specified object for order.
 boolean equals(java.lang.Object object)
          Checks if an object is equal to this object.
 java.lang.String getName()
          Gets the name of the field of science.
 int hashCode()
          Gets the hash code value.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

AREOLOGY

public static final java.lang.String AREOLOGY
See Also:
Constant Field Values

ASTRONOMY

public static final java.lang.String ASTRONOMY
See Also:
Constant Field Values

BIOLOGY

public static final java.lang.String BIOLOGY
See Also:
Constant Field Values

BOTANY

public static final java.lang.String BOTANY
See Also:
Constant Field Values

CHEMISTRY

public static final java.lang.String CHEMISTRY
See Also:
Constant Field Values

MATHEMATICS

public static final java.lang.String MATHEMATICS
See Also:
Constant Field Values

MEDICINE

public static final java.lang.String MEDICINE
See Also:
Constant Field Values

METEOROLOGY

public static final java.lang.String METEOROLOGY
See Also:
Constant Field Values

PHYSICS

public static final java.lang.String PHYSICS
See Also:
Constant Field Values
Method Detail

getName

public java.lang.String getName()
Gets the name of the field of science.

Returns:
name.

compareTo

public int compareTo(java.lang.Object o)
Compares this object with the specified object for order.

Specified by:
compareTo in interface java.lang.Comparable
Parameters:
o - the Object to be compared.
Returns:
a negative integer, zero, or a positive integer as this object is less than, equal to, or greater than the specified object.

equals

public boolean equals(java.lang.Object object)
Checks if an object is equal to this object.

Overrides:
equals in class java.lang.Object
Returns:
true if equal

hashCode

public int hashCode()
Gets the hash code value.

Overrides:
hashCode in class java.lang.Object

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object