mirror of
https://github.com/nasa/trick.git
synced 2025-01-10 23:12:44 +00:00
49 lines
1.1 KiB
C++
49 lines
1.1 KiB
C++
|
/*
|
||
|
PURPOSE: (Monte carlo structures)
|
||
|
REFERENCE: (Trick Users Guide)
|
||
|
ASSUMPTIONS AND LIMITATIONS: (None)
|
||
|
PROGRAMMERS: ((Keith Vetter) (LinCom) (7/2003))
|
||
|
*/
|
||
|
|
||
|
/*
|
||
|
* $Id: MonteVarFixed.hh $
|
||
|
*/
|
||
|
|
||
|
#ifndef _MONTEVARFIXED_HH_
|
||
|
#define _MONTEVARFIXED_HH_
|
||
|
|
||
|
#include <string>
|
||
|
|
||
|
#include "MonteVar.hh"
|
||
|
|
||
|
namespace Trick {
|
||
|
|
||
|
/**
|
||
|
* A variable whose value is fixed.
|
||
|
*
|
||
|
* @author Alex Lin
|
||
|
* @author Donna Panter
|
||
|
* @author Derek Bankieris
|
||
|
*
|
||
|
* @date August 2010
|
||
|
*/
|
||
|
class MonteVarFixed : public Trick::MonteVar {
|
||
|
|
||
|
public:
|
||
|
/**
|
||
|
* Constructs a MonteVarFixed with the specified name, value, and units.
|
||
|
*
|
||
|
* @param name the fully qualified name of the simulation variable to which this MonteVarFixed refers
|
||
|
* @param value this variable's value
|
||
|
* @param unit this variable's units
|
||
|
*/
|
||
|
MonteVarFixed(std::string name, double value, std::string unit = "");
|
||
|
|
||
|
protected:
|
||
|
virtual std::string get_next_value();
|
||
|
|
||
|
};
|
||
|
|
||
|
};
|
||
|
#endif
|