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

# /Users/fpy/titan-1-5-MBARI/Mers/Executives/DeductiveController/Observation/DiscreteValue.cpp

    00001
    00002 //
    00003 // Copyright (c) 2004           Model-based Embedded and Robotic Systems Group
    00004 // All Rights Reserved          Massachusetts Institute of Technology
    00005 //
    00006 // This software is provided as is. Model-based Embedded and Robotic Systems
    00007 // (MERS) group does not assume any responsibility.
    00008 //
    00010
    00011 #include "DiscreteValue.h"
    00012 #include "DiscreteVariable.h"
    00013
    00015
    00016 using namespace Mers::Executives::DeductiveController::Observation;
    00017 using Mers::Utils::Lang::ReferencedObject;
    00018
    00020
    00021 DiscreteValue::DiscreteValue(DiscreteVariable * variable, const char * name,
    00022         double lower, double upper, DiscreteValue * next)
    00023         : ::Mers::Interfaces::DiscreteValue( variable, name ), ReferencedObject(),
    00024         m_next( next ), m_lowerBound( lower ), m_upperBound( upper )
    00025 {
    00026         if( m_next != NULL )
    00027                 m_next->addReference();
    00028 }
    00029
    00031
    00032 DiscreteValue::~DiscreteValue()
    00033 {
    00034         if( m_next != NULL )
    00035                 m_next->removeReference();
    00036 }
    00037
    00039