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
Algebraic.isDisposed - checks to see if the Algebraic object has been disposed
Calling Sequence
boolean isDisposed() throws MapleException
Description
The isDisposed function returns true if the current Algebraic object had its dispose method called, otherwise it returns false.
If the isDisposed function returns true, it is an error to attempt to call any member function of the Algebraic object except for isDisposed.
Examples
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( "Array( 1..10^6 ):" );
if ( a1.isDisposed() )
System.out.println( "Disposed" );
}
else
System.out.println( "Not Disposed" );
a1.dispose();
Executing this code should produce the following output.
Not Disposed
Disposed
See Also
ExternalCalling/Java/MapleException, OpenMaple, OpenMaple/Java/Algebraic, OpenMaple/Java/Algebraic/dispose, OpenMaple/Java/API, OpenMaple/Java/Engine/evaluate, OpenMaple/Java/memory
Download Help Document