Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   Related Pages  

DLREG.h

00001 //   -*- C++ -*-
00002 /*****************************************************************************
00003  *
00004  *   |_|_|_  |_|_    |_    |_|_|_  |_                C O M M U N I C A T I O N
00005  * |_        |_  |_  |_  |_        |_                          N E T W O R K S
00006  * |_        |_  |_  |_  |_        |_                                C L A S S
00007  *   |_|_|_  |_    |_|_    |_|_|_  |_|_|_|_                      L I B R A R Y
00008  *
00009  * $Id: DLREG.h,v 1.3 2002/02/01 08:46:17 spee Exp $
00010  *
00011  * Class: CNDLREG --- Discrete LRE (LRE III) for compl. distribution function
00012  *
00013  *****************************************************************************
00014  * Copyright (C) 1992-2002   Communication Networks
00015  *                           Aachen University of Technology
00016  *                           D-52056 Aachen
00017  *                           Germany
00018  *                           Email: cncl-adm@comnets.rwth-aachen.de
00019  *****************************************************************************
00020  * This file is part of the CN class library. All files marked with
00021  * this header are free software; you can redistribute it and/or modify
00022  * it under the terms of the GNU Library General Public License as
00023  * published by the Free Software Foundation; either version 2 of the
00024  * License, or (at your option) any later version.  This library is
00025  * distributed in the hope that it will be useful, but WITHOUT ANY
00026  * WARRANTY; without even the implied warranty of MERCHANTABILITY or
00027  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Library General Public
00028  * License for more details.  You should have received a copy of the GNU
00029  * Library General Public License along with this library; if not, write
00030  * to the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139,
00031  * USA.
00032  *****************************************************************************/
00033 
00034 #ifndef __DLREG_h
00035 #define __DLREG_h
00036 
00037 
00038 #include <CNCL/DLRE.h>
00039 
00040 extern CNClassDesc CN_DLREG;      // CNClass CNDLREG description
00041 
00045 class CNDLREG : public CNDLRE 
00046 {
00047 
00048     /****** Constructors ******************************************************/
00049 public:
00051     CNDLREG(double*, long, double, double = 0.0, 
00052             const char* = NIL, const char* = NIL,
00053             double = 0.0, unsigned long = ULONG_MAX);
00054 
00056     CNDLREG(double, double, double, double, double = 0.0, 
00057             const char* = NIL, const char* = NIL, 
00058             double = 0.0, unsigned long = ULONG_MAX); 
00059 
00061     CNDLREG(CNParam *) {}  
00062 
00063     ~CNDLREG() {}
00064   
00065 private:
00067     CNDLREG() {}
00068   
00069 public: 
00071     void put( double );
00072   
00075     virtual double cur_g_lev();    
00076     virtual double g( double xt ); 
00077     
00078     virtual const CNDLRE::resultline *get_result( long ); 
00079 
00080     virtual void change_error ( double );
00081     
00082 private:
00084     Phase rtc(); 
00085 
00086     double Gmin;
00087     
00088     /****** Member functions required by CNCL *********************************/
00089 public:
00090     virtual CNClassDesc class_desc() const      // CNClass description
00091     {
00092         return CN_DLREG;
00093     };
00094   
00096     virtual bool is_a(CNClassDesc desc) const   
00097     {
00098         return desc == CN_DLREG ? TRUE : CNDLRE::is_a(desc);
00099     };
00100   
00102     static CNDLREG *cast_from_object(CNObject *obj) 
00103     {
00104 #   ifdef NO_TYPE_CHECK
00105         return (CNDLREG *)obj;
00106 #   else
00107         return (CNDLREG *)( obj->is_a(CN_DLREG)
00108                             ? obj : fatal_type(obj->class_desc(), CN_DLREG) );
00109 #   endif
00110     }
00111   
00113     virtual void print( ostream &output=cout ) const; 
00115     virtual void reset() {}
00116 };
00117 
00118 #endif

Generated on Fri Feb 1 19:53:47 2002 for CNCL by doxygen1.2.13.1 written by Dimitri van Heesch, © 1997-2001