brbrain
Class BRBrainShell

java.lang.Object
  extended by brbrain.BRBrainShell

public class BRBrainShell
extends java.lang.Object

Bioloid Remote Brain scheme shell.

Copyright (C) 2007 Marsette A. Vona, III

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.

Author:
Marsette (Marty) A. Vona, III

Field Summary
static java.lang.String BANNER
          startup banner
protected  BRBrain brBrain
          the BRBrain
private static java.lang.String cvsid
           
protected  jscheme.JScheme js
          the JScheme interpreter
static java.lang.String PROMPT
          shell prompt
static java.lang.String RBRAIN_SHELL_API
          the scheme bindings for the api
static java.lang.String RBRAIN_SHELL_EXTRA
          the scheme bindings for the extra stuff
static java.lang.String USAGE
          command line usage message
 
Constructor Summary
BRBrainShell(BRBrain brBrain)
          create a new shell on an existing BRBrain
BRBrainShell(java.io.File port)
          create a new shell maing a new BRBrain connected via a file
BRBrainShell(java.lang.String portName, int baudRate)
          create a new shell maing a new BRBrain connected with RXTX
 
Method Summary
protected  void initJScheme()
          initialize JScheme
protected  void loadJSchemeFile(java.lang.String fileName)
          load a scheme file in the interpreter
static void main(java.lang.String[] argv)
          command line driver, see USAGE
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

cvsid

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

PROMPT

public static final java.lang.String PROMPT
shell prompt

See Also:
Constant Field Values

BANNER

public static final java.lang.String BANNER
startup banner

See Also:
Constant Field Values

USAGE

public static final java.lang.String USAGE
command line usage message

See Also:
Constant Field Values

RBRAIN_SHELL_API

public static final java.lang.String RBRAIN_SHELL_API
the scheme bindings for the api

See Also:
Constant Field Values

RBRAIN_SHELL_EXTRA

public static final java.lang.String RBRAIN_SHELL_EXTRA
the scheme bindings for the extra stuff

See Also:
Constant Field Values

brBrain

protected BRBrain brBrain
the BRBrain


js

protected jscheme.JScheme js
the JScheme interpreter

Constructor Detail

BRBrainShell

public BRBrainShell(java.lang.String portName,
                    int baudRate)
             throws java.io.IOException,
                    java.lang.InterruptedException
create a new shell maing a new BRBrain connected with RXTX

Throws:
java.io.IOException
java.lang.InterruptedException

BRBrainShell

public BRBrainShell(java.io.File port)
             throws java.io.IOException,
                    java.lang.InterruptedException
create a new shell maing a new BRBrain connected via a file

Throws:
java.io.IOException
java.lang.InterruptedException

BRBrainShell

public BRBrainShell(BRBrain brBrain)
             throws java.io.IOException
create a new shell on an existing BRBrain

Throws:
java.io.IOException
Method Detail

initJScheme

protected void initJScheme()
                    throws java.io.IOException
initialize JScheme

Throws:
java.io.IOException

loadJSchemeFile

protected void loadJSchemeFile(java.lang.String fileName)
                        throws java.io.IOException
load a scheme file in the interpreter

Throws:
java.io.IOException

main

public static void main(java.lang.String[] argv)
                 throws java.io.IOException,
                        java.lang.InterruptedException
command line driver, see USAGE

Throws:
java.io.IOException
java.lang.InterruptedException