- Main Page
- Namespaces
- Classes
- Files
- Related Pages

# /Users/fpy/titan-1-5-MBARI/Mers/Estimation/Discrete/ModeEstimationPerformance/MEDebugInterface.h

    00001 //=============================================================================
    00002 // MEDebugInterface.h: Debug interface for all Discrete ME classes
    00003 //
    00004 // Copyright (c) 2005           Model-based Embedded and Robotic Systems Group
    00005 // All Rights Reserved          Massachusetts Institute of Technology
    00006 //
    00007 // This software is provided as is. Model-based Embedded and Robotic Systems
    00008 // (MERS) group does not assume any responsibility.
    00009 //
    00010 // Author:                      Oliver B. Martin
    00011 // Organization:                Model-based Embedded and Robotic Systems Group
    00012 //                              Massachusetts Institute of Technology
    00013 //
    00014 // The MEDebugInterface is a pure virtual class that provides all the functions
    00015 // necessary for ME debug / performance testing. All the ME debug classes
    00016 // should inheret this class in order to do performance testing on it.
    00017 //
    00018 //=============================================================================
    00019
    00020
    00021 #if !defined(_MEDEBUGINTERFACE_H_)
    00022 #define _MEDEBUGINTERFACE_H_
    00023
    00024 #if _MSC_VER > 1000
    00025 #pragma once
    00026 #endif // _MSC_VER > 1000
    00027
    00028 namespace Mers {
    00029         namespace Estimation {
    00030                 namespace Discrete {
    00031                         class ModeEstimatorBase;
    00032
    00033                         namespace ModeEstimationPerformance {
    00034
    00045                                 class MEDebugInterface
    00046                                 {
    00047
    00048                                 public:
    00049                                         //-----------------------------------------
    00050                                         // Constructors
    00051                                         //-----------------------------------------
    00052
    00056                                         MEDebugInterface(Mers::Estimation::Discrete::ModeEstimatorBase * const me)
    00057                                                 : myME(me) {};
    00058
    00059                                         //-----------------------------------------
    00060                                         // Destructors
    00061                                         //-----------------------------------------
    00062
    00066                                         virtual ~MEDebugInterface()
    00067                                         {
    00068                                                 delete myME;
    00069                                         };
    00070
    00071
    00072                                         //-----------------------------------------
    00073                                         // Functions
    00074                                         //-----------------------------------------
    00075
    00080                                         Mers::Estimation::Discrete::ModeEstimatorBase *         getME(void) const
    00081                                         {
    00082                                                 return myME;
    00083                                         };
    00084
    00087                                         virtual const Trajectories *    findNextTrajectories(void) = 0;
    00088                                 //                                              {return myME->findNextTrajectories();};
    00089                                         virtual const Estimate *        progressToEstimate(void) = 0;
    00090                                 //                                              {return myME->progressToEstimate();};
    00091                                         virtual const Estimate *        findModeEstimate(void) = 0;
    00092                                 //                                              {return myME->findModeEstimate();};
    00093                                         virtual void                    setNumberTrajectories(unsigned int k) = 0;
    00094                                 //                                              {return myME->setNumberTrajectories(k);};
    00095                                         virtual void                    setDebug(const unsigned short db) = 0;
    00096                                 //                                              {return myME->setDebug(db);};
    00097                                         virtual void                    showNextTrajectories(std::ostream &out) const = 0;
    00098                                 //                                              {return myME->showNextTrajectories(out);};
    00099                                         virtual void                    showCurrentTrajectories(std::ostream &out) const = 0;
    00100                                 //                                              {return myME->showCurrentTrajectories(out);};
    00101                                         virtual unsigned int            getNumConflictsGenerated(void) const = 0;
    00102                                 //                                              {return myME->getNumConflictsGenerated();};
    00103                                         virtual bool                    resetCommandsAndObservations(void) = 0;
    00104                                 //                                              {return myME->resetCommandsAndObservations();};
    00105                                         virtual unsigned int            getNumEstimatesGenerated(void) const = 0;
    00106                                 //                                              {return myME->getNumEstimatesGenerated();};
    00107                                         virtual unsigned int            getNumberFaultTransitions(void) = 0;
    00108                                 //                                              {return myME->getNumberFaultTransitions();};
    00109                                         virtual unsigned int            getEstimateFaultTransitions(unsigned int estIndex) = 0;
    00110                                 //                                              {return myME->getEstimateFaultTransitions(estIndex);};
    00111                                         virtual unsigned int            getNumCandidatesGenerated(void) const = 0;
    00112                                 //                                              {return myME->getNumCandidatesGenerated();};
    00113
    00114
    00115                                         //-----------------------------------------
    00116                                         // Data Members
    00117                                         //-----------------------------------------
    00118
    00120                                         Mers::Estimation::Discrete::ModeEstimatorBase * const myME;
    00121                                 };
    00122                         }
    00123                 }
    00124         }
    00125 }
    00126
    00127 #endif // !defined(_MEDEBUGINTERFACE_H_)