Class performance


public class performance
extends java.lang.Object

Field Summary

private String
feedback
private String
localIP
private String
ok
private String
pwd
private Vector
unitStore
private String
user

Constructor Summary

performance()
Constructor for class

Method Summary

void
addUnit(unit u)
Adds a Unit-Object to the unitStore-Vector
String
getFeedback()
gives back feedback
int
getValuation()
sum all reliabilty values in the unitStore-Vector add one for 100% else reduce one
int
lastDifficulty()
difficulty of the last unitObject
long
lastTime()
time of the last unitObject
double
overallReliability()
sum all reliabilty values in the unitStore-Vector
long
overallTime()
sum the time of of all unit-objects in the unit-vector store
void
send()
void
setUserPWD(String user, String pwd)
set User and PWD
void
setlocalIP(String localIP)
set localIP

Field Details

feedback

private String feedback

localIP

private String localIP

ok

private String ok

pwd

private String pwd

unitStore

private Vector unitStore

user

private String user

Constructor Details

performance

public performance()
Constructor for class

Method Details

addUnit

public void addUnit(unit u)
Adds a Unit-Object to the unitStore-Vector
Parameters:

getFeedback

public String getFeedback()
gives back feedback
Parameters:
Returns:
String

getValuation

public int getValuation()
sum all reliabilty values in the unitStore-Vector add one for 100% else reduce one
Parameters:
Returns:

lastDifficulty

public int lastDifficulty()
difficulty of the last unitObject
Parameters:
Returns:
the difficulty level of the last unit object

lastTime

public long lastTime()
time of the last unitObject
Parameters:
Returns:
the time in milliseconds of the last unit object

overallReliability

public double overallReliability()
sum all reliabilty values in the unitStore-Vector
Parameters:
Returns:
average of all reliabilty-values

overallTime

public long overallTime()
sum the time of of all unit-objects in the unit-vector store
Parameters:
Returns:
the time all units needed together in milliseconds

send

public void send()

setUserPWD

public void setUserPWD(String user,
                       String pwd)
set User and PWD
Parameters:

setlocalIP

public void setlocalIP(String localIP)
set localIP
Parameters: