thetaPerDay missing in SWIG?

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

thetaPerDay missing in SWIG?

Ken Anderson-2
I have moved to 0.3.12 specifically because I need thetaPerDay() for  
VanillaOption, both in csharp and java.  The documentation shows that  
thetaPerDay() is available in the VanillaOption class.

Unfortunately, the Java SWIG files do not have this method, and the  
class it's declared in, OneAssetOption, isn't even part of the class  
hierarchy on the Java side.

Can someone please help me work this out?  Is there something missing  
in the SWIG definition files?

Thanks,
Ken



Reply | Threaded
Open this post in threaded view
|

Re: thetaPerDay missing in SWIG?

Ken Anderson-2
Boy, I love answering my own questions.

The SWIG did not have thetaPerDay(), so I modified the SWIG input  
file, regenerated, and rebuilt, and everything works as expected.

Is there a way to integrate my SWIG change without a lot of trouble?  
Or can I just send the file to someone?

Thanks,
Ken

On Apr 26, 2006, at 5:28 PM, Ken Anderson wrote:

> I have moved to 0.3.12 specifically because I need thetaPerDay()  
> for VanillaOption, both in csharp and java.  The documentation  
> shows that thetaPerDay() is available in the VanillaOption class.
>
> Unfortunately, the Java SWIG files do not have this method, and the  
> class it's declared in, OneAssetOption, isn't even part of the  
> class hierarchy on the Java side.
>
> Can someone please help me work this out?  Is there something  
> missing in the SWIG definition files?
>
> Thanks,
> Ken
>
>
>
> -------------------------------------------------------
> Using Tomcat but need to do more? Need to support web services,  
> security?
> Get stuff done quickly with pre-integrated technology to make your  
> job easier
> Download IBM WebSphere Application Server v.1.0.1 based on Apache  
> Geronimo
> http://sel.as-us.falkag.net/sel?
> cmd=lnk&kid=120709&bid=263057&dat=121642
> _______________________________________________
> Quantlib-users mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/quantlib-users



Reply | Threaded
Open this post in threaded view
|

Re: thetaPerDay missing in SWIG?

Luigi Ballabio
On 04/27/2006 02:20:48 PM, Ken Anderson wrote:
> Boy, I love answering my own questions.

I love it when users answer their own questions, too :)

> The SWIG did not have thetaPerDay(), so I modified the SWIG input  
> file, regenerated, and rebuilt, and everything works as expected.
>
> Is there a way to integrate my SWIG change without a lot of trouble?  
> Or can I just send the file to someone?

Just send the file (or better yet, a patch) to me.

Luigi


----------------------------------------

The First Rule of Optimization: Don't do it.
The Second Rule of Optimization (For experts only): Don't do it yet.
-- Michael Jackson