/**********
* Circle.java- retrieves various attributes of 
* a circle
*
* @author Travis Tucker
* @version 9/17/08
**********/
public class Circle
{
  private double radius;
  /******
  * Circle- takes in an outside 
  * double and sets the radius to it
  *
  * @param a double that the radius will be set to
  ******/
  public Circle  (double r)
  {
    radius = r;
  }//end constructor
  
  /*****
  * getArea-this method finds the area of
  * a circle
  *
  * @return the area of the circle
  *****/
  public double getArea()
  { 
    return Math.PI * radius * radius;  
  }//end getArea
  
  /*****
  * getRadius-this method finds the radius of
  * a circle
  *
  * @return the radius of the circle
  *****/  
  public double getRadius()
  {
     return radius;
  }//end getRadius
  
  /*****
  * toString-this method gives the area of
  * a circle as well as the radius
  *
  * @return the area and radius of the circle
  *****/
  public String toString()
  {
  	 return"The area of the circle is: "+getArea()+
	 "\nAnd the radius is: "+getRadius();
  }//end toString
  
  /*****
  * equals-this method tells if the select circle
  * is equal to another give circle
  *
  * @param another circle
  * @return whether the circles are equal
  *****/
  public boolean equals(Circle otherCircle)
  {
  	 boolean equal;
	 
  	 if(this.radius == otherCircle.radius )
  		equal = true;
	 else
	 	equal = false;
  
  	 return equal;
  }//end equals
  
  /*****
  * greaterThan-this method tells if the select circle
  * is greater than another give circle
  *
  * @param another circle
  * @return whether the circle is greater than the other
  *****/
  public boolean greaterThan(Circle otherCircle)
  {
  	 boolean greater;
	 
  	 if(this.radius > otherCircle.radius )
  		greater = true;
	 else
	 	greater = false;
  
  	 return greater;
  }//end greaterThan
  
 }//end Class