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 Sourceforge or the Praya Homepage

Version:
$Name: $ $Date: 2002/01/16 17:24:42 $
Author:
$Author: wtanaka $

Field Summary
private  java.io.BufferedReader in
           
static java.lang.String INTRO_TEXT
           
private  ModuleManager m_moduleManager
           
private  Protocol[] m_protoTable
           
private  java.lang.Object m_secretObject
           
private  int m_selectedProtocol
           
private  java.io.PrintWriter out
           
private static int PROTO_TABLE_SIZE
           
private  NormalFolder rootFolder
           
static java.lang.String SPLASH_TEXT
           
(package private)  int tableAllocIndex
          The next suggested place in the table to look for a space.
 
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.
 
Method Summary
 void addModule(java.lang.String command)
           
 void configure(int protoID)
           
 void deleteModule(java.lang.String moduleArg)
           
 void deleteProtocol(java.lang.String idString)
           
 void newProtocol(java.lang.String className)
           
 void printProtoList()
           
 void receiveMessage(Message m)
           
 void recipientAppeared(ProtocolRecipientEvent evt)
           
 void recipientDisappeared(ProtocolRecipientEvent evt)
           
 void recipientStatusChange(ProtocolRecipientEvent evt)
           
 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.
 void startProtocol(java.lang.String idString)
           
 void stopProtocol(java.lang.String idString)
           
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

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 commands
output - the stream on which to output messags and responses to commands.
Method Detail

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.