de.heineken.studienarbeit

Class Liste


public class Liste
extends LinkedList

Subclass from linked list saves the algorithm/buffer combinations for later sending

Constructor Summary

Liste()
Constructor

Method Summary

String
allesenden(String id, String pwd)
sends all the storing objects to the server.
private Information
suche(String aid, int puffer)
Looks for a special object marked as the given Applet ID aid
int
zaehlefalsch(String aid, int buffer)
The method changes the storing object in the case a wrong answer was issued.
int
zaehlerichtig(String aid, int buffer, int hzeit)
The method changes the storing object in the case a correct answer was issued.

Constructor Details

Liste

public Liste()
Constructor

Method Details

allesenden

public String allesenden(String id,
                         String pwd)
sends all the storing objects to the server.
Parameters:
pwd - the user's password

suche

private Information suche(String aid,
                          int puffer)
Looks for a special object marked as the given Applet ID aid
Parameters:
aid - Applet ID
puffer - size of the buffer

zaehlefalsch

public int zaehlefalsch(String aid,
                        int buffer)
The method changes the storing object in the case a wrong answer was issued.
Parameters:
aid - Appletid
buffer - buffersize

zaehlerichtig

public int zaehlerichtig(String aid,
                         int buffer,
                         int hzeit)
The method changes the storing object in the case a correct answer was issued.
Parameters:
aid - Applet ID
buffer - size of the buffer
hzeit - time which was required to enter this answer
Returns:
returns the new credits