javamath.server.cas
Interface CASession

All Superinterfaces:
java.rmi.Remote
All Known Implementing Classes:
Session, Session

public interface CASession
extends java.rmi.Remote

CASession is an interface representing a session with a computer algebra (CA) system. A CA system is typically accessed remotely, thus this interface is for use with RMI. This interface is roughly that outlined in the paper S. Linton and A. Solomon, OpenMath, IAMC and GAP (in proceedings of ISSAC 99/IAMC workshop)


Method Summary
 void assignOpenMath(java.lang.String varname, javamath.server.cas.OMObject obj)
          Send an Openmath object to the computer algebra system and store it in variable varname.
 void closeSession()
           
 javamath.server.cas.OMObject evaluateOpenMath(javamath.server.cas.OMObject obj)
          Send an Openmath object to the computer algebra system and return an Openmath object as a result.
 java.lang.String getNativeError()
          Retrieves the error message generated by the last command sent to the compute engine.
 java.lang.String getNativeOutput()
          Retrieves the output of the last command sent to the compute engine.
 java.lang.String nativeEvaluate(java.lang.String input)
          Equivalent to sendNativeCommand composed with getNativeOutput
 javamath.server.cas.OMObject retrieveOpenMath(java.lang.String varname)
          Retrieve the object stored in variable varname in the compute engine as an OpenMath object.
 void sendNativeCommand(java.lang.String command)
          Send a command in the native language of the compute engine.
 

Method Detail

evaluateOpenMath

public javamath.server.cas.OMObject evaluateOpenMath(javamath.server.cas.OMObject obj)
                                              throws java.rmi.RemoteException
Send an Openmath object to the computer algebra system and return an Openmath object as a result.

assignOpenMath

public void assignOpenMath(java.lang.String varname,
                           javamath.server.cas.OMObject obj)
                    throws java.rmi.RemoteException
Send an Openmath object to the computer algebra system and store it in variable varname.

retrieveOpenMath

public javamath.server.cas.OMObject retrieveOpenMath(java.lang.String varname)
                                              throws java.rmi.RemoteException
Retrieve the object stored in variable varname in the compute engine as an OpenMath object.

nativeEvaluate

public java.lang.String nativeEvaluate(java.lang.String input)
                                throws java.rmi.RemoteException
Equivalent to sendNativeCommand composed with getNativeOutput

sendNativeCommand

public void sendNativeCommand(java.lang.String command)
                       throws java.rmi.RemoteException
Send a command in the native language of the compute engine. Doesn't wait for execution to complete.

getNativeOutput

public java.lang.String getNativeOutput()
                                 throws java.rmi.RemoteException
Retrieves the output of the last command sent to the compute engine.

getNativeError

public java.lang.String getNativeError()
                                throws java.rmi.RemoteException
Retrieves the error message generated by the last command sent to the compute engine.

closeSession

public void closeSession()
                  throws java.rmi.RemoteException