Main Page | Modules | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages

RangeProfile.cpp

00001 // 00002 // Copyright 2004 P&P Software GmbH - All Rights Reserved 00003 // 00004 // RangeProfile.cpp 00005 // 00006 // Version 1.1 00007 // Date 17.01.03 (Version 1.0) 00008 // 01.10.03 (Version 1.1) 00009 // Author A. Pasetti (P&P Software), R. Totaro 00010 // 00011 // Change Record: 00012 // Version 1.1: replaced double and int with TD_Float and TD_Integer 00013 00014 #include "../GeneralInclude/CompilerSwitches.h" 00015 #include "../GeneralInclude/DebugSupport.h" 00016 #include "../GeneralInclude/Constants.h" 00017 #include "../GeneralInclude/ClassId.h" 00018 #include "RangeProfile.h" 00019 00020 RangeProfile::RangeProfile(void) { 00021 lowerBound = (TD_Float)0.0; 00022 upperBound = (TD_Float)0.0; 00023 } 00024 00025 bool RangeProfile::doProfileCheck(TD_Integer value) { 00026 assert( lowerBound<upperBound ); 00027 return doProfileCheck( (TD_Float)value ); 00028 } 00029 00030 void RangeProfile::setLowerBound(TD_Float lowerBound) { 00031 this->lowerBound = lowerBound; 00032 } 00033 00034 void RangeProfile::setUpperBound(TD_Float upperBound) { 00035 this->upperBound = upperBound; 00036 } 00037 00038 bool RangeProfile::isObjectConfigured(void) { 00039 return (MonitoringProfile::isObjectConfigured() && lowerBound<upperBound); 00040 }
Copyright 2003 P&P Software GmbH - All Rights Reserved