|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--Acrobat
This class can be used to represent a member of the CSE 142 Acrobat community. In this implementation, such people know how to clap and twirl. They have names and they remember how many times they've clapped and twirled.
| Constructor Summary | |
Acrobat(java.lang.String given,
java.lang.String family)
Create a new Acrobat using the name information provided. |
|
| Method Summary | |
void |
clap(int k)
Clap as instructed. |
int |
getActionCount()
Tell the caller how many things we've done so far. |
int |
getClapCount()
Tell the caller how times we've clapped so far. |
java.lang.String |
getFamilyName()
Tell the caller what our family name is. |
java.lang.String |
getGivenName()
Tell the caller what our given name is. |
int |
getTwirlCount()
Tell the caller how times we've twirled so far. |
void |
twirl(int k)
Twirl around as instructed. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public Acrobat(java.lang.String given,
java.lang.String family)
given - the specific name of this personfamily - the surname or family name of this person| Method Detail |
public void twirl(int k)
k - the number of times to twirlpublic void clap(int k)
k - the number of times to clappublic int getActionCount()
public int getClapCount()
public int getTwirlCount()
public java.lang.String getGivenName()
public java.lang.String getFamilyName()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||