/* ---------------------------------------------------------------------------- * This file was automatically generated by SWIG (http://www.swig.org). * Version 1.3.31 * * Do not make changes to this file unless you know what you are doing--modify * the SWIG interface file instead. * ----------------------------------------------------------------------------- */ package hep.aida.swig; import hep.aida.jni.AIDAJNIUtil; public class IFitParameterSettings implements hep.aida.IFitParameterSettings { private long swigCPtr; protected boolean swigCMemOwn; public IFitParameterSettings(long cPtr, boolean cMemoryOwn) { swigCMemOwn = cMemoryOwn; swigCPtr = cPtr; } protected static long getCPtr(hep.aida.IFitParameterSettings obj) { if (obj instanceof IFitParameterSettings) { return (obj == null) ? 0 : ((IFitParameterSettings)obj).swigCPtr; } else { long cPtr = AIDAJNI.new_IFitParameterSettings(); // FIXME, memory leak if Java class gets finalized, since C++ director is not freed. AIDAJNI.IFitParameterSettings_director_connect(obj, cPtr, true, true); return cPtr; } } protected void finalize() { delete(); } public synchronized void delete() { if(swigCPtr != 0 && swigCMemOwn) { swigCMemOwn = false; AIDAJNI.delete_IFitParameterSettings(swigCPtr); } swigCPtr = 0; } protected void swigDirectorDisconnect() { swigCMemOwn = false; delete(); } public void swigReleaseOwnership() { swigCMemOwn = false; AIDAJNI.IFitParameterSettings_change_ownership(this, swigCPtr, false); } public void swigTakeOwnership() { swigCMemOwn = true; AIDAJNI.IFitParameterSettings_change_ownership(this, swigCPtr, true); } public String name() { return AIDAJNI.IFitParameterSettings_name(swigCPtr, this); } public double stepSize() { return AIDAJNI.IFitParameterSettings_stepSize(swigCPtr, this); } public double upperBound() { return AIDAJNI.IFitParameterSettings_upperBound(swigCPtr, this); } public double lowerBound() { return AIDAJNI.IFitParameterSettings_lowerBound(swigCPtr, this); } public boolean isBound() { return AIDAJNI.IFitParameterSettings_isBound(swigCPtr, this); } public boolean isFixed() { return AIDAJNI.IFitParameterSettings_isFixed(swigCPtr, this); } public void setStepSize(double step) { AIDAJNI.IFitParameterSettings_setStepSize(swigCPtr, this, step); } public void setBounds(double lo, double up) { AIDAJNI.IFitParameterSettings_setBounds(swigCPtr, this, lo, up); } public void removeBounds() { AIDAJNI.IFitParameterSettings_removeBounds(swigCPtr, this); } public void setFixed(boolean isFixed) { AIDAJNI.IFitParameterSettings_setFixed(swigCPtr, this, isFixed); } public void setLowerBound(double lowerBound) { AIDAJNI.IFitParameterSettings_setLowerBound(swigCPtr, this, lowerBound); } public void setUpperBound(double upperBound) { AIDAJNI.IFitParameterSettings_setUpperBound(swigCPtr, this, upperBound); } public void reset() { AIDAJNI.IFitParameterSettings_reset(swigCPtr, this); } public IFitParameterSettings() { this(AIDAJNI.new_IFitParameterSettings(), true); AIDAJNI.IFitParameterSettings_director_connect(this, swigCPtr, swigCMemOwn, true); } }