GAP Link |
Version 1.0 M1 |
About Install Using API Documentation Contact us
The GAP Link project delivers the user with a link to GAP written in Java. The code is packaged in a small JAR-file so the user is able to reuse the link in his/her own project without much effort.
How do you install this package? Very easy, just make sure when you start your own project the JAR-file for this project is also in the classpath. After that the link should work.
OK, you've installed the link so now you want to use it in your own code? Well, first of all create an instance of the link. After creating the instance start GAP with a command (this should always include -p -q). And then call the execute method to perform the actual call. When you are finished you can call the stop method.
Example:
GapLink tLink = new GapLink(); tLink.start( "gap4r2p3 -p -q" ); tLink.execute( "1+1;" ); tLink.stop();
If you wish to contact the author mail him at mriem@win.tue.nl
Copyright (c) 2000, Eindhoven University of Technology (TU/e).
All Rights Reserved.