|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectRat
public class Rat
Holds information for a rat and its performance in a standard maze.
Constructor Summary | |
---|---|
Rat()
Constructor for objects of class Rat. |
|
Rat(String inRFID,
char inGender,
boolean inVac)
Constructor for objects of class Rat. |
Method Summary | |
---|---|
char |
getGender()
Return the gender of the rat. |
boolean |
getIsVaccinated()
Return the vaccination status of the rat. |
String |
getRFID()
Return the value of the rat's RFID chip identification. |
void |
setGender(char inGender)
Set the gender of the rat to the explicit parameter. |
void |
setIsVaccinated(boolean inVac)
Set the vaccination status of the rat to the explicit parameter. |
void |
setRFID(String inRFID)
Set the rat's RFID chip identification equal to the explicit parameter. |
String |
toString()
Formats a string with rat's number of trials, total time for trials, average time per trial. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Rat()
public Rat(String inRFID, char inGender, boolean inVac)
inRFID
- implanted chip identifier.inNumTrials
- number of trials to criterion.inttlTime
- time for all trials.Method Detail |
---|
public char getGender()
public boolean getIsVaccinated()
public String getRFID()
public void setGender(char inGender)
inGender
- gender of the ratpublic void setIsVaccinated(boolean inVac)
inVac
- vaccination status of the ratpublic void setRFID(String inRFID)
inRFID
- RFID chip of the rat.public String toString()
Rat RFID XXXXXXXXX Gender: X Vaccination status: XXXXXThe XXX's are replaced by actual values. Following is an example:
Rat chip id OH12345 Gender: M Vaccination status: True
toString
in class Object
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |