Maple Professional
Maple Academic
Maple Student Edition
Maple Personal Edition
Maple Player
Maple Player for iPad
MapleSim Professional
MapleSim Academic
Maple T.A. - Testing & Assessment
Maple T.A. MAA Placement Test Suite
Möbius - Online Courseware
Machine Design / Industrial Automation
Aerospace
Vehicle Engineering
Robotics
Power Industries
System Simulation and Analysis
Model development for HIL
Plant Modeling for Control Design
Robotics/Motion Control/Mechatronics
Other Application Areas
Mathematics Education
Engineering Education
High Schools & Two-Year Colleges
Testing & Assessment
Students
Financial Modeling
Operations Research
High Performance Computing
Physics
Live Webinars
Recorded Webinars
Upcoming Events
MaplePrimes
Maplesoft Blog
Maplesoft Membership
Maple Ambassador Program
MapleCloud
Technical Whitepapers
E-Mail Newsletters
Maple Books
Math Matters
Application Center
MapleSim Model Gallery
User Case Studies
Exploring Engineering Fundamentals
Teaching Concepts with Maple
Maplesoft Welcome Center
Teacher Resource Center
Student Help Center
Engine - the Java representation of the Maple math engine
Description
The com.maplesoft.openmaple.Engine class represents the basic interface to the Maple session. Engine starts, restarts, and stops the Maple session. It also allows for the evaluation of arbitrary strings, access to Maple help pages, and the creation of new Maple objects.
Field Summary
The following constants are available from Engine.
int MAPLE_HELP_ALL
The constant indicating that the entire help page should be returned by a call to getHelp.
int MAPLE_HELP_USAGE
The constant indicating that the usage section of a help page should be returned by a call to getHelp.
int MAPLE_HELP_DESCRIPTION
The constant indicating that the description section of a help page should be returned by a call to getHelp.
int MAPLE_HELP_EXAMPLES
The constant indicating that the example section of a help page should be returned by a call to getHelp.
int MAPLE_HELP_SEEALSO
The constant indicating that the see also section of a help page should be returned by a call to getHelp.
Method Summary
The following methods are available from Engine.
Engine( String args[], EngineCallBacks cb, Object user_data, Object res )
Engine is the constructor for the Engine class. It starts a Maple session and initializes the Engine object associated with the session.
Note: Only one Engine can be created during a single run of the JVM, even after the Engine has been stopped.
void restart() throws MapleException
restart has the same effect as calling restart in a Maple session.
void stop() throws MapleException
stop shuts down the Maple session.
Algebraic evaluate( String statement ) throws MapleException
evaluate accepts a string argument and evaluates it, returning an Algebraic object as a result.
void getHelp( String topic, int section, MHelpCallBack hcb, Object data ) throws MapleException
getHelp allows the user to access the contents of a help page.
void newTable() throws MapleException
newTable creates an empty Maple table and returns a Table representing that table.
void newExpseq( int length ) throws MapleException
newExpseq creates an empty Maple expression sequence of a given length and returns an Expseq representing that expression sequence.
void newList( int length ) throws MapleException
newList creates an empty Maple list of a given length and returns a List representing that list.
void newName( String str, boolean global ) throws MapleException
newName creates a Maple name and returns a Name representing that name.
Numeric newNumeric( type n ) throws MapleException
newNumeric creates a Numeric object representing the given value. type can be one of byte, short, int, long, float or double.
void newMString( String str ) throws MapleException
newMString creates a Maple string and returns a MString representing that name.
See Also
OpenMaple, OpenMaple/Java/Algebraic OpenMaple/Java/Table, OpenMaple/Java/API, OpenMaple/Java/Examples, OpenMaple/Java/Expseq OpenMaple/Java/List, OpenMaple/Java/Name
Download Help Document