|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object biocell.BioCell brain.NetClient.RobotClient
public class RobotClient
Author: Randall Borck Modified: 11-8-01 Assignment: CS442 Networking chat program. (Prog. assign. #2) Description: Program implements a UDP chat client on port 7000. Hard-coded server ip address is 137.229.114.140.
Constructor Summary | |
---|---|
RobotClient()
|
|
RobotClient(javax.swing.JTextArea response,
javax.swing.JTextField message,
RobotClientListener listener)
|
|
RobotClient(RobotClientListener listener)
|
Method Summary | |
---|---|
void |
actionPerformed(java.awt.event.ActionEvent event)
|
void |
fileSend(java.lang.String filename,
java.lang.String recipient)
|
void |
process(MNSEvent mnEvent)
loads a CNSEvent into a listener |
void |
sendClientEvent(java.lang.String message)
Gets input from user. |
void |
sendClientInform(java.lang.String message)
Gets input from user. |
void |
sendMessage()
Gets input from user. |
protected void |
showComm(java.lang.Object message)
|
void |
startClient()
|
void |
whisperMethod()
Whispers the input to the designated user. |
void |
whoInquire()
Implements the client side of the "WHO" command. |
Methods inherited from class biocell.BioCell |
---|
getCurrentmood, getMoodParam, getstate, setMood, stepEnergy |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RobotClient(javax.swing.JTextArea response, javax.swing.JTextField message, RobotClientListener listener)
public RobotClient(RobotClientListener listener)
public RobotClient()
Method Detail |
---|
public void startClient()
public void process(MNSEvent mnEvent)
MNSListener
process
in interface MNSListener
public void actionPerformed(java.awt.event.ActionEvent event)
actionPerformed
in interface java.awt.event.ActionListener
public void sendMessage()
public void sendClientInform(java.lang.String message)
public void sendClientEvent(java.lang.String message)
protected void showComm(java.lang.Object message)
public void whisperMethod()
public void fileSend(java.lang.String filename, java.lang.String recipient)
public void whoInquire()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |