[RavenclawDev 208] [5] src: initial import

svetlana@edam.speech.cs.cmu.edu svetlana at edam.speech.cs.cmu.edu
Sun Jan 14 11:11:54 EST 2007


An HTML attachment was scrubbed...
URL: http://mailman.srv.cs.cmu.edu/pipermail/ravenclaw-developers/attachments/20070114/c5be6619/attachment-0001.html
-------------- next part --------------
Added: .cvsignore
===================================================================
--- .cvsignore	                        (rev 0)
+++ .cvsignore	2007-01-14 16:11:53 UTC (rev 5)
@@ -0,0 +1,2 @@
+build
+dist

Added: .nbintdb
===================================================================
(Binary files differ)


Property changes on: .nbintdb
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: CVS/Entries
===================================================================
--- CVS/Entries	                        (rev 0)
+++ CVS/Entries	2007-01-14 16:11:53 UTC (rev 5)
@@ -0,0 +1,22 @@
+/.cvsignore/1.1.1.1/Sat Oct 14 04:03:12 2006//
+/.nbintdb/1.1.1.1/Sat Oct 14 04:03:12 2006//
+/README/1.1.1.1/Sat Oct 14 04:03:19 2006//
+/Thumbs.db/1.1.1.1/Sat Oct 14 04:03:19 2006//
+/Untitled/1.1.1.1/Sat Oct 14 04:03:19 2006//
+/botlocs.txt/1.1.1.1/Sat Oct 14 04:03:12 2006//
+/bsh-core-2.0b4.jar/1.1.1.1/Sat Oct 14 04:03:13 2006//
+/bsh-util-2.0b4.jar/1.1.1.1/Sat Oct 14 04:03:13 2006//
+/build.xml/1.1.1.1/Sat Oct 14 04:03:13 2006//
+/cmu_wordmark1r-boeing.JPG/-1.1.1.1/dummy timestamp//
+/cmu_wordmark1r-boeing.PNG/-1.1.1.1/dummy timestamp//
+/corp5aStage.jpg/-1.1.1.1/dummy timestamp//
+/galaxy.jar/1.1.1.1/Sat Oct 14 04:03:15 2006//
+/highbay.png/-1.1.1.1/dummy timestamp//
+/hs_err_pid4092.log/-1.1.1.1/dummy timestamp//
+/jiu.jar/1.1.1.1/Sat Oct 14 04:03:19 2006//
+/manifest.mf/-1.1.1.1/dummy timestamp//
+/map.properties/1.1.1.1/Sat Oct 14 04:03:19 2006//
+/run.sh/1.1/Fri Nov 24 15:40:46 2006//
+D/dist////
+D/nbproject////
+D/src////

Added: CVS/Repository
===================================================================
--- CVS/Repository	                        (rev 0)
+++ CVS/Repository	2007-01-14 16:11:53 UTC (rev 5)
@@ -0,0 +1 @@
+RavenCalendar/Agents/JavaTTY

Added: CVS/Root
===================================================================
--- CVS/Root	                        (rev 0)
+++ CVS/Root	2007-01-14 16:11:53 UTC (rev 5)
@@ -0,0 +1 @@
+:ext:sveta at compserv.cs.sunysb.edu:/home/stufs1/sveta/cvsroot

Added: README
===================================================================
--- README	                        (rev 0)
+++ README	2007-01-14 16:11:53 UTC (rev 5)
@@ -0,0 +1,4 @@
+Original code taken from Xiaoping Jia's "Object Oriented Software
+Development using Java". Chapter 9. Iteration 4.
+http://se.cs.depaul.edu/Java/chap09.html
+

Added: Thumbs.db
===================================================================
(Binary files differ)


Property changes on: Thumbs.db
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: Untitled
===================================================================
(Binary files differ)


Property changes on: Untitled
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: botlocs.txt
===================================================================
--- botlocs.txt	                        (rev 0)
+++ botlocs.txt	2007-01-14 16:11:53 UTC (rev 5)
@@ -0,0 +1 @@
+pinky:-496.227:-541.485:1.61928

Added: bsh-core-2.0b4.jar
===================================================================
(Binary files differ)


Property changes on: bsh-core-2.0b4.jar
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: bsh-util-2.0b4.jar
===================================================================
(Binary files differ)


Property changes on: bsh-util-2.0b4.jar
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: build/classes/edu/cmu/ravenclaw/javatty/DecoderInterpreter.class
===================================================================
(Binary files differ)


Property changes on: build/classes/edu/cmu/ravenclaw/javatty/DecoderInterpreter.class
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: build/classes/edu/cmu/ravenclaw/javatty/DrawingPad$1.class
===================================================================
(Binary files differ)


Property changes on: build/classes/edu/cmu/ravenclaw/javatty/DrawingPad$1.class
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: build/classes/edu/cmu/ravenclaw/javatty/DrawingPad$AboutListener.class
===================================================================
(Binary files differ)


Property changes on: build/classes/edu/cmu/ravenclaw/javatty/DrawingPad$AboutListener.class
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: build/classes/edu/cmu/ravenclaw/javatty/DrawingPad$ButtonPressed.class
===================================================================
(Binary files differ)


Property changes on: build/classes/edu/cmu/ravenclaw/javatty/DrawingPad$ButtonPressed.class
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: build/classes/edu/cmu/ravenclaw/javatty/DrawingPad$ExitListener.class
===================================================================
(Binary files differ)


Property changes on: build/classes/edu/cmu/ravenclaw/javatty/DrawingPad$ExitListener.class
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: build/classes/edu/cmu/ravenclaw/javatty/DrawingPad$FontListener14.class
===================================================================
(Binary files differ)


Property changes on: build/classes/edu/cmu/ravenclaw/javatty/DrawingPad$FontListener14.class
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: build/classes/edu/cmu/ravenclaw/javatty/DrawingPad$FontListener20.class
===================================================================
(Binary files differ)


Property changes on: build/classes/edu/cmu/ravenclaw/javatty/DrawingPad$FontListener20.class
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: build/classes/edu/cmu/ravenclaw/javatty/DrawingPad$FontListener26.class
===================================================================
(Binary files differ)


Property changes on: build/classes/edu/cmu/ravenclaw/javatty/DrawingPad$FontListener26.class
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: build/classes/edu/cmu/ravenclaw/javatty/DrawingPad.class
===================================================================
(Binary files differ)


Property changes on: build/classes/edu/cmu/ravenclaw/javatty/DrawingPad.class
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: build/classes/edu/cmu/ravenclaw/javatty/JavaTTYServer.class
===================================================================
(Binary files differ)


Property changes on: build/classes/edu/cmu/ravenclaw/javatty/JavaTTYServer.class
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: build/classes/edu/cmu/ravenclaw/javatty/scribble3/ScribbleCanvas.class
===================================================================
(Binary files differ)


Property changes on: build/classes/edu/cmu/ravenclaw/javatty/scribble3/ScribbleCanvas.class
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: build/classes/edu/cmu/ravenclaw/javatty/scribble3/ScribbleCanvasListener.class
===================================================================
(Binary files differ)


Property changes on: build/classes/edu/cmu/ravenclaw/javatty/scribble3/ScribbleCanvasListener.class
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: build.xml
===================================================================
--- build.xml	                        (rev 0)
+++ build.xml	2007-01-14 16:11:53 UTC (rev 5)
@@ -0,0 +1,69 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- You may freely edit this file. See commented blocks below for -->
+<!-- some examples of how to customize the build. -->
+<!-- (If you delete it and reopen the project it will be recreated.) -->
+<project name="JavaTTY" default="default" basedir=".">
+    <description>Builds, tests, and runs the project JavaTTY.</description>
+    <import file="nbproject/build-impl.xml"/>
+    <!--
+
+    There exist several targets which are by default empty and which can be 
+    used for execution of your tasks. These targets are usually executed 
+    before and after some main targets. They are: 
+
+      -pre-init:                 called before initialization of project properties
+      -post-init:                called after initialization of project properties
+      -pre-compile:              called before javac compilation
+      -post-compile:             called after javac compilation
+      -pre-compile-single:       called before javac compilation of single file
+      -post-compile-single:      called after javac compilation of single file
+      -pre-compile-test:         called before javac compilation of JUnit tests
+      -post-compile-test:        called after javac compilation of JUnit tests
+      -pre-compile-test-single:  called before javac compilation of single JUnit test
+      -post-compile-test-single: called after javac compilation of single JUunit test
+      -pre-jar:                  called before JAR building
+      -post-jar:                 called after JAR building
+      -post-clean:               called after cleaning build products
+
+    (Targets beginning with '-' are not intended to be called on their own.)
+
+    Example of inserting an obfuscator after compilation could look like this:
+
+        <target name="-post-compile">
+            <obfuscate>
+                <fileset dir="${build.classes.dir}"/>
+            </obfuscate>
+        </target>
+
+    For list of available properties check the imported 
+    nbproject/build-impl.xml file. 
+
+
+    Another way to customize the build is by overriding existing main targets.
+    The targets of interest are: 
+
+      -init-macrodef-javac:     defines macro for javac compilation
+      -init-macrodef-junit:     defines macro for junit execution
+      -init-macrodef-debug:     defines macro for class debugging
+      -init-macrodef-java:      defines macro for class execution
+      -do-jar-with-manifest:    JAR building (if you are using a manifest)
+      -do-jar-without-manifest: JAR building (if you are not using a manifest)
+      run:                      execution of project 
+      -javadoc-build:           Javadoc generation
+      test-report:              JUnit report generation
+
+    An example of overriding the target for project execution could look like this:
+
+        <target name="run" depends="JavaTTY-impl.jar">
+            <exec dir="bin" executable="launcher.exe">
+                <arg file="${dist.jar}"/>
+            </exec>
+        </target>
+
+    Notice that the overridden target depends on the jar target and not only on 
+    the compile target as the regular run target does. Again, for a list of available 
+    properties which you can use, check the target you are overriding in the
+    nbproject/build-impl.xml file. 
+
+    -->
+</project>

Added: dist/.cvsignore
===================================================================
--- dist/.cvsignore	                        (rev 0)
+++ dist/.cvsignore	2007-01-14 16:11:53 UTC (rev 5)
@@ -0,0 +1,2 @@
+lib
+README.TXT

Added: dist/JavaTTY.jar
===================================================================
(Binary files differ)


Property changes on: dist/JavaTTY.jar
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: dist/README.TXT
===================================================================
--- dist/README.TXT	                        (rev 0)
+++ dist/README.TXT	2007-01-14 16:11:53 UTC (rev 5)
@@ -0,0 +1,31 @@
+========================
+BUILD OUTPUT DESCRIPTION
+========================
+
+When you build an Java application project that has a main class, the IDE
+automatically copies all of the JAR
+files on the projects classpath to your projects dist/lib folder. The IDE
+also adds each of the JAR files to the Class-Path element in the application
+JAR files manifest file (MANIFEST.MF).
+
+To run the project from the command line, go to the dist folder and
+type the following:
+
+java -jar "JavaTTY.jar" 
+
+To distribute this project, zip up the dist folder (including the lib folder)
+and distribute the ZIP file.
+
+Notes:
+
+* If two JAR files on the project classpath have the same name, only the first
+JAR file is copied to the lib folder.
+* If the classpath contains a folder of classes or resources, none of the
+classpath elements are copied to the dist folder.
+* If a library on the projects classpath also has a Class-Path element
+specified in the manifest,the content of the Class-Path element has to be on
+the projects runtime path.
+* To set a main class in a standard Java project, right-click the project node
+in the Projects window and choose Properties. Then click Run and enter the
+class name in the Main Class field. Alternatively, you can manually type the
+class name in the manifest Main-Class element.

Added: dist/lib/bsh-core-2.0b4.jar
===================================================================
(Binary files differ)


Property changes on: dist/lib/bsh-core-2.0b4.jar
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: dist/lib/bsh-util-2.0b4.jar
===================================================================
(Binary files differ)


Property changes on: dist/lib/bsh-util-2.0b4.jar
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: dist/lib/galaxy.jar
===================================================================
(Binary files differ)


Property changes on: dist/lib/galaxy.jar
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: dist/lib/jiu.jar
===================================================================
(Binary files differ)


Property changes on: dist/lib/jiu.jar
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: galaxy.jar
===================================================================
(Binary files differ)


Property changes on: galaxy.jar
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: jiu.jar
===================================================================
(Binary files differ)


Property changes on: jiu.jar
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: map.properties
===================================================================
--- map.properties	                        (rev 0)
+++ map.properties	2007-01-14 16:11:53 UTC (rev 5)
@@ -0,0 +1,4 @@
+# Sample ResourceBundle properties file
+edu.cmu.ravenclaw.pendecoder.mapfile = cmu_wordmark1r-boeing.PNG
+edu.cmu.ravenclaw.pendecoder.mapwidth = 6200
+edu.cmu.ravenclaw.pendecoder.mapheight = 4650
\ No newline at end of file

Added: nbproject/.cvsignore
===================================================================
--- nbproject/.cvsignore	                        (rev 0)
+++ nbproject/.cvsignore	2007-01-14 16:11:53 UTC (rev 5)
@@ -0,0 +1,2 @@
+vssver.scc
+private

Added: nbproject/CVS/Entries
===================================================================
--- nbproject/CVS/Entries	                        (rev 0)
+++ nbproject/CVS/Entries	2007-01-14 16:11:53 UTC (rev 5)
@@ -0,0 +1,6 @@
+/.cvsignore/1.1.1.1/Sat Oct 14 04:03:19 2006//
+/build-impl.xml/1.2/Sun Oct 15 21:02:08 2006//
+/genfiles.properties/1.2/Sun Oct 15 21:02:08 2006//
+/project.properties/1.1.1.1/Sat Oct 14 04:03:19 2006//
+/project.xml/1.1.1.1/Sat Oct 14 04:03:19 2006//
+D

Added: nbproject/CVS/Repository
===================================================================
--- nbproject/CVS/Repository	                        (rev 0)
+++ nbproject/CVS/Repository	2007-01-14 16:11:53 UTC (rev 5)
@@ -0,0 +1 @@
+RavenCalendar/Agents/JavaTTY/nbproject

Added: nbproject/CVS/Root
===================================================================
--- nbproject/CVS/Root	                        (rev 0)
+++ nbproject/CVS/Root	2007-01-14 16:11:53 UTC (rev 5)
@@ -0,0 +1 @@
+:ext:sveta at compserv.cs.sunysb.edu:/home/stufs1/sveta/cvsroot

Added: nbproject/build-impl.xml
===================================================================
--- nbproject/build-impl.xml	                        (rev 0)
+++ nbproject/build-impl.xml	2007-01-14 16:11:53 UTC (rev 5)
@@ -0,0 +1,532 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+*** GENERATED FROM project.xml - DO NOT EDIT  ***
+***         EDIT ../build.xml INSTEAD         ***
+
+For the purpose of easier reading the script
+is divided into following sections:
+
+  - initialization
+  - compilation
+  - jar
+  - execution
+  - debugging
+  - javadoc
+  - junit compilation
+  - junit execution
+  - junit debugging
+  - applet
+  - cleanup
+
+-->
+<project name="JavaTTY-impl" default="default" basedir=".." xmlns:j2seproject3="http://www.netbeans.org/ns/j2se-project/3" xmlns:j2seproject2="http://www.netbeans.org/ns/j2se-project/2" xmlns:j2seproject1="http://www.netbeans.org/ns/j2se-project/1" xmlns:jaxws="http://www.netbeans.org/ns/jax-ws/1">
+    <target name="default" depends="test,jar,javadoc" description="Build and test whole project."/>
+    <!-- 
+    ======================
+    INITIALIZATION SECTION 
+    ======================
+    -->
+    <target name="-pre-init">
+        <!-- Empty placeholder for easier customization. -->
+        <!-- You can override this target in the ../build.xml file. -->
+    </target>
+    <target name="-init-private" depends="-pre-init">
+        <property file="nbproject/private/private.properties"/>
+    </target>
+    <target name="-init-user" depends="-pre-init,-init-private">
+        <property file="${user.properties.file}"/>
+        <!-- The two properties below are usually overridden -->
+        <!-- by the active platform. Just a fallback. -->
+        <property name="default.javac.source" value="1.4"/>
+        <property name="default.javac.target" value="1.4"/>
+    </target>
+    <target name="-init-project" depends="-pre-init,-init-private,-init-user">
+        <property file="nbproject/project.properties"/>
+    </target>
+    <target name="-do-init" depends="-pre-init,-init-private,-init-user,-init-project,-init-macrodef-property">
+        <available file="${manifest.file}" property="manifest.available"/>
+        <condition property="manifest.available+main.class">
+            <and>
+                <isset property="manifest.available"/>
+                <isset property="main.class"/>
+                <not>
+                    <equals arg1="${main.class}" arg2="" trim="true"/>
+                </not>
+            </and>
+        </condition>
+        <condition property="manifest.available+main.class+mkdist.available">
+            <and>
+                <istrue value="${manifest.available+main.class}"/>
+                <isset property="libs.CopyLibs.classpath"/>
+            </and>
+        </condition>
+        <condition property="have.tests">
+            <or/>
+        </condition>
+        <condition property="have.sources">
+            <or>
+                <available file="${src.dir}"/>
+            </or>
+        </condition>
+        <condition property="netbeans.home+have.tests">
+            <and>
+                <isset property="netbeans.home"/>
+                <isset property="have.tests"/>
+            </and>
+        </condition>
+        <condition property="no.javadoc.preview">
+            <isfalse value="${javadoc.preview}"/>
+        </condition>
+        <property name="run.jvmargs" value=""/>
+        <property name="javac.compilerargs" value=""/>
+        <property name="work.dir" value="${basedir}"/>
+        <condition property="no.deps">
+            <and>
+                <istrue value="${no.dependencies}"/>
+            </and>
+        </condition>
+        <property name="javac.debug" value="true"/>
+        <property name="javadoc.preview" value="true"/>
+    </target>
+    <target name="-post-init">
+        <!-- Empty placeholder for easier customization. -->
+        <!-- You can override this target in the ../build.xml file. -->
+    </target>
+    <target name="-init-check" depends="-pre-init,-init-private,-init-user,-init-project,-do-init">
+        <fail unless="src.dir">Must set src.dir</fail>
+        <fail unless="build.dir">Must set build.dir</fail>
+        <fail unless="dist.dir">Must set dist.dir</fail>
+        <fail unless="build.classes.dir">Must set build.classes.dir</fail>
+        <fail unless="dist.javadoc.dir">Must set dist.javadoc.dir</fail>
+        <fail unless="build.test.classes.dir">Must set build.test.classes.dir</fail>
+        <fail unless="build.test.results.dir">Must set build.test.results.dir</fail>
+        <fail unless="build.classes.excludes">Must set build.classes.excludes</fail>
+        <fail unless="dist.jar">Must set dist.jar</fail>
+    </target>
+    <target name="-init-macrodef-property">
+        <macrodef name="property" uri="http://www.netbeans.org/ns/j2se-project/1">
+            <attribute name="name"/>
+            <attribute name="value"/>
+            <sequential>
+                <property name="@{name}" value="${@{value}}"/>
+            </sequential>
+        </macrodef>
+    </target>
+    <target name="-init-macrodef-javac">
+        <macrodef name="javac" uri="http://www.netbeans.org/ns/j2se-project/3">
+            <attribute name="srcdir" default="${src.dir}"/>
+            <attribute name="destdir" default="${build.classes.dir}"/>
+            <attribute name="classpath" default="${javac.classpath}"/>
+            <attribute name="debug" default="${javac.debug}"/>
+            <element name="customize" optional="true"/>
+            <sequential>
+                <javac srcdir="@{srcdir}" destdir="@{destdir}" debug="@{debug}" deprecation="${javac.deprecation}" source="${javac.source}" target="${javac.target}" includeantruntime="false">
+                    <classpath>
+                        <path path="@{classpath}"/>
+                    </classpath>
+                    <compilerarg line="${javac.compilerargs}"/>
+                    <customize/>
+                </javac>
+            </sequential>
+        </macrodef>
+    </target>
+    <target name="-init-macrodef-junit">
+        <macrodef name="junit" uri="http://www.netbeans.org/ns/j2se-project/3">
+            <attribute name="includes" default="**/*Test.java"/>
+            <sequential>
+                <junit showoutput="true" fork="true" dir="${basedir}" failureproperty="tests.failed" errorproperty="tests.failed">
+                    <batchtest todir="${build.test.results.dir}"/>
+                    <classpath>
+                        <path path="${run.test.classpath}"/>
+                    </classpath>
+                    <syspropertyset>
+                        <propertyref prefix="test-sys-prop."/>
+                        <mapper type="glob" from="test-sys-prop.*" to="*"/>
+                    </syspropertyset>
+                    <formatter type="brief" usefile="false"/>
+                    <formatter type="xml"/>
+                    <jvmarg line="${run.jvmargs}"/>
+                </junit>
+            </sequential>
+        </macrodef>
+    </target>
+    <target name="-init-macrodef-nbjpda">
+        <macrodef name="nbjpdastart" uri="http://www.netbeans.org/ns/j2se-project/1">
+            <attribute name="name" default="${main.class}"/>
+            <attribute name="classpath" default="${debug.classpath}"/>
+            <attribute name="stopclassname" default=""/>
+            <sequential>
+                <nbjpdastart transport="dt_socket" addressproperty="jpda.address" name="@{name}" stopclassname="@{stopclassname}">
+                    <classpath>
+                        <path path="@{classpath}"/>
+                    </classpath>
+                </nbjpdastart>
+            </sequential>
+        </macrodef>
+        <macrodef name="nbjpdareload" uri="http://www.netbeans.org/ns/j2se-project/1">
+            <attribute name="dir" default="${build.classes.dir}"/>
+            <sequential>
+                <nbjpdareload>
+                    <fileset includes="${fix.includes}*.class" dir="@{dir}"/>
+                </nbjpdareload>
+            </sequential>
+        </macrodef>
+    </target>
+    <target name="-init-macrodef-debug">
+        <macrodef name="debug" uri="http://www.netbeans.org/ns/j2se-project/3">
+            <attribute name="classname" default="${main.class}"/>
+            <attribute name="classpath" default="${debug.classpath}"/>
+            <element name="customize" optional="true"/>
+            <sequential>
+                <java fork="true" classname="@{classname}" dir="${work.dir}">
+                    <jvmarg value="-Xdebug"/>
+                    <jvmarg value="-Xnoagent"/>
+                    <jvmarg value="-Djava.compiler=none"/>
+                    <jvmarg value="-Xrunjdwp:transport=dt_socket,address=${jpda.address}"/>
+                    <jvmarg line="${run.jvmargs}"/>
+                    <classpath>
+                        <path path="@{classpath}"/>
+                    </classpath>
+                    <syspropertyset>
+                        <propertyref prefix="run-sys-prop."/>
+                        <mapper type="glob" from="run-sys-prop.*" to="*"/>
+                    </syspropertyset>
+                    <customize/>
+                </java>
+            </sequential>
+        </macrodef>
+    </target>
+    <target name="-init-macrodef-java">
+        <macrodef name="java" uri="http://www.netbeans.org/ns/j2se-project/1">
+            <attribute name="classname" default="${main.class}"/>
+            <element name="customize" optional="true"/>
+            <sequential>
+                <java fork="true" classname="@{classname}" dir="${work.dir}">
+                    <jvmarg line="${run.jvmargs}"/>
+                    <classpath>
+                        <path path="${run.classpath}"/>
+                    </classpath>
+                    <syspropertyset>
+                        <propertyref prefix="run-sys-prop."/>
+                        <mapper type="glob" from="run-sys-prop.*" to="*"/>
+                    </syspropertyset>
+                    <customize/>
+                </java>
+            </sequential>
+        </macrodef>
+    </target>
+    <target name="-init-presetdef-jar">
+        <presetdef name="jar" uri="http://www.netbeans.org/ns/j2se-project/1">
+            <jar jarfile="${dist.jar}" compress="${jar.compress}">
+                <j2seproject1:fileset dir="${build.classes.dir}"/>
+            </jar>
+        </presetdef>
+    </target>
+    <target name="init" depends="-pre-init,-init-private,-init-user,-init-project,-do-init,-post-init,-init-check,-init-macrodef-property,-init-macrodef-javac,-init-macrodef-junit,-init-macrodef-nbjpda,-init-macrodef-debug,-init-macrodef-java,-init-presetdef-jar"/>
+    <!--
+    ===================
+    COMPILATION SECTION
+    ===================
+    -->
+    <target name="deps-jar" depends="init" unless="no.deps"/>
+    <target name="-pre-pre-compile" depends="init,deps-jar">
+        <mkdir dir="${build.classes.dir}"/>
+    </target>
+    <target name="-pre-compile">
+        <!-- Empty placeholder for easier customization. -->
+        <!-- You can override this target in the ../build.xml file. -->
+    </target>
+    <target name="-do-compile" depends="init,deps-jar,-pre-pre-compile,-pre-compile" if="have.sources">
+        <j2seproject3:javac/>
+        <copy todir="${build.classes.dir}">
+            <fileset dir="${src.dir}" excludes="${build.classes.excludes}"/>
+        </copy>
+    </target>
+    <target name="-post-compile">
+        <!-- Empty placeholder for easier customization. -->
+        <!-- You can override this target in the ../build.xml file. -->
+    </target>
+    <target name="compile" depends="init,deps-jar,-pre-pre-compile,-pre-compile,-do-compile,-post-compile" description="Compile project."/>
+    <target name="-pre-compile-single">
+        <!-- Empty placeholder for easier customization. -->
+        <!-- You can override this target in the ../build.xml file. -->
+    </target>
+    <target name="-do-compile-single" depends="init,deps-jar,-pre-pre-compile">
+        <fail unless="javac.includes">Must select some files in the IDE or set javac.includes</fail>
+        <j2seproject3:javac>
+            <customize>
+                <patternset includes="${javac.includes}"/>
+            </customize>
+        </j2seproject3:javac>
+    </target>
+    <target name="-post-compile-single">
+        <!-- Empty placeholder for easier customization. -->
+        <!-- You can override this target in the ../build.xml file. -->
+    </target>
+    <target name="compile-single" depends="init,deps-jar,-pre-pre-compile,-pre-compile-single,-do-compile-single,-post-compile-single"/>
+    <!--
+    ====================
+    JAR BUILDING SECTION
+    ====================
+    -->
+    <target name="-pre-pre-jar" depends="init">
+        <dirname property="dist.jar.dir" file="${dist.jar}"/>
+        <mkdir dir="${dist.jar.dir}"/>
+    </target>
+    <target name="-pre-jar">
+        <!-- Empty placeholder for easier customization. -->
+        <!-- You can override this target in the ../build.xml file. -->
+    </target>
+    <target name="-do-jar-without-manifest" depends="init,compile,-pre-pre-jar,-pre-jar" unless="manifest.available">
+        <j2seproject1:jar/>
+    </target>
+    <target name="-do-jar-with-manifest" depends="init,compile,-pre-pre-jar,-pre-jar" if="manifest.available" unless="manifest.available+main.class">
+        <j2seproject1:jar manifest="${manifest.file}"/>
+    </target>
+    <target name="-do-jar-with-mainclass" depends="init,compile,-pre-pre-jar,-pre-jar" if="manifest.available+main.class" unless="manifest.available+main.class+mkdist.available">
+        <j2seproject1:jar manifest="${manifest.file}">
+            <j2seproject1:manifest>
+                <j2seproject1:attribute name="Main-Class" value="${main.class}"/>
+            </j2seproject1:manifest>
+        </j2seproject1:jar>
+        <echo>To run this application from the command line without Ant, try:</echo>
+        <property name="build.classes.dir.resolved" location="${build.classes.dir}"/>
+        <property name="dist.jar.resolved" location="${dist.jar}"/>
+        <pathconvert property="run.classpath.with.dist.jar">
+            <path path="${run.classpath}"/>
+            <map from="${build.classes.dir.resolved}" to="${dist.jar.resolved}"/>
+        </pathconvert>
+        <echo>java -cp "${run.classpath.with.dist.jar}" ${main.class}</echo>
+    </target>
+    <target name="-do-jar-with-libraries" depends="init,compile,-pre-pre-jar,-pre-jar" if="manifest.available+main.class+mkdist.available">
+        <property name="build.classes.dir.resolved" location="${build.classes.dir}"/>
+        <pathconvert property="run.classpath.without.build.classes.dir">
+            <path path="${run.classpath}"/>
+            <map from="${build.classes.dir.resolved}" to=""/>
+        </pathconvert>
+        <pathconvert property="jar.classpath" pathsep=" ">
+            <path path="${run.classpath.without.build.classes.dir}"/>
+            <chainedmapper>
+                <flattenmapper/>
+                <globmapper from="*" to="lib/*"/>
+            </chainedmapper>
+        </pathconvert>
+        <taskdef classname="org.netbeans.modules.java.j2seproject.copylibstask.CopyLibs" name="copylibs" classpath="${libs.CopyLibs.classpath}"/>
+        <copylibs manifest="${manifest.file}" runtimeclasspath="${run.classpath.without.build.classes.dir}" jarfile="${dist.jar}" compress="${jar.compress}">
+            <fileset dir="${build.classes.dir}"/>
+            <manifest>
+                <attribute name="Main-Class" value="${main.class}"/>
+                <attribute name="Class-Path" value="${jar.classpath}"/>
+            </manifest>
+        </copylibs>
+        <echo>To run this application from the command line without Ant, try:</echo>
+        <property name="dist.jar.resolved" location="${dist.jar}"/>
+        <echo>java -jar "${dist.jar.resolved}"</echo>
+    </target>
+    <target name="-post-jar">
+        <!-- Empty placeholder for easier customization. -->
+        <!-- You can override this target in the ../build.xml file. -->
+    </target>
+    <target name="jar" depends="init,compile,-pre-jar,-do-jar-with-manifest,-do-jar-without-manifest,-do-jar-with-mainclass,-do-jar-with-libraries,-post-jar" description="Build JAR."/>
+    <!--
+    =================
+    EXECUTION SECTION
+    =================
+    -->
+    <target name="run" depends="init,compile" description="Run a main class.">
+        <j2seproject1:java>
+            <customize>
+                <arg line="${application.args}"/>
+            </customize>
+        </j2seproject1:java>
+    </target>
+    <target name="run-single" depends="init,compile-single">
+        <fail unless="run.class">Must select one file in the IDE or set run.class</fail>
+        <j2seproject1:java classname="${run.class}"/>
+    </target>
+    <!--
+    =================
+    DEBUGGING SECTION
+    =================
+    -->
+    <target name="-debug-start-debugger" if="netbeans.home" depends="init">
+        <j2seproject1:nbjpdastart name="${debug.class}"/>
+    </target>
+    <target name="-debug-start-debuggee" depends="init,compile">
+        <j2seproject3:debug>
+            <customize>
+                <arg line="${application.args}"/>
+            </customize>
+        </j2seproject3:debug>
+    </target>
+    <target name="debug" if="netbeans.home" depends="init,compile,-debug-start-debugger,-debug-start-debuggee" description="Debug project in IDE."/>
+    <target name="-debug-start-debugger-stepinto" if="netbeans.home" depends="init">
+        <j2seproject1:nbjpdastart stopclassname="${main.class}"/>
+    </target>
+    <target name="debug-stepinto" if="netbeans.home" depends="init,compile,-debug-start-debugger-stepinto,-debug-start-debuggee"/>
+    <target name="-debug-start-debuggee-single" if="netbeans.home" depends="init,compile-single">
+        <fail unless="debug.class">Must select one file in the IDE or set debug.class</fail>
+        <j2seproject3:debug classname="${debug.class}"/>
+    </target>
+    <target name="debug-single" if="netbeans.home" depends="init,compile-single,-debug-start-debugger,-debug-start-debuggee-single"/>
+    <target name="-pre-debug-fix" depends="init">
+        <fail unless="fix.includes">Must set fix.includes</fail>
+        <property name="javac.includes" value="${fix.includes}.java"/>
+    </target>
+    <target name="-do-debug-fix" if="netbeans.home" depends="init,-pre-debug-fix,compile-single">
+        <j2seproject1:nbjpdareload/>
+    </target>
+    <target name="debug-fix" if="netbeans.home" depends="init,-pre-debug-fix,-do-debug-fix"/>
+    <!--
+    ===============
+    JAVADOC SECTION
+    ===============
+    -->
+    <target name="-javadoc-build" depends="init">
+        <mkdir dir="${dist.javadoc.dir}"/>
+        <javadoc destdir="${dist.javadoc.dir}" source="${javac.source}" notree="${javadoc.notree}" use="${javadoc.use}" nonavbar="${javadoc.nonavbar}" noindex="${javadoc.noindex}" splitindex="${javadoc.splitindex}" author="${javadoc.author}" version="${javadoc.version}" windowtitle="${javadoc.windowtitle}" private="${javadoc.private}" additionalparam="${javadoc.additionalparam}" failonerror="true" useexternalfile="true">
+            <classpath>
+                <path path="${javac.classpath}"/>
+            </classpath>
+            <sourcepath>
+                <pathelement location="${src.dir}"/>
+            </sourcepath>
+            <packageset dir="${src.dir}" includes="*/**"/>
+            <fileset dir="${src.dir}" includes="*.java"/>
+        </javadoc>
+    </target>
+    <target name="-javadoc-browse" if="netbeans.home" unless="no.javadoc.preview" depends="init,-javadoc-build">
+        <nbbrowse file="${dist.javadoc.dir}/index.html"/>
+    </target>
+    <target name="javadoc" depends="init,-javadoc-build,-javadoc-browse" description="Build Javadoc."/>
+    <!--
+    =========================
+    JUNIT COMPILATION SECTION
+    =========================
+    -->
+    <target name="-pre-pre-compile-test" if="have.tests" depends="init,compile">
+        <mkdir dir="${build.test.classes.dir}"/>
+    </target>
+    <target name="-pre-compile-test">
+        <!-- Empty placeholder for easier customization. -->
+        <!-- You can override this target in the ../build.xml file. -->
+    </target>
+    <target name="-do-compile-test" if="have.tests" depends="init,compile,-pre-pre-compile-test,-pre-compile-test">
+        <j2seproject3:javac srcdir="" destdir="${build.test.classes.dir}" debug="true" classpath="${javac.test.classpath}"/>
+        <copy todir="${build.test.classes.dir}"/>
+    </target>
+    <target name="-post-compile-test">
+        <!-- Empty placeholder for easier customization. -->
+        <!-- You can override this target in the ../build.xml file. -->
+    </target>
+    <target name="compile-test" depends="init,compile,-pre-pre-compile-test,-pre-compile-test,-do-compile-test,-post-compile-test"/>
+    <target name="-pre-compile-test-single">
+        <!-- Empty placeholder for easier customization. -->
+        <!-- You can override this target in the ../build.xml file. -->
+    </target>
+    <target name="-do-compile-test-single" if="have.tests" depends="init,compile,-pre-pre-compile-test,-pre-compile-test-single">
+        <fail unless="javac.includes">Must select some files in the IDE or set javac.includes</fail>
+        <j2seproject3:javac srcdir="" destdir="${build.test.classes.dir}" debug="true" classpath="${javac.test.classpath}">
+            <customize>
+                <patternset includes="${javac.includes}"/>
+            </customize>
+        </j2seproject3:javac>
+        <copy todir="${build.test.classes.dir}"/>
+    </target>
+    <target name="-post-compile-test-single">
+        <!-- Empty placeholder for easier customization. -->
+        <!-- You can override this target in the ../build.xml file. -->
+    </target>
+    <target name="compile-test-single" depends="init,compile,-pre-pre-compile-test,-pre-compile-test-single,-do-compile-test-single,-post-compile-test-single"/>
+    <!--
+    =======================
+    JUNIT EXECUTION SECTION
+    =======================
+    -->
+    <target name="-pre-test-run" if="have.tests" depends="init">
+        <mkdir dir="${build.test.results.dir}"/>
+    </target>
+    <target name="-do-test-run" if="have.tests" depends="init,compile-test,-pre-test-run">
+        <j2seproject3:junit/>
+    </target>
+    <target name="-post-test-run" if="have.tests" depends="init,compile-test,-pre-test-run,-do-test-run">
+        <fail if="tests.failed">Some tests failed; see details above.</fail>
+    </target>
+    <target name="test-report" if="have.tests" depends="init"/>
+    <target name="-test-browse" if="netbeans.home+have.tests" depends="init"/>
+    <target name="test" depends="init,compile-test,-pre-test-run,-do-test-run,test-report,-post-test-run,-test-browse" description="Run unit tests."/>
+    <target name="-pre-test-run-single" if="have.tests" depends="init">
+        <mkdir dir="${build.test.results.dir}"/>
+    </target>
+    <target name="-do-test-run-single" if="have.tests" depends="init,compile-test-single,-pre-test-run-single">
+        <fail unless="test.includes">Must select some files in the IDE or set test.includes</fail>
+        <j2seproject3:junit includes="${test.includes}"/>
+    </target>
+    <target name="-post-test-run-single" if="have.tests" depends="init,compile-test-single,-pre-test-run-single,-do-test-run-single">
+        <fail if="tests.failed">Some tests failed; see details above.</fail>
+    </target>
+    <target name="test-single" depends="init,compile-test-single,-pre-test-run-single,-do-test-run-single,-post-test-run-single" description="Run single unit test."/>
+    <!--
+    =======================
+    JUNIT DEBUGGING SECTION
+    =======================
+    -->
+    <target name="-debug-start-debuggee-test" if="have.tests" depends="init,compile-test">
+        <fail unless="test.class">Must select one file in the IDE or set test.class</fail>
+        <j2seproject3:debug classname="junit.textui.TestRunner" classpath="${debug.test.classpath}">
+            <customize>
+                <arg line="${test.class}"/>
+            </customize>
+        </j2seproject3:debug>
+    </target>
+    <target name="-debug-start-debugger-test" if="netbeans.home+have.tests" depends="init,compile-test">
+        <j2seproject1:nbjpdastart name="${test.class}" classpath="${debug.test.classpath}"/>
+    </target>
+    <target name="debug-test" depends="init,compile-test,-debug-start-debugger-test,-debug-start-debuggee-test"/>
+    <target name="-do-debug-fix-test" if="netbeans.home" depends="init,-pre-debug-fix,compile-test-single">
+        <j2seproject1:nbjpdareload dir="${build.test.classes.dir}"/>
+    </target>
+    <target name="debug-fix-test" if="netbeans.home" depends="init,-pre-debug-fix,-do-debug-fix-test"/>
+    <!--
+    =========================
+    APPLET EXECUTION SECTION
+    =========================
+    -->
+    <target name="run-applet" depends="init,compile-single">
+        <fail unless="applet.url">Must select one file in the IDE or set applet.url</fail>
+        <j2seproject1:java classname="sun.applet.AppletViewer">
+            <customize>
+                <arg value="${applet.url}"/>
+            </customize>
+        </j2seproject1:java>
+    </target>
+    <!--
+    =========================
+    APPLET DEBUGGING  SECTION
+    =========================
+    -->
+    <target name="-debug-start-debuggee-applet" if="netbeans.home" depends="init,compile-single">
+        <fail unless="applet.url">Must select one file in the IDE or set applet.url</fail>
+        <j2seproject3:debug classname="sun.applet.AppletViewer">
+            <customize>
+                <arg value="${applet.url}"/>
+            </customize>
+        </j2seproject3:debug>
+    </target>
+    <target name="debug-applet" if="netbeans.home" depends="init,compile-single,-debug-start-debugger,-debug-start-debuggee-applet"/>
+    <!--
+    ===============
+    CLEANUP SECTION
+    ===============
+    -->
+    <target name="deps-clean" depends="init" unless="no.deps"/>
+    <target name="-do-clean" depends="init">
+        <delete dir="${build.dir}"/>
+        <delete dir="${dist.dir}"/>
+    </target>
+    <target name="-post-clean">
+        <!-- Empty placeholder for easier customization. -->
+        <!-- You can override this target in the ../build.xml file. -->
+    </target>
+    <target name="clean" depends="init,deps-clean,-do-clean,-post-clean" description="Clean build products."/>
+</project>

Added: nbproject/genfiles.properties
===================================================================
--- nbproject/genfiles.properties	                        (rev 0)
+++ nbproject/genfiles.properties	2007-01-14 16:11:53 UTC (rev 5)
@@ -0,0 +1,8 @@
+build.xml.data.CRC32=e52f9c6f
+build.xml.script.CRC32=21040511
+build.xml.stylesheet.CRC32=240b97a2
+# This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml.
+# Do not edit this file. You may delete it but then the IDE will never regenerate such files for you.
+nbproject/build-impl.xml.data.CRC32=e52f9c6f
+nbproject/build-impl.xml.script.CRC32=ca2d2b8e
+nbproject/build-impl.xml.stylesheet.CRC32=20b9345e

Added: nbproject/private/private.properties
===================================================================
--- nbproject/private/private.properties	                        (rev 0)
+++ nbproject/private/private.properties	2007-01-14 16:11:53 UTC (rev 5)
@@ -0,0 +1,3 @@
+javac.debug=true
+javadoc.preview=true
+user.properties.file=C:\\Documents and Settings\\sveta\\.netbeans\\5.5\\build.properties

Added: nbproject/private/private.xml
===================================================================
--- nbproject/private/private.xml	                        (rev 0)
+++ nbproject/private/private.xml	2007-01-14 16:11:53 UTC (rev 5)
@@ -0,0 +1,4 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project-private xmlns="http://www.netbeans.org/ns/project-private/1">
+    <editor-bookmarks xmlns="http://www.netbeans.org/ns/editor-bookmarks/1"/>
+</project-private>

Added: nbproject/project.properties
===================================================================
--- nbproject/project.properties	                        (rev 0)
+++ nbproject/project.properties	2007-01-14 16:11:53 UTC (rev 5)
@@ -0,0 +1,62 @@
+application.args=
+build.classes.dir=${build.dir}/classes
+build.classes.excludes=**/*.java,**/*.form
+# This directory is removed when the project is cleaned:
+build.dir=build
+# Only compile against the classpath explicitly listed here:
+build.sysclasspath=ignore
+build.test.classes.dir=${build.dir}/test/classes
+build.test.results.dir=${build.dir}/test/results
+debug.classpath=\
+    ${run.classpath}
+debug.test.classpath=\
+    ${run.test.classpath}
+# This directory is removed when the project is cleaned:
+dist.dir=dist
+dist.jar=${dist.dir}/JavaTTY.jar
+dist.javadoc.dir=${dist.dir}/javadoc
+file.reference.bsh-core-2.0b4.jar=bsh-core-2.0b4.jar
+file.reference.bsh-util-2.0b4.jar=bsh-util-2.0b4.jar
+file.reference.galaxy.jar=galaxy.jar
+file.reference.jiu.jar=jiu.jar
+file.reference.PenDecoder-src=src
+jar.compress=false
+javac.classpath=\
+    ${file.reference.jiu.jar}:\
+    ${file.reference.bsh-util-2.0b4.jar}:\
+    ${file.reference.galaxy.jar}:\
+    ${file.reference.bsh-core-2.0b4.jar}
+# Space-separated list of extra javac options
+javac.compilerargs=-Xlint
+javac.deprecation=false
+javac.source=1.5
+javac.target=1.5
+javac.test.classpath=\
+    ${javac.classpath}:\
+    ${build.classes.dir}:\
+    ${libs.junit.classpath}
+javadoc.additionalparam=
+javadoc.author=false
+javadoc.encoding=
+javadoc.noindex=false
+javadoc.nonavbar=false
+javadoc.notree=false
+javadoc.private=false
+javadoc.splitindex=true
+javadoc.use=true
+javadoc.version=false
+javadoc.windowtitle=
+main.class=edu.cmu.ravenclaw.javatty.JavaTTYServer
+manifest.file=manifest.mf
+platform.active=default_platform
+run.classpath=\
+    ${javac.classpath}:\
+    ${build.classes.dir}
+# Space-separated list of JVM arguments used when running the project
+# (you may also define separate properties like run-sys-prop.name=value instead of -Dname=value
+# or test-sys-prop.name=value to set system properties for unit tests):
+run.jvmargs=
+run.test.classpath=\
+    ${javac.test.classpath}:\
+    ${build.test.classes.dir}
+src.dir=${file.reference.PenDecoder-src}

Added: nbproject/project.xml
===================================================================
--- nbproject/project.xml	                        (rev 0)
+++ nbproject/project.xml	2007-01-14 16:11:53 UTC (rev 5)
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project xmlns="http://www.netbeans.org/ns/project/1">
+    <type>org.netbeans.modules.java.j2seproject</type>
+    <configuration>
+        <data xmlns="http://www.netbeans.org/ns/j2se-project/3">
+            <name>JavaTTY</name>
+            <minimum-ant-version>1.6.5</minimum-ant-version>
+            <source-roots>
+                <root id="src.dir"/>
+            </source-roots>
+            <test-roots/>
+        </data>
+    </configuration>
+</project>

Added: run.sh
===================================================================
--- run.sh	                        (rev 0)
+++ run.sh	2007-01-14 16:11:53 UTC (rev 5)
@@ -0,0 +1 @@
+java -classpath "dist/JavaTTY.jar;../../Libraries/Galaxy/jars/galaxy.jar;jiu.jar;bsh-core-2.0b4.jar;bsh-util-2.0b4.jar" edu.cmu.ravenclaw.javatty.JavaTTYServer -port 11002
\ No newline at end of file

Added: src/CVS/Entries
===================================================================
--- src/CVS/Entries	                        (rev 0)
+++ src/CVS/Entries	2007-01-14 16:11:53 UTC (rev 5)
@@ -0,0 +1 @@
+D

Added: src/CVS/Entries.Log
===================================================================
--- src/CVS/Entries.Log	                        (rev 0)
+++ src/CVS/Entries.Log	2007-01-14 16:11:53 UTC (rev 5)
@@ -0,0 +1 @@
+A D/edu////

Added: src/CVS/Repository
===================================================================
--- src/CVS/Repository	                        (rev 0)
+++ src/CVS/Repository	2007-01-14 16:11:53 UTC (rev 5)
@@ -0,0 +1 @@
+RavenCalendar/Agents/JavaTTY/src

Added: src/CVS/Root
===================================================================
--- src/CVS/Root	                        (rev 0)
+++ src/CVS/Root	2007-01-14 16:11:53 UTC (rev 5)
@@ -0,0 +1 @@
+:ext:sveta at compserv.cs.sunysb.edu:/home/stufs1/sveta/cvsroot

Added: src/edu/CVS/Entries
===================================================================
--- src/edu/CVS/Entries	                        (rev 0)
+++ src/edu/CVS/Entries	2007-01-14 16:11:53 UTC (rev 5)
@@ -0,0 +1 @@
+D

Added: src/edu/CVS/Entries.Log
===================================================================
--- src/edu/CVS/Entries.Log	                        (rev 0)
+++ src/edu/CVS/Entries.Log	2007-01-14 16:11:53 UTC (rev 5)
@@ -0,0 +1 @@
+A D/cmu////

Added: src/edu/CVS/Repository
===================================================================
--- src/edu/CVS/Repository	                        (rev 0)
+++ src/edu/CVS/Repository	2007-01-14 16:11:53 UTC (rev 5)
@@ -0,0 +1 @@
+RavenCalendar/Agents/JavaTTY/src/edu

Added: src/edu/CVS/Root
===================================================================
--- src/edu/CVS/Root	                        (rev 0)
+++ src/edu/CVS/Root	2007-01-14 16:11:53 UTC (rev 5)
@@ -0,0 +1 @@
+:ext:sveta at compserv.cs.sunysb.edu:/home/stufs1/sveta/cvsroot

Added: src/edu/cmu/CVS/Entries
===================================================================
--- src/edu/cmu/CVS/Entries	                        (rev 0)
+++ src/edu/cmu/CVS/Entries	2007-01-14 16:11:53 UTC (rev 5)
@@ -0,0 +1 @@
+D/ravenclaw////

Added: src/edu/cmu/CVS/Repository
===================================================================
--- src/edu/cmu/CVS/Repository	                        (rev 0)
+++ src/edu/cmu/CVS/Repository	2007-01-14 16:11:53 UTC (rev 5)
@@ -0,0 +1 @@
+RavenCalendar/Agents/JavaTTY/src/edu/cmu

Added: src/edu/cmu/CVS/Root
===================================================================
--- src/edu/cmu/CVS/Root	                        (rev 0)
+++ src/edu/cmu/CVS/Root	2007-01-14 16:11:53 UTC (rev 5)
@@ -0,0 +1 @@
+:ext:sveta at compserv.cs.sunysb.edu:/home/stufs1/sveta/cvsroot

Added: src/edu/cmu/ravenclaw/CVS/Entries
===================================================================
--- src/edu/cmu/ravenclaw/CVS/Entries	                        (rev 0)
+++ src/edu/cmu/ravenclaw/CVS/Entries	2007-01-14 16:11:53 UTC (rev 5)
@@ -0,0 +1 @@
+D/pendecoder////

Added: src/edu/cmu/ravenclaw/CVS/Repository
===================================================================
--- src/edu/cmu/ravenclaw/CVS/Repository	                        (rev 0)
+++ src/edu/cmu/ravenclaw/CVS/Repository	2007-01-14 16:11:53 UTC (rev 5)
@@ -0,0 +1 @@
+RavenCalendar/Agents/JavaTTY/src/edu/cmu/ravenclaw

Added: src/edu/cmu/ravenclaw/CVS/Root
===================================================================
--- src/edu/cmu/ravenclaw/CVS/Root	                        (rev 0)
+++ src/edu/cmu/ravenclaw/CVS/Root	2007-01-14 16:11:53 UTC (rev 5)
@@ -0,0 +1 @@
+:ext:sveta at compserv.cs.sunysb.edu:/home/stufs1/sveta/cvsroot

Added: src/edu/cmu/ravenclaw/javatty/DecoderInterpreter.java
===================================================================
--- src/edu/cmu/ravenclaw/javatty/DecoderInterpreter.java	                        (rev 0)
+++ src/edu/cmu/ravenclaw/javatty/DecoderInterpreter.java	2007-01-14 16:11:53 UTC (rev 5)
@@ -0,0 +1,72 @@
+/*
+ * DecoderInterpreter.java
+ *
+ * Created on April 15, 2006, 12:47 PM
+ *
+ */
+package edu.cmu.ravenclaw.javatty;
+
+import java.io.*;
+import java.nio.charset.Charset;
+import java.nio.charset.spi.CharsetProvider;
+
+import bsh.util.JConsole;
+
+/**
+ *
+ * @author tkharris Svelta and Barbara
+ */
+public class DecoderInterpreter extends Thread {
+  
+  protected JConsole jconsole;
+  protected JConsole jconsoleWrite;
+  protected Reader reader;
+  protected PrintStream outStream;
+  protected PrintStream errStream;
+  protected DrawingPad pad;
+  
+  /** Creates a new instance of DecoderInterpreter */
+  public DecoderInterpreter(JConsole jconsole, JConsole jconsoleWrite, DrawingPad pad) {
+    this.jconsole = jconsole;
+    this.jconsoleWrite = jconsoleWrite;
+    this.pad = pad;
+    reader = jconsoleWrite.getIn();
+    outStream = jconsole.getOut();
+    errStream = jconsole.getErr();
+  }
+  
+  public void run() {
+    try {
+      for(;;) {
+        char b[] = new char[6*80];
+        byte b1[] = new byte[80];
+        reader.read(b);
+        int i;
+        for(i=0; i<80; i++) {
+          String s_num = new String(b, i*6+4, 2);
+          if(s_num == "0a") break;
+          try {
+            b1[i] = Byte.parseByte(s_num, 16);
+          } catch(NumberFormatException e) {
+            break;
+          }
+        }
+        String decoded = new String(b1, 0, i);
+        jconsole.print(decoded, java.awt.Color.RED);
+        pad.say(decoded);
+      }
+    } catch (IOException e) {
+      System.err.println("Termination of console");
+    }
+  }
+  
+  public void print_bot(String bot, String text) {
+    jconsole.print(bot + ": " + text, java.awt.Color.GREEN);
+    jconsole.println();
+  }
+  
+  public void print_human(String source, String confidence, String utterance) {
+    jconsole.print("U(" + source + ":" + confidence + "): " + utterance, java.awt.Color.RED);
+    jconsole.println();
+  }
+}

Added: src/edu/cmu/ravenclaw/javatty/DrawingPad.java
===================================================================
--- src/edu/cmu/ravenclaw/javatty/DrawingPad.java	                        (rev 0)
+++ src/edu/cmu/ravenclaw/javatty/DrawingPad.java	2007-01-14 16:11:53 UTC (rev 5)
@@ -0,0 +1,256 @@
+package edu.cmu.ravenclaw.javatty;
+
+import java.util.*;
+import java.awt.*;
+import java.awt.event.*;
+import javax.swing.*;
+
+import bsh.util.JConsole;
+import java.awt.image.BufferedImage;
+
+public class DrawingPad extends JFrame {
+    
+    //
+  protected JScrollPane pane;
+  protected JMenuBar menuBar; 
+  protected JButton startSessionButton;
+
+  protected ActionListener exitAction; 
+  protected ActionListener ButtonPressed;
+  protected ActionListener fontAction14; 
+  protected ActionListener fontAction20; 
+  protected ActionListener fontAction26; 
+  
+  JConsole consolePrint = new JConsole();
+  JConsole consoleWrite = new JConsole();
+
+  protected static int width = 1200; 
+  protected static int height = 800; 
+  //
+  
+  protected JComponent toolbar;
+  protected DecoderInterpreter interpreter;
+  protected java.util.List<JavaTTYServer> servers = new java.util.Vector<JavaTTYServer>();
+  
+  public DrawingPad(String title) {
+    super(title);
+    
+    // calling factory method 
+    getContentPane().setLayout(new BorderLayout()); 
+    menuBar = createMenuBar(); 
+    getContentPane().add(menuBar, BorderLayout.NORTH); 
+    
+    startSessionButton = new JButton("Start Session");
+    startSessionButton.addActionListener(new ButtonPressed());
+    getContentPane().add(startSessionButton, BorderLayout.CENTER); 
+    
+    addWindowListener(new WindowAdapter() {
+	public void windowClosing(WindowEvent e) {
+	  if (exitAction != null) { 
+	    exitAction.actionPerformed(new ActionEvent(DrawingPad.this, 0, null)); 
+	  }
+	}
+      }); 
+    
+    JPanel lowerContainer = new JPanel(new BorderLayout());
+    //lowerContainer.setPreferredSize(new Dimension(1024, 260));
+    
+    //add console to topContainer
+    consolePrint.setPreferredSize(new Dimension(1000, 300));
+    consolePrint.getViewport().getView().setBackground(Color.black);
+    consolePrint.getViewport().getView().setForeground(Color.white);
+    consolePrint.setFont(new Font("Arial", Font.PLAIN, 14));
+    lowerContainer.add(consolePrint, BorderLayout.NORTH);
+    
+    //add console to lowerContainer
+    consoleWrite.setPreferredSize(new Dimension(1000, 350));
+    consoleWrite.getViewport().getView().setBackground(Color.black);
+    consoleWrite.getViewport().getView().setForeground(Color.white);
+    consoleWrite.setFont(new Font("Arial", Font.PLAIN, 14));
+    lowerContainer.add(consoleWrite, BorderLayout.SOUTH);
+    
+    interpreter = new DecoderInterpreter(consolePrint, consoleWrite, this);
+    interpreter.start();
+    
+    //add lowerContainer to this
+    getContentPane().add(lowerContainer, BorderLayout.SOUTH);
+  }
+  
+  //Creat teh Drop Down Menu
+  protected JMenuBar createMenuBar() {
+    JMenuBar menuBar = new JMenuBar();
+    JMenu menu; 
+    JMenuItem mi;
+
+    // File menu 
+    menu = new JMenu("File"); 
+    menuBar.add(menu); 
+    
+    exitAction = new ExitListener(); 
+    mi = new JMenuItem("Exit");
+    menu.add(mi);
+    mi.addActionListener(exitAction); 
+      
+    // File menu 
+    menu = new JMenu("Font"); 
+    menuBar.add(menu); 
+    
+    fontAction14 = new FontListener14();
+    mi = new JMenuItem("14-pt");
+    menu.add(mi);
+    mi.addActionListener(fontAction14); 
+    
+    fontAction20 = new FontListener20(); 
+    mi = new JMenuItem("20-pt");
+    menu.add(mi);
+    mi.addActionListener(fontAction20);
+    
+    fontAction26= new FontListener26(); 
+    mi = new JMenuItem("26-pt");
+    menu.add(mi);
+    mi.addActionListener(fontAction26);
+
+    // Help menu 
+    menu = new JMenu("Help"); 
+    menuBar.add(menu); 
+
+    mi = new JMenuItem("About");
+    menu.add(mi);
+    mi.addActionListener(new AboutListener()); 
+
+    return menuBar; 
+  }
+
+  class ExitListener implements ActionListener { 
+    
+    public void actionPerformed(ActionEvent e) {
+      int result = JOptionPane.showConfirmDialog(null,
+						 "Do you want to exit?", 
+						 "Exit Treasure Hunt GUI?",
+						 JOptionPane.YES_NO_OPTION);
+      if (result == JOptionPane.YES_OPTION) {
+	System.exit(0); 
+      }
+    }
+
+  }
+   
+  class ButtonPressed implements ActionListener {
+       public void actionPerformed(ActionEvent event) {
+           if(startSessionButton.getText().equals("Start Session"))
+           {
+               startSessionButton.setText("Stop Session");
+               startSession();
+           }
+           else
+           {
+               startSessionButton.setText("Stop Session");
+               endSession();
+           }
+             // functionality to be performed in click action
+       }
+  }
+   
+    class FontListener14 implements ActionListener {
+        public void actionPerformed(ActionEvent e) {
+            consolePrint.setFont(new Font("Arial", Font.PLAIN, 14));
+            consoleWrite.setFont(new Font("Arial", Font.PLAIN, 14));
+        }
+
+  }
+    
+    class FontListener20 implements ActionListener {
+        public void actionPerformed(ActionEvent e) {
+            consolePrint.setFont(new Font("Arial", Font.PLAIN, 20));
+            consoleWrite.setFont(new Font("Arial", Font.PLAIN, 20));
+        }
+
+  }
+    
+    class FontListener26 implements ActionListener {
+        public void actionPerformed(ActionEvent e) {
+            consolePrint.setFont(new Font("Arial", Font.PLAIN, 26));
+            consoleWrite.setFont(new Font("Arial", Font.PLAIN, 26));
+        }
+
+  }
+
+  class AboutListener implements ActionListener { 
+    
+    public void actionPerformed(ActionEvent e) {
+      JOptionPane.showMessageDialog(null,
+              "Teamtalk version 1.0\n" +
+              "Carnegie Mellon\n" +
+              "Stony Brook University\n"+
+              "Boeing Phantom Works\n",
+              "About",
+              JOptionPane.INFORMATION_MESSAGE);
+    }
+
+  }
+  
+  public void addServer(JavaTTYServer server) {
+    servers.add(server);
+  }
+  
+  public void say(String utt) {
+    ListIterator<JavaTTYServer> i = servers.listIterator();
+    while(i.hasNext()) {

@@ Diff output truncated at 60000 characters. @@


More information about the Ravenclaw-developers mailing list