Re: Quantlib available from Java + using Eclipse as IDE for building quantlib

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Re: Quantlib available from Java + using Eclipse as IDE for building quantlib

johan.witters
Hi,

Indeed I have made some (small) updates to the existing swig interfaces and used them with swig to produce java wrappers of quantlib. As a testcase I have translated swapvaluation.cpp to TestSwapValuation.java (see attachement) and made changes to the swig interfaces making the example SwapValuation finally work in Java.

As mentioned in my first mail I have used eclipse + swig + cygwin + mingw + skwash to create an eclipse-workspace with the following projects:

1. quantlib: project to compile quantlib
2. quantlib skwash: project to generate java wrapper code & c wrapper
3. quantlib java wrapper: project to compile the java wrapper code
4. quantlib cpp wrapper: project to compile the cpp wrapper code
5. quantlib java test: project with TestSwapValuation.java

One way of sharing this would be that I make the updates to the swig interfaces available and secondly I would write a tutorial describing the above actions in detail. Would that be the appropriate way to proceed?

regards,

Johan

>-----Original Message-----
>From: Luigi Ballabio [mailto:[hidden email]]
>Sent: Wednesday, June 1, 2005 01:35 PM
>To: [hidden email]
>Cc: [hidden email], [hidden email],
>[hidden email]
>Subject: Re: [Quantlib-users] Quantlib available from Java + using Eclipse as IDE for building quantlib
>
>
>On 05/26/2005 10:44:25 AM, [hidden email] wrote:
>>
>> I just want to inform you about the fact that I'm working on a java
>> port of quantlib (using swig). This seems to work fine and I will try
>> to find time to join as a quantlib-swig-developer so I can make this
>> available for everyone. Is someone interested?
>
>I guess so. Are your wrappers a modification of the existing SWIG
>interfaces? I'd be interested in integrating them.
>
>Later,
> Luigi
>
>
>----------------------------------------
>
>Better to have an approximate answer to the right question than a
>precise
>answer to the wrong question.
>--  John Tukey as quoted by John Chambers
>
>
>
>

TestSwapValuation.java (14K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Quantlib available from Java + using Eclipse as IDE for building quantlib

johan.witters
Hi,

Indeed I have made some (small) updates to the existing swig interfaces and used them with swig to produce java wrappers of quantlib. As a testcase I have translated swapvaluation.cpp to TestSwapValuation.java (see attachement) and made changes to the swig interfaces making the example SwapValuation finally work in Java.

As mentioned in my first mail I have used eclipse + swig + cygwin + mingw + skwash to create an eclipse-workspace with the following projects:

1. quantlib: project to compile quantlib
2. quantlib skwash: project to generate java wrapper code & c wrapper
3. quantlib java wrapper: project to compile the java wrapper code
4. quantlib cpp wrapper: project to compile the cpp wrapper code
5. quantlib java test: project with TestSwapValuation.java

One way of sharing this would be that I make the updates to the swig interfaces available and secondly I would write a tutorial describing the above actions in detail. Would that be the appropriate way to proceed?

regards,

Johan

>-----Original Message-----
>From: Luigi Ballabio [mailto:[hidden email]]
>Sent: Wednesday, June 1, 2005 01:35 PM
>To: [hidden email]
>Cc: [hidden email], [hidden email],
>[hidden email]
>Subject: Re: [Quantlib-users] Quantlib available from Java + using Eclipse as IDE for building quantlib
>
>
>On 05/26/2005 10:44:25 AM, [hidden email] wrote:
>>
>> I just want to inform you about the fact that I'm working on a java
>> port of quantlib (using swig). This seems to work fine and I will try
>> to find time to join as a quantlib-swig-developer so I can make this
>> available for everyone. Is someone interested?
>
>I guess so. Are your wrappers a modification of the existing SWIG
>interfaces? I'd be interested in integrating them.
>
>Later,
> Luigi
>
>
>----------------------------------------
>
>Better to have an approximate answer to the right question than a
>precise
>answer to the wrong question.
>--  John Tukey as quoted by John Chambers
>
>
>
>

TestSwapValuation.java (14K) Download Attachment