org.mars_sim.msp.simulation.vehicle
Class MobileLaboratory

java.lang.Object
  extended by org.mars_sim.msp.simulation.vehicle.MobileLaboratory
All Implemented Interfaces:
java.io.Serializable, Lab

public class MobileLaboratory
extends java.lang.Object
implements Lab, java.io.Serializable

The MobileLaboratory class represents the research laboratory in a vehicle.

See Also:
Serialized Form

Method Summary
 void addResearcher()
          Adds a researcher to the laboratory.
 int getLaboratorySize()
          Gets the laboratory size.
 int getResearcherNum()
          Gets the number of people currently researching in laboratory.
 int getTechnologyLevel()
          Gets the technology level of the laboratory (units defined later)
 java.lang.String[] getTechSpecialities()
          Gets the lab's science specialities as an array of Strings
 boolean hasSpeciality(java.lang.String speciality)
          Checks to see if the laboratory has a given tech speciality.
 void removeResearcher()
          Removes a researcher from the laboratory.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getLaboratorySize

public int getLaboratorySize()
Gets the laboratory size. This is the number of researchers supportable at any given time.

Specified by:
getLaboratorySize in interface Lab
Returns:
the size of the laboratory (in researchers).

getTechnologyLevel

public int getTechnologyLevel()
Gets the technology level of the laboratory (units defined later)

Specified by:
getTechnologyLevel in interface Lab
Returns:
the technology level laboratory (units defined later)

getTechSpecialities

public java.lang.String[] getTechSpecialities()
Gets the lab's science specialities as an array of Strings

Specified by:
getTechSpecialities in interface Lab
Returns:
the lab's science specialities as an array of Strings

hasSpeciality

public boolean hasSpeciality(java.lang.String speciality)
Checks to see if the laboratory has a given tech speciality.

Specified by:
hasSpeciality in interface Lab
Returns:
true if lab has tech speciality

getResearcherNum

public int getResearcherNum()
Gets the number of people currently researching in laboratory.

Specified by:
getResearcherNum in interface Lab
Returns:
number of researchers

addResearcher

public void addResearcher()
                   throws java.lang.Exception
Adds a researcher to the laboratory.

Specified by:
addResearcher in interface Lab
Throws:
java.lang.Exception - if person cannot be added.

removeResearcher

public void removeResearcher()
                      throws java.lang.Exception
Removes a researcher from the laboratory.

Specified by:
removeResearcher in interface Lab
Throws:
java.lang.Exception - if person cannot be removed.