Eidola home

org.eidola.test
Class CommandLineInterface

java.lang.Object
  |
  +--java.lang.Thread
        |
        +--org.eidola.test.CommandLineInterface
All Implemented Interfaces:
EventListener, Runnable

public class CommandLineInterface
extends Thread
implements EventListener

A very simplistic command line interface for testing purposes.

Version:
[Development version]
Author:
Paul Cantrell

Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
CommandLineInterface()
           
 
Method Summary
 void clear()
           
 void clear(List commandLine)
           
 void create(List commandLine)
           
 void debug(List commandLine)
           
 void dump(List commandLine)
           
 Container getContainer(int n)
           
 void handleEvent(Event event)
          Handles an event.
 void help(List commandLine)
           
 void history(List commandLine)
           
 Object invoke(List commandLine)
           
 void list(List commandLine)
           
static void main(String[] args)
           
 void notate(List commandLine)
           
 List parseCommandLine(String commandLine)
           
 void run()
           
 String toString()
           
 void wait(List commandLine)
           
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, sleep, sleep, start, stop, stop, suspend, yield
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CommandLineInterface

public CommandLineInterface()
Method Detail

main

public static void main(String[] args)
                 throws Exception

run

public void run()
Overrides:
run in class Thread

parseCommandLine

public List parseCommandLine(String commandLine)
                      throws Throwable

help

public void help(List commandLine)

history

public void history(List commandLine)

list

public void list(List commandLine)

create

public void create(List commandLine)
            throws Exception

dump

public void dump(List commandLine)

debug

public void debug(List commandLine)

wait

public void wait(List commandLine)
          throws Exception

clear

public void clear()

clear

public void clear(List commandLine)

notate

public void notate(List commandLine)
            throws Exception

invoke

public Object invoke(List commandLine)
              throws Throwable

handleEvent

public void handleEvent(Event event)
Description copied from interface: EventListener
Handles an event. Implementations typically filter for specific subclasses of Event.
Specified by:
handleEvent in interface EventListener
Following copied from interface: org.eidola.kernel.event.EventListener
Parameters:
event - The event to handle.

toString

public String toString()
Overrides:
toString in class Thread

getContainer

public Container getContainer(int n)

Eidola home