wtanaka.praya
Class PrayaText
java.lang.Object
|
+--wtanaka.praya.PrayaText
- All Implemented Interfaces:
- ProtocolRecipientListener, Pushable
- public class PrayaText
- extends java.lang.Object
- implements Pushable, ProtocolRecipientListener
text mode praya, for testing, maybe even useful.
Return to
or the Praya Homepage
- Version:
- $Name: $ $Date: 2002/01/16 17:24:42 $
- Author:
- $Author: wtanaka $
|
Constructor Summary |
PrayaText(java.io.BufferedReader input,
java.io.PrintWriter output)
This constructor creates a stream-based praya user interface
with the given input and output streams for user interaction. |
| Methods inherited from class java.lang.Object |
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait |
in
private java.io.BufferedReader in
out
private java.io.PrintWriter out
rootFolder
private NormalFolder rootFolder
PROTO_TABLE_SIZE
private static final int PROTO_TABLE_SIZE
m_protoTable
private Protocol[] m_protoTable
m_moduleManager
private ModuleManager m_moduleManager
m_selectedProtocol
private int m_selectedProtocol
INTRO_TEXT
public static final java.lang.String INTRO_TEXT
SPLASH_TEXT
public static final java.lang.String SPLASH_TEXT
tableAllocIndex
int tableAllocIndex
- The next suggested place in the table to look for a space.
m_secretObject
private java.lang.Object m_secretObject
PrayaText
public PrayaText(java.io.BufferedReader input,
java.io.PrintWriter output)
- This constructor creates a stream-based praya user interface
with the given input and output streams for user interaction.
- Parameters:
input - the stream on which to take user commandsoutput - the stream on which to output messags and
responses to commands.
printProtoList
public void printProtoList()
newProtocol
public void newProtocol(java.lang.String className)
deleteProtocol
public void deleteProtocol(java.lang.String idString)
addModule
public void addModule(java.lang.String command)
deleteModule
public void deleteModule(java.lang.String moduleArg)
receiveMessage
public void receiveMessage(Message m)
- Specified by:
receiveMessage in interface Pushable
recipientAppeared
public void recipientAppeared(ProtocolRecipientEvent evt)
- Specified by:
recipientAppeared in interface ProtocolRecipientListener
recipientDisappeared
public void recipientDisappeared(ProtocolRecipientEvent evt)
- Specified by:
recipientDisappeared in interface ProtocolRecipientListener
recipientStatusChange
public void recipientStatusChange(ProtocolRecipientEvent evt)
- Specified by:
recipientStatusChange in interface ProtocolRecipientListener
startProtocol
public void startProtocol(java.lang.String idString)
stopProtocol
public void stopProtocol(java.lang.String idString)
configure
public void configure(int protoID)
throws java.io.IOException
run
public void run()
- The main loop for PrayaText resides within this method, which
loops, reading input from the input stream and giving responses
and printing messages to the output stream.