|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Object
|
+--com.maplesoft.client.MapleStatement
|
+--com.maplesoft.client.MapleToMathML
Convert a Maple command into the equivalent MathML representation.
It extends the basic capabilities of the MapleStatement
and can return either the CONTENT or PRESENTATION or both formats of the
MathML expression.
| Field Summary | |
static int |
CONTENT
Compute MathML to contain CONTENT form |
static int |
PARALLEL
Compute MathML to contain both CONTENT and PRESENTATION forms |
static int |
PRESENTATION
Compute MathML to contain PRESENTATION form |
| Constructor Summary | |
MapleToMathML(HostInfo hostinfo,
UserInfo userinfo)
Constructor |
|
MapleToMathML(java.lang.String sHost,
int iPort,
java.lang.String sUser,
java.lang.String sPassword)
Constructor |
|
| Method Summary | |
java.lang.String |
execute(java.lang.String sMaple)
Sends the maple command to the server to be converted to its MathML representation. |
java.lang.String[] |
execute(java.lang.String[] saMaple)
Pass the sequence of commands contained in the string array to the Maple Server. |
java.lang.String[] |
execute(java.lang.String[] saMaple,
int iType)
Sends the maple command sequence to the server to be converted to its MathML representation. |
java.lang.String |
execute(java.lang.String sMaple,
int iType)
Sends the maple command to the server to be converted to its MathML representation. |
java.lang.String |
getResult()
Returns the MathML representation of the Maple command. |
java.lang.String[] |
getResultArray()
Returns the MathML representation of the Maple command. |
| Methods inherited from class com.maplesoft.client.MapleStatement |
doMaple, getHost, getLock, getResponse, getResponseArray, getUser, getXMLString, getXMLStringArray, releaseLock, setHost, setHost, setUser, setUser |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final int PARALLEL
execute(String, int)public static final int CONTENT
execute(String, int)public static final int PRESENTATION
execute(String, int)| Constructor Detail |
public MapleToMathML(java.lang.String sHost,
int iPort,
java.lang.String sUser,
java.lang.String sPassword)
sHost - - host name of serveriPort - - specific port for serversUser - - username as registered at serversPassword - - password for user
public MapleToMathML(HostInfo hostinfo,
UserInfo userinfo)
hostinfo - - Host information objectuserinfo - - User information objectHostInfo,
UserInfo| Method Detail |
public java.lang.String execute(java.lang.String sMaple)
throws MapleStatementException,
MapleException
getResult method with the
MathML containing both forms CONTENT and PRESENTATION.execute in class MapleStatementsMaple - - a string representing the Maple CommandMapleException - if it cannot connect to server, if the user is invalid
or if the host is unknown.MapleStatementException - if it cannot the request cannot be processed
by the serverMapleStatement.execute( String ),
getResult()
public java.lang.String[] execute(java.lang.String[] saMaple)
throws MapleStatementException,
MapleException
MapleStatement
Note: Valid Host and User information needs to be set before
calling this method, either through the constructor
MapleStatement or through the
setHost and setUser methods.
execute in class MapleStatementsaMaple - - a string array representing the sequence of Maple CommandsMapleException - if it cannot connect to server, if the user is invalid
or if the host is unknown.MapleStatementException - if it cannot the request cannot be processed
by the serverMapleStatement.execute( String[] ),
getResult()
public java.lang.String execute(java.lang.String sMaple,
int iType)
throws MapleStatementException,
MapleException
getResult method with the
MathML containing both forms CONTENT and PRESENTATION.sMaple - - a string representing the Maple CommandiType - - specify one of PARALLEL, CONTENT or PRESENTATIONMapleException - if it cannot connect to server, if the user is invalid
or if the host is unknown.MapleStatementException - if it cannot the request cannot be processed
by the serverMapleStatement.execute( String ),
getResult()
public java.lang.String[] execute(java.lang.String[] saMaple,
int iType)
throws MapleStatementException,
MapleException
getResult method with the
MathML containing both forms CONTENT and PRESENTATION.sMaple - - a string representing the Maple CommandiType - - specify one of PARALLEL, CONTENT or PRESENTATIONMapleException - if it cannot connect to server, if the user is invalid
or if the host is unknown.MapleStatementException - if it cannot the request cannot be processed
by the serverMapleStatement.execute( String[] ),
getResult()public java.lang.String getResult()
public java.lang.String[] getResultArray()
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||