Overview
Package
Class
Tree
Deprecated
Index
Help
PREV NEXT
FRAMES
NO FRAMES
A
C
G
H
I
M
N
O
P
R
S
T
V
A
actionPerformed(ActionEvent)
- Method in class nog.
AddParticipant
actionPerformed class.
actionPerformed(ActionEvent)
- Method in class nog.
GraphPart
actionPerformed activated when some menu-item is selected.
actionPerformed(ActionEvent)
- Method in class SugarCube.
AddParticipant
actionPerformed class.
actionPerformed(ActionEvent)
- Method in class SugarCube.
ViewParticipant
actionPerformed class.
actionPerformed(ActionEvent)
- Method in class SugarCube.
GUI
actionPerformed activated when some menu-item is selected.
addPart(String)
- Method in class nog.
Participants
Adds a participant to Participants.
AddParticipant
- class nog.
AddParticipant
.
A graphical Frame used when a new Participant shall be added.
AddParticipant
- class SugarCube.
AddParticipant
.
A graphical Frame used when a new Participant shall be added.
AddParticipant(Participants)
- Constructor for class nog.
AddParticipant
Constructor of the addParticipant Frame.
addParticipant(String)
- Method in class SugarCube.
SugarCube
Sends a AddParticipant request to SuperCube.
AddParticipant(SugarCube)
- Constructor for class SugarCube.
AddParticipant
Constructor of the addParticipant Frame.
appendText(String)
- Method in class nog.
GraphPart
A function to add text to the GUI.
appendText(String)
- Method in class SugarCube.
GUI
A function to add text to the GUI.
C
clearPart()
- Method in class nog.
Participants
Removes all the participants.
connect()
- Method in class SugarCube.
SugarCube
Connects to the SuperCube.
Content
- Variable in class CubePacket.
CubePacket
CubePacket
- package CubePacket
CubePacket
- class CubePacket.
CubePacket
.
This is the CubePacket which is sent between the SugarCube and the SuperCube.
CubePacket(String, String)
- Constructor for class CubePacket.
CubePacket
Constructor of the CubePacket.
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
Retrurn the number of participants in Participants.
getCnt()
- Method in class nog.
Participant
Returns the number of participants.
getCnt()
- Method in class SugarCube.
Participant
Returns the number of participants.
getCountry()
- Method in class nog.
Participant
Returns the country of the participant.
getCountry()
- Method in class SugarCube.
Participant
Returns the country of the participant.
getFirstParticipant()
- Method in class nog.
Participants
Returns the participant with nr nr.
getFirstParticipant()
- Method in class SugarCube.
ViewParticipant
Gets the first Participant.
getFirstParticipant()
- Method in class SugarCube.
SugarCube
Sends a GetFirstParticipant request to SuperCube.
getHeight()
- Method in class nog.
Participant
Returns the height of the participant.
getHeight()
- Method in class SugarCube.
Participant
Returns the height of the participant.
getId()
- Method in class nog.
Participant
Returns the Participants id.
getId()
- Method in class SugarCube.
Participant
Returns the Participants id.
getLastParticipant()
- Method in class SugarCube.
SugarCube
Sends a LastParticipant request to SuperCube.
getLastParticipant(String)
- Method in class nog.
Participants
Returns the participant before nr nr.
getNextParticipant()
- Method in class SugarCube.
SugarCube
Sends a NextParticipant request to SuperCube.
getNextParticipant(String)
- Method in class nog.
Participants
Returns the Next participant after nr nr.
getSex()
- Method in class nog.
Participant
Returns the sex of the participant.
getSex()
- Method in class SugarCube.
Participant
Returns the sex of the participant.
getSport()
- Method in class nog.
Participant
Returns the sport of the participant.
getSport()
- Method in class SugarCube.
Participant
Returns the sport of the participant.
GetStatistics()
- Method in class SugarCube.
SugarCube
Sends a statistic request to SuperCube.
getWeight()
- Method in class nog.
Participant
Returns the weight of the participant.
getWeight()
- Method in class SugarCube.
Participant
Returns the weight of the participant.
GraphPart
- class nog.
GraphPart
.
A graphical user interface (GUI) for management of the participants in Participants.
GraphPart()
- Constructor for class nog.
GraphPart
Default constructor.
GUI
- class SugarCube.
GUI
.
A nice looking grapical interface to the SugarCube.
GUI()
- Constructor for class SugarCube.
GUI
Creates the GUI.
H
Head
- Variable in class CubePacket.
CubePacket
I
is_num(String)
- Method in class nog.
Participant
Test if a String contains a number.
is_num(String)
- Method in class SugarCube.
Participant
Test if a String contains a number.
isConnected()
- Method in class SugarCube.
SugarCube
Returns the true if connected, false if not.
M
main(String[])
- Static method in class nog.
SuperCube
Main, starts up the SuperCube.
main(String[])
- Static method in class nog.
Participants
Main, opens the "part.txt" file and calculates statistics.
main(String[])
- Static method in class nog.
GraphPart
Creates the GUI.
main(String[])
- Static method in class SugarCube.
GUI
Main, starts up the SugarCube and its GUI.
main(String[])
- Static method in class SugarCube.
SugarCube
Main, starts up the SugarCube and its GUI.
N
nog
- package nog
O
open
- Variable in class nog.
GraphPart
open
- Variable in class SugarCube.
GUI
P
p
- Variable in class nog.
GraphPart
PartException
- exception nog.
PartException
.
PartException is thrown when some of the participant-data is incorrect.
PartException
- exception SugarCube.
PartException
.
PartException is thrown when some of the participant-data is incorrect.
PartException()
- Constructor for class nog.
PartException
Defaultconstructor of Exception.
PartException()
- Constructor for class SugarCube.
PartException
Defaultconstructor of Exception.
PartException(String)
- Constructor for class nog.
PartException
Constructor of Exception with String as input.
PartException(String)
- Constructor for class SugarCube.
PartException
Constructor of Exception with String as input.
Participant
- class nog.
Participant
.
This class contains information about one participant.
Participant
- class SugarCube.
Participant
.
This class contains information about one participant.
Participant()
- Constructor for class nog.
Participant
Default constructor of Participant.
Participant()
- Constructor for class SugarCube.
Participant
Default constructor of Participant.
Participant(String)
- Constructor for class nog.
Participant
Constructor of Participant with one single String.
Participant(String)
- Constructor for class SugarCube.
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.
Participant(String, String, String, String, String, String, String, String)
- Constructor for class SugarCube.
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
RecivePacket()
- Method in class SugarCube.
SugarCube
Recives a packet from SuperCube.
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
Save()
- Method in class SugarCube.
SugarCube
Sends a Save request to SuperCube.
saveFile()
- Method in class nog.
Participants
Stores the file.
saveFile(String)
- Method in class nog.
Participants
Stores the file with a new filename.
SendPacket(CubePacket)
- Method in class SugarCube.
SugarCube
Sends a packet to SuperCube.
set_all(String, String, String, String, String, String, String, String)
- Method in class nog.
Participant
Set all data of an Participant.
set_all(String, String, String, String, String, String, String, String)
- Method in class SugarCube.
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.
Stat()
- Method in class nog.
Participants
Calculates the statistics and returns it as a String.
statistics_
- Variable in class nog.
Participants
SugarCube
- package SugarCube
SugarCube
- class SugarCube.
SugarCube
.
This is the SugarCube which is communicating with the SuperCube.
SugarCube()
- Constructor for class SugarCube.
SugarCube
SugarCube constructor.
SuperCube
- class nog.
SuperCube
.
This is the SuperCube server.
SuperCube()
- Constructor for class nog.
SuperCube
SuperCube is listening for SugareCubes that want to connect.
T
tf
- Variable in class nog.
GraphPart
tf
- Variable in class SugarCube.
GUI
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.
toString()
- Method in class CubePacket.
CubePacket
toString creats a nice string with the packet-content.
toString()
- Method in class SugarCube.
Participant
Creats a single String of a Participants attributes.
V
ViewParticipant
- class SugarCube.
ViewParticipant
.
A graphical Frame used when a new Participant shall be added.
ViewParticipant(SugarCube)
- Constructor for class SugarCube.
ViewParticipant
Constructor of the addParticipant Frame.
A
C
G
H
I
M
N
O
P
R
S
T
V
Overview
Package
Class
Tree
Deprecated
Index
Help
PREV NEXT
FRAMES
NO FRAMES