org.mars_sim.msp.simulation.mars
Class Landmark

java.lang.Object
  extended by org.mars_sim.msp.simulation.mars.Landmark
All Implemented Interfaces:
java.io.Serializable

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

The Landmark class represents a surface landmark on virtual Mars. It contains information related to the landmark.

See Also:
Serialized Form

Constructor Summary
Landmark(java.lang.String name, Coordinates location)
          Constructs a landmark object with the given name at the given location.
 
Method Summary
 Coordinates getLandmarkLocation()
          Gets the landmark location.
 java.lang.String getLandmarkName()
          Gets the landmark name.
 void setLandmarkLocation(Coordinates landmarkLocation)
          Sets the landmark location.
 void setLandmarkName(java.lang.String landmarkName)
          Sets the landmark name.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Landmark

public Landmark(java.lang.String name,
                Coordinates location)
Constructs a landmark object with the given name at the given location.

Parameters:
name - name of the landmark
location - location of the landmark
Method Detail

setLandmarkName

public void setLandmarkName(java.lang.String landmarkName)
Sets the landmark name.

Parameters:
landmarkName - name of the landmark

setLandmarkLocation

public void setLandmarkLocation(Coordinates landmarkLocation)
Sets the landmark location.

Parameters:
landmarkLocation - location of the landmark

getLandmarkName

public java.lang.String getLandmarkName()
Gets the landmark name.

Returns:
name of the landmark

getLandmarkLocation

public Coordinates getLandmarkLocation()
Gets the landmark location.

Returns:
location of the landmark