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

# /Users/fpy/titan-1-5-MBARI/Mers/Executives/DeductiveController/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 //
    00009 // Organization:        Model-based Embedded and Robotic Systems Group
    00010 //                                      Massachusetts Institute of Technology
    00011 //
    00013
    00014 #include "DiscreteValue.h"
    00015
    00016 #include <Mers/Models/Base/BaseModelValue.h>
    00017
    00019
    00020 using namespace Mers::Executives::DeductiveController;
    00021 using Mers::Models::Base::BaseModelValue;
    00022
    00024
    00025 DiscreteValue::DiscreteValue(DiscreteVariable * variable,
    00026         const BaseModelValue * value)
    00027         : Mers::Interfaces::DiscreteValue(variable, value->getName()), mValue(value)
    00028 {
    00029 }
    00030
    00032
    00033 DiscreteValue::~DiscreteValue()
    00034 {
    00035 }
    00036
    00038
    00039 DiscreteVariable * DiscreteValue::getVariable() const
    00040 {
    00041         return (DiscreteVariable *)mVariable;
    00042 }
    00043
    00045
    00046 const BaseModelValue * DiscreteValue::getValue() const
    00047 {
    00048         return mValue;
    00049 }
    00050
    00052