GAP Phrasebook
Version 1.0 M1

About   Install   \ Using   API Documentation   Contact us

About

The GAP Phrasebook project delivers the user a phrasebook that can be used to communicate by means of OpenMath to a GAP-server.


Install

How do you install this package? Very easy, just make sure when you start your own project the JAR-files of this project are also in the classpath.

Example:

 
     CLASSPATH=$CLASSPATH:gap-phrasebook.jar\
               parser.jar:jaxp.jar:om.jar

Using

OK, you've installed the phrasebook into your project and now you are ready to use it? Well, first of all create an instance of the phrasebook by giving the host and port the phrasebook should use to communicate with a socket-based GAP (available as a separate project). And then call the perform method to perform the actual call.

Example:

     GapPhrasebook tPhrasebook = 
       new GapSocketPhrasebook( "localhost", 1235 );
       
     Vector tArguments = new Vector();
     tArguments.add( "113" );

     String tXMLResult = tPhrasebook.perform( "EVAL", tArguments )

Contact us

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.