|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.symcomp.wupsi.Wupsifer
public class Wupsifer
is main loop class. It first evaluates the options, then registeres the handlers for the commands. Most state infos of the WUPSI are stored here and all console user interaction takes place here.
| Method Summary | |
|---|---|
org.symcomp.openmath.OpenMathBase |
compute(org.symcomp.scscp.SCSCPClient client,
org.symcomp.openmath.OpenMathBase omb)
does the actual computation |
void |
compute(org.symcomp.scscp.SCSCPClient client,
java.lang.String in)
meta-handler for computing |
boolean |
connect(java.lang.String url,
java.lang.String name)
connect |
void |
error(java.lang.String s)
|
java.lang.String |
getActiveClient()
|
org.symcomp.scscp.SCSCPClient |
getClient(java.lang.String name)
|
java.util.Map<java.lang.String,org.symcomp.scscp.SCSCPClient> |
getClients()
|
java.util.List<org.symcomp.openmath.OpenMathBase> |
getExamples()
|
java.util.List<WupsiHandler> |
getHandlers()
|
java.util.List<org.symcomp.openmath.OpenMathBase> |
getInputHistory()
|
static Wupsifer |
getInstance()
|
static Wupsifer |
getInstance(WupsiOptions options)
|
java.util.Map<java.lang.String,org.symcomp.openmath.OpenMathBase> |
getLocals()
|
java.lang.String |
getOutputFormat()
|
java.util.List<org.symcomp.openmath.OpenMathBase> |
getOutputHistory()
|
void |
info(java.lang.String s)
|
void |
print(org.symcomp.openmath.OpenMathBase om)
|
void |
print(java.lang.String s)
|
void |
println(org.symcomp.openmath.OpenMathBase om)
|
void |
println(java.lang.String s)
|
void |
receiveNotification(org.symcomp.notification.Notification notification)
|
org.symcomp.openmath.OpenMathBase |
replace(org.symcomp.openmath.OpenMathBase omb)
replace all occurrencies of special variables in the OpenMath tree |
void |
run()
|
java.lang.String |
serviceInfo(org.symcomp.scscp.SCSCPClient client)
produces a nice info string |
void |
setActiveClient(java.lang.String activeClient)
|
void |
setClients(java.util.Map<java.lang.String,org.symcomp.scscp.SCSCPClient> clients)
|
void |
setExamples(java.util.List<org.symcomp.openmath.OpenMathBase> examples)
|
void |
setInputHistory(java.util.List<org.symcomp.openmath.OpenMathBase> inputHistory)
|
void |
setLocals(java.util.Map<java.lang.String,org.symcomp.openmath.OpenMathBase> locals)
|
void |
setOutputFormat(java.lang.String outputFormat)
|
void |
setOutputHistory(java.util.List<org.symcomp.openmath.OpenMathBase> outputHistory)
|
void |
setPrompt(java.lang.String prompt)
|
void |
systemCleanUp(org.symcomp.scscp.SCSCPClient client,
boolean died)
|
void |
systemDied(org.symcomp.scscp.SCSCPClient client)
|
void |
systemDisconnect(org.symcomp.scscp.SCSCPClient client)
|
void |
warning(java.lang.String s)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public void run()
throws java.io.IOException
java.io.IOException
public void compute(org.symcomp.scscp.SCSCPClient client,
java.lang.String in)
client - the client on which to executein - the input string
public org.symcomp.openmath.OpenMathBase compute(org.symcomp.scscp.SCSCPClient client,
org.symcomp.openmath.OpenMathBase omb)
client - omb -
public org.symcomp.openmath.OpenMathBase replace(org.symcomp.openmath.OpenMathBase omb)
omb - the OpenMath tree
public java.lang.String serviceInfo(org.symcomp.scscp.SCSCPClient client)
client - the client for which to get the infos
public boolean connect(java.lang.String url,
java.lang.String name)
url - name -
public void print(org.symcomp.openmath.OpenMathBase om)
public void println(org.symcomp.openmath.OpenMathBase om)
public void println(java.lang.String s)
public void print(java.lang.String s)
public void info(java.lang.String s)
public void warning(java.lang.String s)
public void error(java.lang.String s)
public org.symcomp.scscp.SCSCPClient getClient(java.lang.String name)
public java.util.Map<java.lang.String,org.symcomp.scscp.SCSCPClient> getClients()
public void setClients(java.util.Map<java.lang.String,org.symcomp.scscp.SCSCPClient> clients)
public java.lang.String getActiveClient()
public void setActiveClient(java.lang.String activeClient)
public java.lang.String getOutputFormat()
public void setOutputFormat(java.lang.String outputFormat)
public java.util.Map<java.lang.String,org.symcomp.openmath.OpenMathBase> getLocals()
public void setLocals(java.util.Map<java.lang.String,org.symcomp.openmath.OpenMathBase> locals)
public java.util.List<org.symcomp.openmath.OpenMathBase> getInputHistory()
public void setInputHistory(java.util.List<org.symcomp.openmath.OpenMathBase> inputHistory)
public java.util.List<org.symcomp.openmath.OpenMathBase> getOutputHistory()
public void setOutputHistory(java.util.List<org.symcomp.openmath.OpenMathBase> outputHistory)
public java.util.List<org.symcomp.openmath.OpenMathBase> getExamples()
public void setExamples(java.util.List<org.symcomp.openmath.OpenMathBase> examples)
public void setPrompt(java.lang.String prompt)
public static Wupsifer getInstance()
public static Wupsifer getInstance(WupsiOptions options)
public java.util.List<WupsiHandler> getHandlers()
public void systemDied(org.symcomp.scscp.SCSCPClient client)
public void systemDisconnect(org.symcomp.scscp.SCSCPClient client)
public void systemCleanUp(org.symcomp.scscp.SCSCPClient client,
boolean died)
public void receiveNotification(org.symcomp.notification.Notification notification)
receiveNotification in interface org.symcomp.notification.NotificationReceiver
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||