Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.alicebot.server.core.util
Class Shell  view Shell download Shell.java

java.lang.Object
  extended byorg.alicebot.server.core.util.Shell

public class Shell
extends java.lang.Object


Nested Class Summary
private  class Shell.NoCommandException
           
private  class Shell.NoSuchCommandableException
           
 
Field Summary
private static java.lang.String BOT_FILES
           
private static java.lang.String BOT_NAME_PREDICATE
           
private  java.lang.String botid
           
private static java.lang.String BOTLIST
           
private  java.lang.String botName
           
private static java.lang.String CLIENT_NAME_PREDICATE
           
private static java.lang.String COMMANDABLES
           
private  java.io.PrintStream consoleDisplay
           
private  java.io.BufferedReader consoleIn
           
private  java.io.PrintStream consolePrompt
           
private static java.lang.String EXIT
           
private static java.lang.String HELP
           
private static java.lang.String[] HELP_TEXT
           
private static java.lang.String HOSTNAME
           
private static java.lang.String LOAD
           
static java.lang.String PROMPT
           
private static java.lang.String ROLL_CHATLOG
           
private static java.lang.String ROLL_TARGETS
           
static java.lang.String SHELL
           
private static boolean SHOW_MESSAGE_FLAGS
           
private static java.lang.String TALKTO
           
private static java.lang.String UNLOAD
           
private static java.lang.String WHO
           
 
Constructor Summary
Shell()
           
Shell(java.io.InputStream inputstream, java.io.PrintStream printstream, java.io.PrintStream printstream1)
           
 
Method Summary
 java.lang.String getCurrentBotID()
           
 void help()
           
 void listBotFiles()
           
private  void listCommandables()
           
 void load(java.lang.String s, java.lang.String s1)
           
private  void printExitMessage()
           
private  void promptConsole(java.lang.String s)
           
 void rollChatLog(java.lang.String s)
           
 void rollTargets()
           
 void run()
           
private  void sendCommand(java.lang.String s)
           
 void showBotList()
           
private  void showConsole(java.lang.String s)
           
private  void showConsole(java.lang.String[] as)
           
private  void showConsole(java.lang.String s, java.lang.String s1)
           
private  void showConsole(java.lang.String s, java.lang.String[] as)
           
 void switchToBot(java.lang.String s)
           
private  void talkto(java.lang.String s)
           
private  void unload(java.lang.String s, java.lang.String s1)
           
private  void who()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

HOSTNAME

private static final java.lang.String HOSTNAME

CLIENT_NAME_PREDICATE

private static final java.lang.String CLIENT_NAME_PREDICATE

BOT_NAME_PREDICATE

private static final java.lang.String BOT_NAME_PREDICATE

PROMPT

public static final java.lang.String PROMPT
See Also:
Constant Field Values

SHOW_MESSAGE_FLAGS

private static final boolean SHOW_MESSAGE_FLAGS

SHELL

public static final java.lang.String SHELL

HELP

private static final java.lang.String HELP
See Also:
Constant Field Values

EXIT

private static final java.lang.String EXIT
See Also:
Constant Field Values

LOAD

private static final java.lang.String LOAD
See Also:
Constant Field Values

UNLOAD

private static final java.lang.String UNLOAD
See Also:
Constant Field Values

BOTLIST

private static final java.lang.String BOTLIST
See Also:
Constant Field Values

TALKTO

private static final java.lang.String TALKTO
See Also:
Constant Field Values

WHO

private static final java.lang.String WHO
See Also:
Constant Field Values

BOT_FILES

private static final java.lang.String BOT_FILES
See Also:
Constant Field Values

ROLL_CHATLOG

private static final java.lang.String ROLL_CHATLOG
See Also:
Constant Field Values

ROLL_TARGETS

private static final java.lang.String ROLL_TARGETS
See Also:
Constant Field Values

COMMANDABLES

private static final java.lang.String COMMANDABLES
See Also:
Constant Field Values

HELP_TEXT

private static final java.lang.String[] HELP_TEXT

consoleIn

private java.io.BufferedReader consoleIn

consoleDisplay

private java.io.PrintStream consoleDisplay

consolePrompt

private java.io.PrintStream consolePrompt

botid

private java.lang.String botid

botName

private java.lang.String botName
Constructor Detail

Shell

public Shell()

Shell

public Shell(java.io.InputStream inputstream,
             java.io.PrintStream printstream,
             java.io.PrintStream printstream1)
Method Detail

run

public void run()

getCurrentBotID

public java.lang.String getCurrentBotID()

promptConsole

private void promptConsole(java.lang.String s)

showConsole

private void showConsole(java.lang.String s)

showConsole

private void showConsole(java.lang.String[] as)

showConsole

private void showConsole(java.lang.String s,
                         java.lang.String s1)

showConsole

private void showConsole(java.lang.String s,
                         java.lang.String[] as)

printExitMessage

private void printExitMessage()

help

public void help()

load

public void load(java.lang.String s,
                 java.lang.String s1)

unload

private void unload(java.lang.String s,
                    java.lang.String s1)

showBotList

public void showBotList()

talkto

private void talkto(java.lang.String s)

switchToBot

public void switchToBot(java.lang.String s)

who

private void who()

listBotFiles

public void listBotFiles()

rollChatLog

public void rollChatLog(java.lang.String s)

rollTargets

public void rollTargets()

listCommandables

private void listCommandables()

sendCommand

private void sendCommand(java.lang.String s)
                  throws Shell.NoCommandException,
                         Shell.NoSuchCommandableException