/*
MobileRobots Advanced Robotics Navigation and Localization (ARNL)
Version 1.7.1

Copyright (C) 2004, 2005 ActivMedia Robotics LLC
Copyright (C) 2006, 2007, 2008, 2009 MobileRobots Inc.

All Rights Reserved.

MobileRobots Inc does not make any representations about the
suitability of this software for any purpose.  It is provided "as is"
without express or implied warranty.

The license for this software is distributed as LICENSE.txt in the top
level directory.

robots@mobilerobots.com
MobileRobots
10 Columbia Drive
Amherst, NH 03031
800-639-9481

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

package com.mobilerobots.BaseArnl;

  import com.mobilerobots.Aria.*;
  import com.mobilerobots.ArNetworking.*;

public class ArActionLost extends ArAction {
  private long swigCPtr;

  /* for internal use by swig only */
  public ArActionLost(long cPtr, boolean cMemoryOwn) {
    super(BaseArnlJavaJNI.SWIGArActionLostUpcast(cPtr), cMemoryOwn);
    swigCPtr = cPtr;
  }

  /* for internal use by swig only */
  public static long getCPtr(ArActionLost obj) {
    return (obj == null) ? 0 : obj.swigCPtr;
  }

  protected void finalize() {
    delete();
  }

  public void delete() {
    if(swigCPtr != 0 && swigCMemOwn) {
      swigCMemOwn = false;
      BaseArnlJavaJNI.delete_ArActionLost(swigCPtr);
    }
    swigCPtr = 0;
    super.delete();
  }

  public ArActionLost(ArBaseLocalizationTask locTask, ArPathPlanningTask pathTask, ArServerMode serverMode, String name) {
    this(BaseArnlJavaJNI.new_ArActionLost__SWIG_0(ArBaseLocalizationTask.getCPtr(locTask), ArPathPlanningTask.getCPtr(pathTask), ArServerMode.getCPtr(serverMode), name), true);
  }

  public ArActionLost(ArBaseLocalizationTask locTask, ArPathPlanningTask pathTask, ArServerMode serverMode) {
    this(BaseArnlJavaJNI.new_ArActionLost__SWIG_1(ArBaseLocalizationTask.getCPtr(locTask), ArPathPlanningTask.getCPtr(pathTask), ArServerMode.getCPtr(serverMode)), true);
  }

  public ArActionLost(ArBaseLocalizationTask locTask, ArPathPlanningTask pathTask) {
    this(BaseArnlJavaJNI.new_ArActionLost__SWIG_2(ArBaseLocalizationTask.getCPtr(locTask), ArPathPlanningTask.getCPtr(pathTask)), true);
  }

  public ArActionDesired fire(ArActionDesired currentDesired) {
    long cPtr = BaseArnlJavaJNI.ArActionLost_fire(swigCPtr, ArActionDesired.getCPtr(currentDesired));
    return (cPtr == 0) ? null : new ArActionDesired(cPtr, false);
  }

  public ArActionDesired getDesired() {
    long cPtr = BaseArnlJavaJNI.ArActionLost_getDesired(swigCPtr);
    return (cPtr == 0) ? null : new ArActionDesired(cPtr, false);
  }

  public void enable() {
    BaseArnlJavaJNI.ArActionLost_enable(swigCPtr);
  }

  public void disable() {
    BaseArnlJavaJNI.ArActionLost_disable(swigCPtr);
  }

  public boolean isEnabled() {
    return BaseArnlJavaJNI.ArActionLost_isEnabled(swigCPtr);
  }

  public ArFunctor getEnableCB() {
    long cPtr = BaseArnlJavaJNI.ArActionLost_getEnableCB(swigCPtr);
    return (cPtr == 0) ? null : new ArFunctor(cPtr, false);
  }

  public ArFunctor getDisableCB() {
    long cPtr = BaseArnlJavaJNI.ArActionLost_getDisableCB(swigCPtr);
    return (cPtr == 0) ? null : new ArFunctor(cPtr, false);
  }

}
