A C G I M N P R S T

A

addPart(String) - Method in class nog.Participants
Adds a participant to Participants.

C

clearPart() - Method in class nog.Participants
Clears the list with participants.

G

get_filename() - Method in class nog.Participants
Returns the filename of the file.
get_ht() - Method in class nog.Participants
Returns the Harstable.
getCnt() - Method in class nog.Participants
Returns the number of participants in Participants.
getCnt() - Method in class nog.Participant
Returns the number of participants.
getCountry() - Method in class nog.Participant
Returns the country of the participant.
getHeight() - Method in class nog.Participant
Returns the height of the participant.
getId() - Method in class nog.Participant
Returns the Participants id.
getSex() - Method in class nog.Participant
Returns the sex of the participant.
getSport() - Method in class nog.Participant
Returns the sport of the participant.
getWeight() - Method in class nog.Participant
Returns the weight of the participant.

I

is_num(String) - Method in class nog.Participant
Test if a String contains a number.

M

main(String[]) - Static method in class nog.Participants
The main wich reads the "part.txt"-file and calculats the statistics.

N

nog - package nog
 

P

PartException - exception nog.PartException.
PartException is thrown when some of the participant-data is incorrect.
PartException() - Constructor for class nog.PartException
Defaultconstructor of Exception.
PartException(String) - Constructor for class nog.PartException
Constructor of Exception with String as input.
Participant - class nog.Participant.
Each participant is created and stored as an object of this class.
Participant() - Constructor for class nog.Participant
Default constructor of Participant.
Participant(String) - Constructor for class nog.Participant
Constructor of Participant with one single String.
Participant(String, String, String, String, String, String, String, String) - Constructor for class nog.Participant
Constructor of Participant.
Participants - class nog.Participants.
Contains a number of participants.
Participants() - Constructor for class nog.Participants
Default constructor.
Participants(Participants) - Constructor for class nog.Participants
Constructor wich creats a copy of the Participants.
Participants(String) - Constructor for class nog.Participants
Constructor with the filename as a String as input.

R

run() - Method in class nog.Thread2
Runs this thread.
run() - Method in class nog.Thread3
Runs this thread.
run() - Method in class nog.Thread4
Runs this thread.
run() - Method in class nog.Thread1
Runs this thread.

S

set_all(String, String, String, String, String, String, String, String) - Method in class nog.Participant
Set all data of an Participant.
stat_all() - Method in class nog.Participants
Starts the calculation of the statistics.
stat_country(String) - Method in class nog.Participants
Returns the share of that specific country.
stat_female() - Method in class nog.Participants
Returns the share of female in %.
stat_height() - Method in class nog.Participants
Returns the average height.
stat_men() - Method in class nog.Participants
Returns the share of men in %.
stat_sport(String) - Method in class nog.Participants
Returns the share of that specific sport.
stat_weight() - Method in class nog.Participants
Returns the average weight.

T

Thread1 - class nog.Thread1.
A thread which calculates the country statistics.
Thread1(Participants) - Constructor for class nog.Thread1
Constructor of the thread.
Thread2 - class nog.Thread2.
A thread which calculates the sport statistics.
Thread2(Participants) - Constructor for class nog.Thread2
Constructor of the thread.
Thread3 - class nog.Thread3.
A thread which calculates the sex statistics.
Thread3(Participants) - Constructor for class nog.Thread3
Constructor of the thread.
Thread4 - class nog.Thread4.
A thread which calculates the weight and height statistics.
Thread4(Participants) - Constructor for class nog.Thread4
Constructor of the thread.
toString() - Method in class nog.Participant
Creats a single String of a Participants attributes.

A C G I M N P R S T