~ubuntu-branches/debian/stretch/openbabel/stretch

« back to all changes in this revision

Viewing changes to scripts/java/OBRotationData.java

  • Committer: Bazaar Package Importer
  • Author(s): Michael Banck
  • Date: 2008-07-22 23:54:58 UTC
  • mfrom: (3.1.10 intrepid)
  • Revision ID: james.westby@ubuntu.com-20080722235458-3o606czluviz4akx
Tags: 2.2.0-2
* Upload to unstable.
* debian/control: Updated descriptions.
* debian/patches/gauss_cube_format.patch: New patch, makes the 
  gaussian cube format available again.
* debian/rules (DEB_DH_MAKESHLIBS_ARGS_libopenbabel3): Removed.
* debian/rules (DEB_CONFIGURE_EXTRA_FLAGS): Likewise.
* debian/libopenbabel3.install: Adjust formats directory to single 
  version hierarchy.

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.36
 
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
 
 
10
public class OBRotationData extends OBGenericData {
 
11
  private long swigCPtr;
 
12
 
 
13
  protected OBRotationData(long cPtr, boolean cMemoryOwn) {
 
14
    super(openbabelJNI.SWIGOBRotationDataUpcast(cPtr), cMemoryOwn);
 
15
    swigCPtr = cPtr;
 
16
  }
 
17
 
 
18
  protected static long getCPtr(OBRotationData obj) {
 
19
    return (obj == null) ? 0 : obj.swigCPtr;
 
20
  }
 
21
 
 
22
  protected void finalize() {
 
23
    delete();
 
24
  }
 
25
 
 
26
  public synchronized void delete() {
 
27
    if(swigCPtr != 0 && swigCMemOwn) {
 
28
      swigCMemOwn = false;
 
29
      openbabelJNI.delete_OBRotationData(swigCPtr);
 
30
    }
 
31
    swigCPtr = 0;
 
32
    super.delete();
 
33
  }
 
34
 
 
35
  public OBRotationData() {
 
36
    this(openbabelJNI.new_OBRotationData(), true);
 
37
  }
 
38
 
 
39
  public void SetData(OBRotationData.RType RotorType, vectorDouble RotationalConstants, int SymmetryNumber) {
 
40
    openbabelJNI.OBRotationData_SetData(swigCPtr, this, RotorType.swigValue(), vectorDouble.getCPtr(RotationalConstants), RotationalConstants, SymmetryNumber);
 
41
  }
 
42
 
 
43
  public vectorDouble GetRotConsts() {
 
44
    return new vectorDouble(openbabelJNI.OBRotationData_GetRotConsts(swigCPtr, this), true);
 
45
  }
 
46
 
 
47
  public int GetSymmetryNumber() {
 
48
    return openbabelJNI.OBRotationData_GetSymmetryNumber(swigCPtr, this);
 
49
  }
 
50
 
 
51
  public OBRotationData.RType GetRotorType() {
 
52
    return OBRotationData.RType.swigToEnum(openbabelJNI.OBRotationData_GetRotorType(swigCPtr, this));
 
53
  }
 
54
 
 
55
  public final static class RType {
 
56
    public final static RType UNKNOWN = new RType("UNKNOWN");
 
57
    public final static RType ASYMMETRIC = new RType("ASYMMETRIC");
 
58
    public final static RType SYMMETRIC = new RType("SYMMETRIC");
 
59
    public final static RType LINEAR = new RType("LINEAR");
 
60
 
 
61
    public final int swigValue() {
 
62
      return swigValue;
 
63
    }
 
64
 
 
65
    public String toString() {
 
66
      return swigName;
 
67
    }
 
68
 
 
69
    public static RType swigToEnum(int swigValue) {
 
70
      if (swigValue < swigValues.length && swigValue >= 0 && swigValues[swigValue].swigValue == swigValue)
 
71
        return swigValues[swigValue];
 
72
      for (int i = 0; i < swigValues.length; i++)
 
73
        if (swigValues[i].swigValue == swigValue)
 
74
          return swigValues[i];
 
75
      throw new IllegalArgumentException("No enum " + RType.class + " with value " + swigValue);
 
76
    }
 
77
 
 
78
    private RType(String swigName) {
 
79
      this.swigName = swigName;
 
80
      this.swigValue = swigNext++;
 
81
    }
 
82
 
 
83
    private RType(String swigName, int swigValue) {
 
84
      this.swigName = swigName;
 
85
      this.swigValue = swigValue;
 
86
      swigNext = swigValue+1;
 
87
    }
 
88
 
 
89
    private RType(String swigName, RType swigEnum) {
 
90
      this.swigName = swigName;
 
91
      this.swigValue = swigEnum.swigValue;
 
92
      swigNext = this.swigValue+1;
 
93
    }
 
94
 
 
95
    private static RType[] swigValues = { UNKNOWN, ASYMMETRIC, SYMMETRIC, LINEAR };
 
96
    private static int swigNext = 0;
 
97
    private final int swigValue;
 
98
    private final String swigName;
 
99
  }
 
100
 
 
101
}