org.mars_sim.msp.simulation.person.ai
Class Skill

java.lang.Object
  extended by org.mars_sim.msp.simulation.person.ai.Skill
All Implemented Interfaces:
java.io.Serializable

public class Skill
extends java.lang.Object
implements java.io.Serializable

The Skill class represents a single skill that a person has. The skill must have a name unique among the person's collection of skills.

See Also:
Serialized Form

Field Summary
static java.lang.String AREOLOGY
           
static java.lang.String BOTANY
           
static java.lang.String COOKING
           
static java.lang.String DRIVING
           
static java.lang.String EVA_OPERATIONS
           
static java.lang.String MATERIALS_SCIENCE
           
static java.lang.String MECHANICS
           
static java.lang.String MEDICAL
           
static java.lang.String TRADING
           
 
Constructor Summary
Skill(java.lang.String name)
          Constructs a Skill object
Skill(java.lang.String name, int level)
          Constructor with level.
 
Method Summary
 int getLevel()
          Returns the level of the skill.
 java.lang.String getName()
          Returns the name of the skill.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DRIVING

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

BOTANY

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

MECHANICS

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

EVA_OPERATIONS

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

AREOLOGY

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

MEDICAL

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

COOKING

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

TRADING

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

MATERIALS_SCIENCE

public static final java.lang.String MATERIALS_SCIENCE
See Also:
Constant Field Values
Constructor Detail

Skill

public Skill(java.lang.String name)
Constructs a Skill object

Parameters:
name - the skill's name

Skill

public Skill(java.lang.String name,
             int level)
Constructor with level.

Parameters:
name - the skill's name.
level - the skill's initial level.
Method Detail

getName

public java.lang.String getName()
Returns the name of the skill.

Returns:
the skill's name

getLevel

public int getLevel()
Returns the level of the skill.

Returns:
the skill's level