|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.lang.Thread | +--simulator.Typist
A thread-class that handle the text typist in an
TextField
and send message to the server
Field Summary | |
protected Client |
applet
Contains the instance to the applet |
protected long |
lineId
This is a line identifier used by RTT |
protected boolean |
running
This flag indicates if typist is running |
protected java.io.PrintStream |
sout
This is the output stream where we write on |
protected java.awt.TextField |
window
Contain the line that the client users write |
Fields inherited from class java.lang.Thread |
contextClassLoader,
daemon,
eetop,
group,
inheritedAccessControlContext,
MAX_PRIORITY,
MIN_PRIORITY,
name,
NORM_PRIORITY,
priority,
single_step,
stillborn,
stopThreadPermission,
target,
threadInitNumber,
threadQ,
values |
Constructor Summary | |
Typist(java.net.Socket s,
java.awt.TextField window,
Client applet)
Initilaize object: create new streams and start thread |
Method Summary | |
protected void |
finalize()
This method is provide only for the garbage collection handler for release the not available space |
void |
run()
This only set a variable to comunicate that it's running ok, then exit from thread body becouse the method to call is sendline and
it is done by the Client class |
void |
sendLine()
Send the readed line to the output stream |
Methods inherited from class java.lang.Thread |
|
Methods inherited from class java.lang.Object |
clone,
equals,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
Field Detail |
protected java.io.PrintStream sout
protected java.awt.TextField window
protected boolean running
protected Client applet
protected long lineId
Constructor Detail |
public Typist(java.net.Socket s, java.awt.TextField window, Client applet)
s
- the socket to comunicatewindow
- a TextFiled
where we insert lineapplet
- an applet of the Client type
Method Detail |
public void run()
sendline
and
it is done by the Client
classprotected void finalize() throws java.lang.Throwable
public void sendLine()
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |