|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface MineralMap
Interface for mineral maps of Mars.
| Method Summary | |
|---|---|
void |
destroy()
Prepare object for garbage collection. |
Coordinates |
findRandomMineralLocation(Coordinates startingLocation,
double range)
Finds a random location with mineral concentrations from a starting location and within a distance range. |
Map<String,Double> |
getAllMineralConcentrations(Coordinates location)
Gets all of the mineral concentrations at a given location. |
double |
getMineralConcentration(String mineralType,
Coordinates location)
Gets the mineral concentration at a given location. |
String[] |
getMineralTypeNames()
Gets an array of all mineral type names. |
| Method Detail |
|---|
double getMineralConcentration(String mineralType,
Coordinates location)
mineralType - the mineral type (see MineralMap.java)location - the coordinate location.
Map<String,Double> getAllMineralConcentrations(Coordinates location)
location - the coordinate location.
String[] getMineralTypeNames()
Coordinates findRandomMineralLocation(Coordinates startingLocation,
double range)
startingLocation - the starting location.range - the distance range (km).
void destroy()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||