Class MazeResult

java.lang.Object
  extended by MazeResult

public class MazeResult
extends Object

Provides maze results for a rodent.

Version:
Summer 2014
Author:
Tina Comston

Constructor Summary
MazeResult(Rat inRat)
          Constructor for objects of class MazeResult.
 
Method Summary
 String getActualTime()
          Gets the actual time for the rodent.
 String getContestTime()
          Gets the contest time for the rodent.
 Time getEndTime()
          Gets the end time for the rodent.
 int getNumOfErrors()
          Gets the number of errors for the rodent.
 Rat getRat()
          Gets the rodent.
 Time getStartTime()
          Gets the start time for the rodent.
 void setEndTime(int inHrs, int inMins, int inSecs)
          Sets the end time for the rodent.
 void setNumOfErrors(int inNumOfErrors)
          Sets the number of errors for the rodent.
 void setRat(Rat inRat)
          Sets the rodent.
 void setStartTime(int inHrs, int inMins, int inSecs)
          Sets the start time for the rodent.
 String toString()
          Gets a formatted string with information for the rodent and maze.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MazeResult

public MazeResult(Rat inRat)
Constructor for objects of class MazeResult. default values are: start & end time = default Time object number of errors = 0

Parameters:
inRat - Rat object.
Method Detail

getActualTime

public String getActualTime()
Gets the actual time for the rodent.

Returns:
String The formatted actual time for the rodent.

getContestTime

public String getContestTime()
Gets the contest time for the rodent.

Returns:
String The formatted contest time for the rodent.

getEndTime

public Time getEndTime()
Gets the end time for the rodent.

Returns:
Time The end time of the rodent.

getNumOfErrors

public int getNumOfErrors()
Gets the number of errors for the rodent.

Returns:
int The number of errors of the rodent.

getRat

public Rat getRat()
Gets the rodent.

Returns:
Rat The Rat object.

getStartTime

public Time getStartTime()
Gets the start time for the rodent.

Returns:
Time The start time of the rodent.

setEndTime

public void setEndTime(int inHrs,
                       int inMins,
                       int inSecs)
Sets the end time for the rodent.

Parameters:
inHrs - Hours of the rodent's end time.
inMins - Minutes of the rodent's end time.
inSecs - Seconds of the rodent's end time.

setNumOfErrors

public void setNumOfErrors(int inNumOfErrors)
Sets the number of errors for the rodent.

Parameters:
inNumOfErrors - Number of Errors of the rodent.

setRat

public void setRat(Rat inRat)
Sets the rodent.

Parameters:
inRat - Rat object.

setStartTime

public void setStartTime(int inHrs,
                         int inMins,
                         int inSecs)
Sets the start time for the rodent.

Parameters:
inHrs - Hours of the rodent's start time.
inMins - Minutes of the rodent's start time.
inSecs - Seconds of the rodent's start time.

toString

public String toString()
Gets a formatted string with information for the rodent and maze.

Overrides:
toString in class Object
Returns:
String String with information for rodent and maze.