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

# /Users/fpy/titan-1-5-MBARI/Mers/Estimation/Discrete/ProbabilityRules/IndexedRule.h

    00001 //=============================================================================
    00002 // IndexedRule.h: interface for the IndexedRule class.
    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 // This class inherits from the rule class. In addition to
    00015 // having an array of base model assignments, the observation combination rule
    00016 // stores an index value.
    00017 //
    00018 //=============================================================================
    00019
    00020 #if !defined(_INDEXEDRULE_H_)
    00021 #define _INDEXEDRULE_H_
    00022
    00023 #if _MSC_VER > 1000
    00024 #pragma once
    00025 #endif // _MSC_VER > 1000
    00026
    00027 #include <Mers/Estimation/Discrete/ProbabilityRules/Rule.h>
    00028
    00029 #include <vector>
    00030 #include <iostream>
    00031
    00032 namespace Mers {
    00033         namespace Models {
    00034                 namespace Base {
    00035                         class BaseModelAssignmentArray;
    00036                 }
    00037         }
    00038         namespace Estimation {
    00039                 namespace Discrete {
    00040                         namespace ProbabilityRules {
    00041
    00047                         class IndexedRule : public Mers::Estimation::Discrete::ProbabilityRules::Rule
    00048                         {
    00049
    00050                                 friend std::ostream &  operator<<(std::ostream &, IndexedRule const &);
    00051
    00052                         public:
    00053                                 //-----------------------------------------
    00054                                 // Constructors
    00055                                 //-----------------------------------------
    00056
    00063                                 IndexedRule(const Mers::Models::Base::BaseModelAssignmentArray * myAssigmentArray,
    00064                                                 unsigned int index,
    00065                                                 unsigned short db = 0);
    00066
    00067
    00068                                 //-----------------------------------------
    00069                                 // Destructors
    00070                                 //-----------------------------------------
    00071
    00075                                 virtual ~IndexedRule();
    00076
    00077
    00078                                 //-----------------------------------------
    00079                                 // Functions
    00080                                 //-----------------------------------------
    00081
    00086                                 unsigned int getIndex(void);
    00087
    00088                         private:
    00090                                 unsigned int     indexNumber;
    00091                                 };
    00092                         }
    00093                 }
    00094         }
    00095 }
    00096
    00097 #endif // !defined(_INDEXEDRULE_H_)
    00098