~ubuntu-branches/ubuntu/vivid/quantlib-swig/vivid

« back to all changes in this revision

Viewing changes to Java/org/quantlib/MCDiscreteArithmeticASEngine.java

  • Committer: Bazaar Package Importer
  • Author(s): Dirk Eddelbuettel
  • Date: 2009-12-03 17:01:53 UTC
  • mfrom: (1.1.9 upstream) (2.1.6 sid)
  • Revision ID: james.westby@ubuntu.com-20091203170153-x5yrwybjsl2q11vw
* New upstream release

* debian/control: Updated Standards-Version: to current value

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* ----------------------------------------------------------------------------
 
2
 * This file was automatically generated by SWIG (http://www.swig.org).
 
3
 * Version 1.3.40
 
4
 *
 
5
 * Do not make changes to this file unless you know what you are doing--modify
 
6
 * the SWIG interface file instead.
 
7
 * ----------------------------------------------------------------------------- */
 
8
 
 
9
package org.quantlib;
 
10
 
 
11
public class MCDiscreteArithmeticASEngine extends PricingEngine {
 
12
  private long swigCPtr;
 
13
 
 
14
  protected MCDiscreteArithmeticASEngine(long cPtr, boolean cMemoryOwn) {
 
15
    super(QuantLibJNI.SWIGMCDiscreteArithmeticASEngineUpcast(cPtr), cMemoryOwn);
 
16
    swigCPtr = cPtr;
 
17
  }
 
18
 
 
19
  protected static long getCPtr(MCDiscreteArithmeticASEngine obj) {
 
20
    return (obj == null) ? 0 : obj.swigCPtr;
 
21
  }
 
22
 
 
23
  protected void finalize() {
 
24
    delete();
 
25
  }
 
26
 
 
27
  public synchronized void delete() {
 
28
    if (swigCPtr != 0) {
 
29
      if (swigCMemOwn) {
 
30
        swigCMemOwn = false;
 
31
        QuantLibJNI.delete_MCDiscreteArithmeticASEngine(swigCPtr);
 
32
      }
 
33
      swigCPtr = 0;
 
34
    }
 
35
    super.delete();
 
36
  }
 
37
 
 
38
  public MCDiscreteArithmeticASEngine(GeneralizedBlackScholesProcess process, String traits, boolean brownianBridge, boolean antitheticVariate, int requiredSamples, double requiredTolerance, int maxSamples, int seed) {
 
39
    this(QuantLibJNI.new_MCDiscreteArithmeticASEngine(GeneralizedBlackScholesProcess.getCPtr(process), process, traits, brownianBridge, antitheticVariate, requiredSamples, requiredTolerance, maxSamples, seed), true);
 
40
  }
 
41
 
 
42
}