/****************************************************************************/
/* Copyright (c) 2000 MBARI                                                 */
/* MBARI Proprietary Information. All rights reserved.                      */
/****************************************************************************/
/* Summary  :                                                               */
/* Filename : FireTheGulperAMC.cc					    */
/* Author   : hjt                                                           */
/* Project  :                                                               */
/* Version  : 1.0                                                           */
/* Created  : 10/20/2005                                                    */
/* Modified :                                                               */
/* Archived :                                                               */
/****************************************************************************/
/* Modification History:                                                    */
/****************************************************************************/
#include "MissionTimeAttribute.h"
#include "IntegerAttribute.h"
#include "FireTheGulperAMC.h"
#include "Syslog.h"

FireTheGulperAMC::FireTheGulperAMC()
   : Behavior(FireTheGulperAMCBehaviorName, NonSequential)
{
   Attribute::Input *input;

   attributes.add(new IntegerAttribute("gulperToFire",
				       "gulperToFire",
				       &_gulperToFire));

   // Default to run forever
   input = new Attribute::Input("endTime", NoTimeLimitMnem);
   attributes.parse(input);
   delete input;


   try 
   {
     _smartSampler = new SmartSamplerIF(SmartSamplerIFServerName);
   } 
   catch(...)
   {
      Syslog::write("FireTheGulperAMC:: -- Failed to initialize connection "
      		    "to SmartSamplerIF\n");
      _smartSampler = NULL;
   }
}


FireTheGulperAMC::~FireTheGulperAMC()
{
   delete _smartSampler ;
}

Boolean FireTheGulperAMC::validInput()
{
  return True;
}

void FireTheGulperAMC::execute()
{
//  _smartSampler->gulperFire(_gulperToFire);

   return;
}






