[Mathlib-commitlog] SF.net SVN: mathlib:[584] JMathLib/trunk/src/jmathlib/ui/text/TextUI.java
Status: Beta
Brought to you by:
st_mueller
|
From: <st_...@us...> - 2008-12-30 22:02:35
|
Revision: 584
http://mathlib.svn.sourceforge.net/mathlib/?rev=584&view=rev
Author: st_mueller
Date: 2008-12-30 22:02:27 +0000 (Tue, 30 Dec 2008)
Log Message:
-----------
first beta versin of text user interface
Modified Paths:
--------------
JMathLib/trunk/src/jmathlib/ui/text/TextUI.java
Modified: JMathLib/trunk/src/jmathlib/ui/text/TextUI.java
===================================================================
--- JMathLib/trunk/src/jmathlib/ui/text/TextUI.java 2008-12-30 21:36:17 UTC (rev 583)
+++ JMathLib/trunk/src/jmathlib/ui/text/TextUI.java 2008-12-30 22:02:27 UTC (rev 584)
@@ -1,16 +1,12 @@
package jmathlib.ui.text;
import jmathlib.core.interpreter.*;
-import jmathlib.core.interfaces.RemoteAccesible;
+import jmathlib.core.interfaces.*;
import jmathlib.ui.common.Console;
-import java.awt.*;
-import java.awt.event.*;
-import java.applet.*;
import java.io.*;
-import java.util.Vector;
-public class textUI implements RemoteAccesible, MathLibOutput
+public class TextUI implements RemoteAccesible, MathLibOutput
{
/**store whether executing lines or entering a function def*/
private boolean interactiveMode;
@@ -27,14 +23,13 @@
/**stores the input stream*/
private DataInputStream input;
- public textUI()
+ public TextUI()
{
interactiveMode = true;
functionCode = "";
exiting = false;
interpreter = new Interpreter(true, null);
- interpreter.setOutputPanel((MathLibOutput)this);
- interpreter.setDebug(false);
+ interpreter.setOutputPanel(this);
input = new DataInputStream(System.in);
}
@@ -50,7 +45,7 @@
public static void main(String[] args)
{
- MathLibTUI tui = new MathLibTUI();
+ TextUI tui = new TextUI();
if(args.length == 0)
{
tui.run();
@@ -101,7 +96,7 @@
String answerString = "";
//process the function
- answerString = interpreter.readFunction(functionCode, true, false);
+ //answerString = interpreter.readFunction(functionCode, true, false);
interactiveMode = true;
@@ -114,6 +109,9 @@
}
}
+ /**
+ * method for the interpreter to display its outpout
+ */
public void displayText(String text)
{
System.out.println(text);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|