/****************************************************************************/
/* Copyright (c) 2000 MBARI                                                 */
/* MBARI Proprietary Information. All rights reserved.                      */
/****************************************************************************/
/* Summary  :                                                               */
/* Filename : simulatedFuelCell.cc                                          */
/* Author   :                                                               */
/* Project  :                                                               */
/* Version  : 1.0                                                           */
/* Created  : 06/21/2000                                                    */
/* Modified :                                                               */
/* Archived :                                                               */
/****************************************************************************/
/* Modification History:                                                    */
/****************************************************************************/
/*-----------------------------------------------------------------------*
  PROGRAM: simulatedFuelCellServer

  DESCRIPTION: Binary wrapper for simulated fuel cell server 

  AUTHOR: John Rieffel

  $Id: _simulatedFuelCell.cc,v 1.1 2000/07/17 18:39:20 jrieffel Exp $
  *-----------------------------------------------------------------------*/

#include "SimulatedFuelCell.h"
#include "Syslog.h"
#include "System.h"

// these are the three variables that must be defined globally!
extern "C" {
Boolean debug_flag=FALSE;       // enable debug statements 
nid_t target_node;   
char *ProgramName;    
};


int main( int argc, char **argv )
{

  target_node = 2; 
  ProgramName = argv[0];

  // Set task priority
  if (System::setTaskPriority(CriticalServerPriority) == -1)
    return 1;

  try {

    SimulatedFuelCell *simulatedFuelCell = new SimulatedFuelCell();

    simulatedFuelCell->run();
  }
  catch( Exception e ) {
    Syslog::write("simulatedfuelCell -- Caught exception: %s\n", e.msg );
  }
  catch( ... ) {
    Syslog::write("simulatedfuelCell -- Caught exception!\n");
  }

  //  delete fuelcellserver;

  return 0;
}
