robot
Class Robot

java.lang.Object
  extended by java.lang.Thread
      extended by biocell.BioThread
          extended by robot.Robot
All Implemented Interfaces:
java.lang.Runnable

public class Robot
extends BioThread

Author:
martin lukac The object on the Top of the Robot it self, provides ways to constuct the robot and so far also some functions that are to be migrated to the NNS and perhaps to brain

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 construct_rules
           
protected  java.lang.String iD
           
static MNScommandQueue mainQueue
           
static MNS motorsystem
           
static NNS sensorsystem
           
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
Robot()
           
 
Method Summary
 void addMNSMonitor(MNSRobotPanel monitor)
           
 void constructRobot(java.io.File descriptor)
          reconstructs the robot according to the describing file
 void execCommand(java.lang.String command)
          executes a command file
 void execScriptNow(java.io.File script)
          executes a command file
static MNS getController()
           
static NNS getSensor()
           
static void main(java.lang.String[] args)
           
 void saveRobot()
           
 void setiD(java.lang.String iD)
          set the id for this robot - of course let's usi it when it is not alone
 void stopScript()
           
 void wake()
          wakes the all connected and tected or defined hardware.
 
Methods inherited from class biocell.BioThread
getCurrentmood, getMoodParam, getstate, setMood, stepEnergy
 
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, run, 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

construct_rules

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

motorsystem

public static MNS motorsystem

sensorsystem

public static NNS sensorsystem

mainQueue

public static MNScommandQueue mainQueue

iD

protected java.lang.String iD
Constructor Detail

Robot

public Robot()
Method Detail

constructRobot

public void constructRobot(java.io.File descriptor)
reconstructs the robot according to the describing file

Parameters:
descriptor - - robot descriptor

saveRobot

public void saveRobot()

wake

public void wake()
wakes the all connected and tected or defined hardware. This might take a while depending on owhat kind of HW and SW modules are used


setiD

public void setiD(java.lang.String iD)
set the id for this robot - of course let's usi it when it is not alone

Parameters:
iD -

addMNSMonitor

public void addMNSMonitor(MNSRobotPanel monitor)
Parameters:
monitor -

execScriptNow

public void execScriptNow(java.io.File script)
executes a command file

Parameters:
script - - CRL script

execCommand

public void execCommand(java.lang.String command)
executes a command file

Parameters:
script - - CRL script

stopScript

public void stopScript()

getSensor

public static NNS getSensor()
Returns:

main

public static void main(java.lang.String[] args)

getController

public static MNS getController()