multitool
Class MultiTool

java.lang.Object
  extended by java.lang.Thread
      extended by multitool.MultiTool
All Implemented Interfaces:
java.lang.Runnable, MultiClientListener

public class MultiTool
extends java.lang.Thread
implements MultiClientListener

Author:
Martin Lukac This is the main class of a single robot It provides tools and methods to add, remove and communicarte with members of the robot Note: this CNS, CNSRobotParts and subsequent devices have all command queues. This allows to generate certain type of coherence and a certain level of decoherence heheheheh enjoy

Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler
 
Field Summary
static java.lang.String ACTIVE_MODE
           
static java.lang.String IDLE_MODE
           
static java.lang.String SEND_MODE
           
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
MultiTool(java.awt.event.ActionListener listener)
          Default Constructor this assusres now a order of different devices.
 
Method Summary
 void addClient()
           
 void executeGroupScript()
          The only public method to execute commands from a external parent such as the CNS executes a command if it exists with the set of parameters
 void multiCommand(MultiClientEvent ccEvent)
           
 void process(java.io.File f)
           
 void run()
          overriden from Thread
 void sendFiles()
          Each file loaded like this is fed COMPLETE to the brain careful with this
 void showComm(java.lang.String m)
           
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

SEND_MODE

public static java.lang.String SEND_MODE

ACTIVE_MODE

public static java.lang.String ACTIVE_MODE

IDLE_MODE

public static java.lang.String IDLE_MODE
Constructor Detail

MultiTool

public MultiTool(java.awt.event.ActionListener listener)
Default Constructor this assusres now a order of different devices. This has to be imporved in order to allow a bigger freedom of commands

Method Detail

multiCommand

public void multiCommand(MultiClientEvent ccEvent)
Specified by:
multiCommand in interface MultiClientListener

showComm

public void showComm(java.lang.String m)
Parameters:
m -

addClient

public void addClient()

sendFiles

public void sendFiles()
Each file loaded like this is fed COMPLETE to the brain careful with this

Parameters:
commandFile - - loads a command file to the CNS

executeGroupScript

public void executeGroupScript()
The only public method to execute commands from a external parent such as the CNS executes a command if it exists with the set of parameters

Parameters:
comm - - name of the command
argument - - argument to the command

process

public void process(java.io.File f)
Parameters:
f -

run

public void run()
overriden from Thread

Specified by:
run in interface java.lang.Runnable
Overrides:
run in class java.lang.Thread