/* ----------------------------------------------------------------------------
 * This file was automatically generated by SWIG (http://www.swig.org).
 * Version 1.3.38
 *
 * Do not make changes to this file unless you know what you are doing--modify
 * the SWIG interface file instead.
 * ----------------------------------------------------------------------------- */

namespace libsbml {

using System;
using System.Runtime.InteropServices;

public class Species : SBase {
	private HandleRef swigCPtr;
	
	internal Species(IntPtr cPtr, bool cMemoryOwn) : base(libsbmlPINVOKE.SpeciesUpcast(cPtr), cMemoryOwn)
	{
		//super(libsbmlPINVOKE.SpeciesUpcast(cPtr), cMemoryOwn);
		swigCPtr = new HandleRef(this, cPtr);
	}
	
	internal static HandleRef getCPtr(Species obj)
	{
		return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
	}
	
	internal static HandleRef getCPtrAndDisown (Species obj)
	{
		HandleRef ptr = new HandleRef(null, IntPtr.Zero);
		
		if (obj != null)
		{
			ptr             = obj.swigCPtr;
			obj.swigCMemOwn = false;
		}
		
		return ptr;
	}

  ~Species() {
    Dispose();
  }

  public override void Dispose() {
    lock(this) {
      if(swigCPtr.Handle != IntPtr.Zero && swigCMemOwn) {
        swigCMemOwn = false;
        libsbmlPINVOKE.delete_Species(swigCPtr);
      }
      swigCPtr = new HandleRef(null, IntPtr.Zero);
      GC.SuppressFinalize(this);
      base.Dispose();
    }
  }

  public Species(string id, string name) : this(libsbmlPINVOKE.new_Species__SWIG_0(id, name), true) {
  }

  public Species(string id) : this(libsbmlPINVOKE.new_Species__SWIG_1(id), true) {
  }

  public Species() : this(libsbmlPINVOKE.new_Species__SWIG_2(), true) {
  }

  public Species(long level, long version, XMLNamespaces xmlns) : this(libsbmlPINVOKE.new_Species__SWIG_3(level, version, XMLNamespaces.getCPtr(xmlns)), true) {
  }

  public Species(long level, long version) : this(libsbmlPINVOKE.new_Species__SWIG_4(level, version), true) {
  }

  public Species(Species orig) : this(libsbmlPINVOKE.new_Species__SWIG_5(Species.getCPtr(orig)), true) {
    if (libsbmlPINVOKE.SWIGPendingException.Pending) throw libsbmlPINVOKE.SWIGPendingException.Retrieve();
  }

  public new Species clone() {
    IntPtr cPtr = libsbmlPINVOKE.Species_clone(swigCPtr);
    Species ret = (cPtr == IntPtr.Zero) ? null : new Species(cPtr, true);
    return ret;
  }

  public void initDefaults() {
    libsbmlPINVOKE.Species_initDefaults(swigCPtr);
  }

  public string getSpeciesType() {
    string ret = libsbmlPINVOKE.Species_getSpeciesType(swigCPtr);
    return ret;
  }

  public string getCompartment() {
    string ret = libsbmlPINVOKE.Species_getCompartment(swigCPtr);
    return ret;
  }

  public double getInitialAmount() {
    double ret = libsbmlPINVOKE.Species_getInitialAmount(swigCPtr);
    return ret;
  }

  public double getInitialConcentration() {
    double ret = libsbmlPINVOKE.Species_getInitialConcentration(swigCPtr);
    return ret;
  }

  public string getSubstanceUnits() {
    string ret = libsbmlPINVOKE.Species_getSubstanceUnits(swigCPtr);
    return ret;
  }

  public string getSpatialSizeUnits() {
    string ret = libsbmlPINVOKE.Species_getSpatialSizeUnits(swigCPtr);
    return ret;
  }

  public string getUnits() {
    string ret = libsbmlPINVOKE.Species_getUnits(swigCPtr);
    return ret;
  }

  public bool getHasOnlySubstanceUnits() {
    bool ret = libsbmlPINVOKE.Species_getHasOnlySubstanceUnits(swigCPtr);
    return ret;
  }

  public bool getBoundaryCondition() {
    bool ret = libsbmlPINVOKE.Species_getBoundaryCondition(swigCPtr);
    return ret;
  }

  public int getCharge() {
    int ret = libsbmlPINVOKE.Species_getCharge(swigCPtr);
    return ret;
  }

  public bool getConstant() {
    bool ret = libsbmlPINVOKE.Species_getConstant(swigCPtr);
    return ret;
  }

  public bool isSetSpeciesType() {
    bool ret = libsbmlPINVOKE.Species_isSetSpeciesType(swigCPtr);
    return ret;
  }

  public bool isSetCompartment() {
    bool ret = libsbmlPINVOKE.Species_isSetCompartment(swigCPtr);
    return ret;
  }

  public bool isSetInitialAmount() {
    bool ret = libsbmlPINVOKE.Species_isSetInitialAmount(swigCPtr);
    return ret;
  }

  public bool isSetInitialConcentration() {
    bool ret = libsbmlPINVOKE.Species_isSetInitialConcentration(swigCPtr);
    return ret;
  }

  public bool isSetSubstanceUnits() {
    bool ret = libsbmlPINVOKE.Species_isSetSubstanceUnits(swigCPtr);
    return ret;
  }

  public bool isSetSpatialSizeUnits() {
    bool ret = libsbmlPINVOKE.Species_isSetSpatialSizeUnits(swigCPtr);
    return ret;
  }

  public bool isSetUnits() {
    bool ret = libsbmlPINVOKE.Species_isSetUnits(swigCPtr);
    return ret;
  }

  public bool isSetCharge() {
    bool ret = libsbmlPINVOKE.Species_isSetCharge(swigCPtr);
    return ret;
  }

  public void setSpeciesType(string sid) {
    libsbmlPINVOKE.Species_setSpeciesType(swigCPtr, sid);
  }

  public void setCompartment(string sid) {
    libsbmlPINVOKE.Species_setCompartment(swigCPtr, sid);
  }

  public void setInitialAmount(double value) {
    libsbmlPINVOKE.Species_setInitialAmount(swigCPtr, value);
  }

  public void setInitialConcentration(double value) {
    libsbmlPINVOKE.Species_setInitialConcentration(swigCPtr, value);
  }

  public void setSubstanceUnits(string sid) {
    libsbmlPINVOKE.Species_setSubstanceUnits(swigCPtr, sid);
  }

  public void setSpatialSizeUnits(string sid) {
    libsbmlPINVOKE.Species_setSpatialSizeUnits(swigCPtr, sid);
  }

  public void setUnits(string sname) {
    libsbmlPINVOKE.Species_setUnits(swigCPtr, sname);
  }

  public void setHasOnlySubstanceUnits(bool value) {
    libsbmlPINVOKE.Species_setHasOnlySubstanceUnits(swigCPtr, value);
  }

  public void setBoundaryCondition(bool value) {
    libsbmlPINVOKE.Species_setBoundaryCondition(swigCPtr, value);
  }

  public void setCharge(int value) {
    libsbmlPINVOKE.Species_setCharge(swigCPtr, value);
  }

  public void setConstant(bool value) {
    libsbmlPINVOKE.Species_setConstant(swigCPtr, value);
  }

  public void unsetSpeciesType() {
    libsbmlPINVOKE.Species_unsetSpeciesType(swigCPtr);
  }

  public void unsetInitialAmount() {
    libsbmlPINVOKE.Species_unsetInitialAmount(swigCPtr);
  }

  public void unsetInitialConcentration() {
    libsbmlPINVOKE.Species_unsetInitialConcentration(swigCPtr);
  }

  public void unsetSubstanceUnits() {
    libsbmlPINVOKE.Species_unsetSubstanceUnits(swigCPtr);
  }

  public void unsetSpatialSizeUnits() {
    libsbmlPINVOKE.Species_unsetSpatialSizeUnits(swigCPtr);
  }

  public void unsetUnits() {
    libsbmlPINVOKE.Species_unsetUnits(swigCPtr);
  }

  public void unsetCharge() {
    libsbmlPINVOKE.Species_unsetCharge(swigCPtr);
  }

  public UnitDefinition getDerivedUnitDefinition() {
    IntPtr cPtr = libsbmlPINVOKE.Species_getDerivedUnitDefinition(swigCPtr);
    UnitDefinition ret = (cPtr == IntPtr.Zero) ? null : new UnitDefinition(cPtr, false);
    return ret;
  }

  public override int getTypeCode() {
    int ret = libsbmlPINVOKE.Species_getTypeCode(swigCPtr);
    return ret;
  }

  public override string getElementName() {
    string ret = libsbmlPINVOKE.Species_getElementName(swigCPtr);
    return ret;
  }

}

}
