/****************************************************************************/
/* Copyright (c) 2000 MBARI                                                 */
/* MBARI Proprietary Information. All rights reserved.                      */
/****************************************************************************/
/* Summary  :                                                               */
/* Filename : WorkSite.h                                                    */
/* Author   :                                                               */
/* Project  :                                                               */
/* Version  : 1.0                                                           */
/* Created  : 02/07/2000                                                    */
/* Modified :                                                               */
/* Archived :                                                               */
/****************************************************************************/
/* Modification History:                                                    */
/*                                                                          */
/* 6/11/00 - Added sound speed and transponder chan attributes-Eickstedt/MIT*/
/****************************************************************************/
#ifndef _WorkSite_H
#define _WorkSite_H
#include "WorkSiteIF_SK.h"
#include "DynamicArray.h"
#include "Attributes.h"
#include "Exception.h"

#include "TransponderList.h"

/*
CLASS 
WorkSite

DESCRIPTION
TaskServer for WorkSite

AUTHOR
Tom O'Reilly
*/
class WorkSite : public WorkSiteIF_SK {

public:

  class Error : public Exception {

  public:

    Error(char *message);

    ~Error();
  };

  WorkSite(const char *filename);
  ~WorkSite();


  Attributes *attributes;

  TransponderList *transponders;

protected:

  virtual double latitude();
  virtual double longitude();
  virtual long utmZone();
  virtual double magneticVariation();
  virtual short nLblTransponders();
  virtual double soundSpeed();

  virtual long getTransponder(short transponderNo, 
			      double *easting, double *northing, 
			      double *depth, long *turnaroundTime, long *channel);

  double _soundSpeed;
  double _latitude;
  double _longitude;
  double _magneticVariation;
  long _utmZone;

  virtual int spawnAuxTasks();  

  int loadWorkSite( const char *filename );

};

#endif

