|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--SugarCube.Participant
This class contains information about one participant.
| Constructor Summary | |
Participant()
Default constructor of Participant. |
|
Participant(java.lang.String s)
Constructor of Participant with one single String. |
|
Participant(java.lang.String id,
java.lang.String name,
java.lang.String country,
java.lang.String sex,
java.lang.String date,
java.lang.String height,
java.lang.String weight,
java.lang.String sport)
Constructor of Participant. |
|
| Method Summary | |
int |
getCnt()
Returns the number of participants. |
java.lang.String |
getCountry()
Returns the country of the participant. |
java.lang.Double |
getHeight()
Returns the height of the participant. |
int |
getId()
Returns the Participants id. |
char |
getSex()
Returns the sex of the participant. |
java.lang.String |
getSport()
Returns the sport of the participant. |
java.lang.Double |
getWeight()
Returns the weight of the participant. |
boolean |
is_num(java.lang.String s)
Test if a String contains a number. |
boolean |
set_all(java.lang.String id,
java.lang.String name,
java.lang.String sex,
java.lang.String country,
java.lang.String date,
java.lang.String height,
java.lang.String weight,
java.lang.String sport)
Set all data of an Participant. |
java.lang.String |
toString()
Creats a single String of a Participants attributes. |
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
| Constructor Detail |
public Participant()
public Participant(java.lang.String id,
java.lang.String name,
java.lang.String country,
java.lang.String sex,
java.lang.String date,
java.lang.String height,
java.lang.String weight,
java.lang.String sport)
throws PartException
id - the id of the participant.name - the name of the participant.contry - the contry where the participnat lives.sex - male(M) or female(F).date - the date when borned(1999/12/31).height - the lenght of the participant.weight - the weight of the participant.sport - the sport the participant is participating in.
public Participant(java.lang.String s)
throws PartException
s - a String with all info(id, name, country, sex, date, height, weight, sport).| Method Detail |
public boolean is_num(java.lang.String s)
s - the String to test.
public boolean set_all(java.lang.String id,
java.lang.String name,
java.lang.String sex,
java.lang.String country,
java.lang.String date,
java.lang.String height,
java.lang.String weight,
java.lang.String sport)
throws PartException
id - the id of the participant.name - the name of the participant.sex - male(M) or female(F).contry - the contry where the participnat lives.date - the date when borned(1999/12/31).height - the lenght of the participant.weight - the weight of the participant.sport - the sport the participant is participating in.public java.lang.String toString()
public int getId()
public int getCnt()
public java.lang.Double getWeight()
public java.lang.Double getHeight()
public char getSex()
public java.lang.String getSport()
public java.lang.String getCountry()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||