From: smazzucca <sma...@co...> - 2013-12-24 15:06:45
|
Luigi, I definitely don't have a constructor (see attachment). Can I see your copy of Callability.cs ? Thank you, Simon From: Luigi Ballabio [via QuantLib] [mailto:ml-...@n7...] Sent: Tuesday, December 24, 2013 6:02 AM To: Simon Mazzucca Subject: Re: Adding functions to QuantLib SWIG The constructor should be defined (it is in my copy of the generated Callability.cs), and should take three arguments. I'm not sure about the syntax for accessing static class members, so correct things like Callability.Call if I'm writing them wrong; but does something like the following work? CallabilityPrice price = new CallabilityPrice(100.0, CallabilityPrice.Type.Clean); Callability callability = new Callability(price, Callability.Call, Date(25, Month.December, 2016)); Also, it's strange that you should have to change the types in the bond constructor. But I guess that's a problem for another time. Later, Luigi On Thu, Dec 19, 2013 at 8:38 PM, smazzucca <[hidden email]</user/SendEmail.jtp?type=node&node=14774&i=0>> wrote: > Luigi, > > I got this to work (I was doing something wrong), so that's great because I > know going forward I can add missing interfaces! > > Predictably, I am now stuck at the next step... The CallableFixedRateBond C# > constructor expects a SWIGTYPE_p_CallabilitySchedule type, but that seemed > wrong, so I changed it to use a CallabilitySchedule which seems to work. > > To create a CallabilitySchedule I need to pass a Callability instance and > that's where I get stuck. > > Although I can declare a Callability variable: > Callability callability; //Works > > I don't have access to the constructor: > Callability callability = new Callability(); //The type > 'QuantLib.Callability' has no constructors defined > > Am I on the right track ? Can you shed some light, please ? > > Thank you, > Simon > > > > -- > View this message in context: http://quantlib.10058.n7.nabble.com/Adding-functions-to-QuantLib-SWIG-tp6140p14761.html > Sent from the quantlib-users mailing list archive at Nabble.com. > > ------------------------------------------------------------------------------ > Rapidly troubleshoot problems before they affect your business. Most IT > organizations don't have a clear picture of how application performance > affects their revenue. With AppDynamics, you get 100% visibility into your > Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro! > http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk > _______________________________________________ > QuantLib-users mailing list > [hidden email]</user/SendEmail.jtp?type=node&node=14774&i=1> > https://lists.sourceforge.net/lists/listinfo/quantlib-users -- <https://implementingquantlib.blogspot.com> <https://twitter.com/lballabio> ------------------------------------------------------------------------------ Rapidly troubleshoot problems before they affect your business. Most IT organizations don't have a clear picture of how application performance affects their revenue. With AppDynamics, you get 100% visibility into your Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro! http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk _______________________________________________ QuantLib-users mailing list [hidden email]</user/SendEmail.jtp?type=node&node=14774&i=2> https://lists.sourceforge.net/lists/listinfo/quantlib-users ________________________________ If you reply to this email, your message will be added to the discussion below: http://quantlib.10058.n7.nabble.com/Adding-functions-to-QuantLib-SWIG-tp6140p14774.html To unsubscribe from Adding functions to QuantLib SWIG, click here<http://quantlib.10058.n7.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=6140&code=c21henp1Y2NhQGNvbmNlcHRvbmVsbGMuY29tfDYxNDB8LTE2OTI3MzY5NzU=>. NAML<http://quantlib.10058.n7.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml> This e-mail, including its contents and attachments, if any, is confidential and is intended only for the addressee. If you are not the intended recipient, you are hereby notified that any use, dissemination or distribution of this communication is strictly forbidden. If you received this e-mail in error please immediately notify the sender and delete or destroy this and all copies of this message and all attachments. Any unauthorized disclosure, use, distribution, or reproduction of this message or any attachments is prohibited and may be unlawful. Callability.cs (3K) <http://quantlib.10058.n7.nabble.com/attachment/14777/0/Callability.cs> -- View this message in context: http://quantlib.10058.n7.nabble.com/Adding-functions-to-QuantLib-SWIG-tp6140p14777.html Sent from the quantlib-users mailing list archive at Nabble.com. |