Former-commit-id:133dc97f67
[formerlya02aeb236c
] [formerly9f19e3f712
] [formerly133dc97f67
[formerlya02aeb236c
] [formerly9f19e3f712
] [formerly06a8b51d6d
[formerly9f19e3f712
[formerly 64fa9254b946eae7e61bbc3f513b7c3696c4f54f]]]] Former-commit-id:06a8b51d6d
Former-commit-id:9bb8decbcf
[formerly8e80217e59
] [formerly377dcd10b9
[formerly3360eb6c5f
]] Former-commit-id:377dcd10b9
Former-commit-id:e2ecdcfe33
56 lines
1.7 KiB
C++
56 lines
1.7 KiB
C++
//------------------------------------------------------------------------------
|
|
// MaxDecrease - Object containing all MaxDecrease scheme information.
|
|
//------------------------------------------------------------------------------
|
|
// Copyright: See the COPYRIGHT file.
|
|
//------------------------------------------------------------------------------
|
|
// Notes:
|
|
//
|
|
//------------------------------------------------------------------------------
|
|
// History:
|
|
//
|
|
// 30 Mar 1998 Matthew J. Rutherford, Riverside Technology, inc
|
|
// Created initial version.
|
|
// 17 Apr 1998 Daniel Weiler, RTi Added data members/functions
|
|
//------------------------------------------------------------------------------
|
|
// Variables: I/O Description
|
|
//
|
|
//
|
|
//------------------------------------------------------------------------------
|
|
|
|
#ifndef MaxDecrease_INCLUDED
|
|
#define MaxDecrease_INCLUDED
|
|
|
|
#include "ReservoirMethod.h"
|
|
|
|
class MaxDecrease : public ReservoirMethod
|
|
{
|
|
public:
|
|
MaxDecrease( Reservoir* ); // Default constructor
|
|
|
|
MaxDecrease( const MaxDecrease&, Reservoir* );
|
|
// Copy constructor.
|
|
|
|
virtual ~MaxDecrease(); // Destructor
|
|
|
|
int construct( char**, int ); // Time series construction.
|
|
|
|
MaxDecrease* copy( Component* ); // Calls copy constructor.
|
|
|
|
int freeDataSpace(); // Deletes dynamically allocated data.
|
|
|
|
int solveMethod( TSDate &, int, double** = NULL );
|
|
// Solving algorithm.
|
|
|
|
int print( FILE* ); // Prints all the info about the
|
|
// MaxDecrease object.
|
|
|
|
private:
|
|
int initialize(); // Initialize data members
|
|
|
|
double _max_decrease; // Value that the release decreases
|
|
// compared to the previous 24 hrs'
|
|
// average release.
|
|
|
|
};
|
|
|
|
#endif
|