|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectbrbrain.BRBrainShell
public class BRBrainShell
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.
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 |
---|
private static final java.lang.String cvsid
public static final java.lang.String PROMPT
public static final java.lang.String BANNER
public static final java.lang.String USAGE
public static final java.lang.String RBRAIN_SHELL_API
public static final java.lang.String RBRAIN_SHELL_EXTRA
protected BRBrain brBrain
protected jscheme.JScheme js
Constructor Detail |
---|
public BRBrainShell(java.lang.String portName, int baudRate) throws java.io.IOException, java.lang.InterruptedException
BRBrain
connected with RXTX
java.io.IOException
java.lang.InterruptedException
public BRBrainShell(java.io.File port) throws java.io.IOException, java.lang.InterruptedException
BRBrain
connected via a file
java.io.IOException
java.lang.InterruptedException
public BRBrainShell(BRBrain brBrain) throws java.io.IOException
BRBrain
java.io.IOException
Method Detail |
---|
protected void initJScheme() throws java.io.IOException
java.io.IOException
protected void loadJSchemeFile(java.lang.String fileName) throws java.io.IOException
java.io.IOException
public static void main(java.lang.String[] argv) throws java.io.IOException, java.lang.InterruptedException
USAGE
java.io.IOException
java.lang.InterruptedException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |