MOOS 0.2375
/home/toby/moos-ivp/MOOS-2375-Oct0611/Tools/Simulation/Ocean/uMVS/SimEnvironment.h
Go to the documentation of this file.
00001 
00002 //
00003 //   MOOS - Mission Oriented Operating Suite 
00004 //  
00005 //   A suit of Applications and Libraries for Mobile Robotics Research 
00006 //   Copyright (C) 2001-2005 Massachusetts Institute of Technology and 
00007 //   Oxford University. 
00008 //    
00009 //   This software was written by Paul Newman at MIT 2001-2002 and Oxford 
00010 //   University 2003-2005. email: pnewman@robots.ox.ac.uk. 
00011 //      
00012 //   This file is part of a  MOOS Utility Component. 
00013 //        
00014 //   This program is free software; you can redistribute it and/or 
00015 //   modify it under the terms of the GNU General Public License as 
00016 //   published by the Free Software Foundation; either version 2 of the 
00017 //   License, or (at your option) any later version. 
00018 //          
00019 //   This program is distributed in the hope that it will be useful, 
00020 //   but WITHOUT ANY WARRANTY; without even the implied warranty of 
00021 //   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 
00022 //   General Public License for more details. 
00023 //            
00024 //   You should have received a copy of the GNU General Public License 
00025 //   along with this program; if not, write to the Free Software 
00026 //   Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 
00027 //   02111-1307, USA. 
00028 //
00030 
00031 
00032 // SimEnvironment.h: interface for the CSimEnvironment class.
00033 //
00035 
00036 #if !defined(AFX_SIMENVIRONMENT_H__1CF844D2_0B14_4CD1_A8E3_4A07FA3D81C7__INCLUDED_)
00037 #define AFX_SIMENVIRONMENT_H__1CF844D2_0B14_4CD1_A8E3_4A07FA3D81C7__INCLUDED_
00038 
00039 #if _MSC_VER > 1000
00040 #pragma once
00041 #endif // _MSC_VER > 1000
00042 
00043 #include <MOOSGenLib/MOOSGenLib.h>
00044 #include <MOOSUtilityLib/MOOSTerrain.h>
00045 #include <MOOSLIB/MOOSLib.h>
00046 
00047 #include "AcousticSignal.h"
00048 typedef std::list<CAcousticSignal>    ACOUSTIC_SIGNAL_LIST;
00049 
00050 class CSimEnvironment  
00051 {
00052 public:
00053     bool AddReport(const std::string & sName,const std::string & sData);
00054     double GetElapsedTime(double dfTimeNow);
00055     bool Clean();
00056     bool SetStartTime(double dfStartTime);
00057     double GetStartTime();
00058     bool AddSignal(CAcousticSignal NewSignal);
00059     bool RemoveOldSignals(double dfTimeNow);
00060     bool Initialise(const char * pTerrainFile="");
00061     CSimEnvironment();
00062     virtual ~CSimEnvironment();
00063 
00064     double  GetAltitude(double dfX,double dfY,double dfZ);
00065     double    GetDepth(double dfZ);
00066     double    GetTideHeight();
00067     double    m_dfTideHeight;
00068     double m_dfMagneticOffset;
00069 
00070     CMOOSTerrain m_Terrain;
00071 
00072     ACOUSTIC_SIGNAL_LIST    m_AcousticSignals;
00073     MOOSMSG_LIST            m_MailOut;
00074 
00075 protected:
00076     double m_dfStartTime;
00077 };
00078 
00079 #endif // !defined(AFX_SIMENVIRONMENT_H__1CF844D2_0B14_4CD1_A8E3_4A07FA3D81C7__INCLUDED_)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines