import com.maplesoft.openmaple.*;
|
import com.maplesoft.externalcall.MapleException;
|
class Example
|
{
|
public static void main( String notused[] ) throws MapleException
|
{
|
String mapleArgs[];
|
Engine engine;
|
Algebraic a1, a2;
|
mapleArgs = new String[1];
|
mapleArgs[0] = "java";
|
engine = new Engine( mapleArgs, new EngineCallBacksDefault(),
|
null, null );
|
a1 = engine.evaluate( "1:" );
|
if ( a1.isStop() )
|
{
|
System.out.println( "Stop" );
|
}
|
else
|
{
|
System.out.println( "Not Stop" );
|
}
|
a1 = engine.evaluate( "quit:" );
|
if ( a1.isStop() )
|
{
|
System.out.println( "Stop" );
|
}
|
else
|
{
|
System.out.println( "Not Stop" );
|
}
|
}
|
}
|