|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectSERVERVERHALTEN
public class SERVERVERHALTEN
Diese Klasse implementiert das Serververhalten, das im Zustandsdiagramm modelliert wurde
Field Summary | |
---|---|
private static int |
gefragt
Konstante für Zustand gefragt |
private static int |
gegruesst
Konstante für Zustand gegrüßt |
private static int |
nochmal
Konstante für Zustand nochmal |
private static int |
wartend
Konstante für Zustand wartend |
private int |
zustand
speichert den aktuellen Zustand |
Constructor Summary | |
---|---|
SERVERVERHALTEN()
|
Method Summary | |
---|---|
java.lang.String |
HoleAntwort(java.lang.String textvomclient)
ermittelt die zu sendende Antwort in Abhängigkeit des Zustands und des Textes, der vom Client übermittelt wurde |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static final int wartend
private static final int gegruesst
private static final int gefragt
private static final int nochmal
private int zustand
Constructor Detail |
---|
public SERVERVERHALTEN()
Method Detail |
---|
public java.lang.String HoleAntwort(java.lang.String textvomclient)
textvomclient
- der Text, der vom Client an den Server gesendet wurde.
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |