|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.mars_sim.msp.simulation.mars.SurfaceFeatures
public class SurfaceFeatures
SurfaceFeatures represents the surface terrain and landmarks of the virtual Mars.
Constructor Summary | |
---|---|
SurfaceFeatures()
Constructor |
Method Summary | |
---|---|
ExploredLocation |
addExploredLocation(Coordinates location,
java.util.Map<java.lang.String,java.lang.Double> estimatedMineralConcentrations,
Settlement settlement)
Adds an explored location. |
java.util.List<ExploredLocation> |
getExploredLocations()
Gets a list of all explored locations on Mars. |
java.util.List |
getLandmarks()
Gets a list of landmarks on Mars. |
MineralMap |
getMineralMap()
Gets the mineral map. |
double |
getSurfaceSunlight(Coordinates location)
Returns a float value representing the current sunlight conditions at a particular location. |
TerrainElevation |
getSurfaceTerrain()
Returns the surface terrain |
boolean |
inDarkPolarRegion(Coordinates location)
Returns true if location is in a dark polar region. |
void |
initializeTransientData()
Initialize transient data in the simulation. |
boolean |
inPolarRegion(Coordinates location)
Checks if location is within a polar region of Mars. |
void |
timePassing(double time)
Time passing in the simulation. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SurfaceFeatures() throws java.lang.Exception
java.lang.Exception
- when error in creating surface features.Method Detail |
---|
public void initializeTransientData() throws java.lang.Exception
java.lang.Exception
- if transient data could not be constructed.public TerrainElevation getSurfaceTerrain()
public double getSurfaceSunlight(Coordinates location)
public boolean inDarkPolarRegion(Coordinates location)
public boolean inPolarRegion(Coordinates location)
location
- the location to check.
public java.util.List getLandmarks()
public MineralMap getMineralMap()
public ExploredLocation addExploredLocation(Coordinates location, java.util.Map<java.lang.String,java.lang.Double> estimatedMineralConcentrations, Settlement settlement)
location
- the location coordinates.estimatedMineralConcentrations
- a map of all mineral types
and their estimated concentrations (0% -100%)settlement
- the settlement the exploring mission is from.
public java.util.List<ExploredLocation> getExploredLocations()
public void timePassing(double time) throws java.lang.Exception
time
- time in millisols
java.lang.Exception
- if error during time.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |