awips2/nativeLib/rary.ohd.ofs/inc/SetSum.h
root 7dbd17a5aa Initial revision of AWIPS2 11.9.0-7p5
Former-commit-id: 133dc97f67 [formerly a02aeb236c] [formerly 9f19e3f712] [formerly 133dc97f67 [formerly a02aeb236c] [formerly 9f19e3f712] [formerly 06a8b51d6d [formerly 9f19e3f712 [formerly 64fa9254b946eae7e61bbc3f513b7c3696c4f54f]]]]
Former-commit-id: 06a8b51d6d
Former-commit-id: 9bb8decbcf [formerly 8e80217e59] [formerly 377dcd10b9 [formerly 3360eb6c5f]]
Former-commit-id: 377dcd10b9
Former-commit-id: e2ecdcfe33
2012-01-06 08:55:05 -06:00

71 lines
2.3 KiB
C++

//------------------------------------------------------------------------------
// SetSum - Object containing all SetSum scheme information.
//------------------------------------------------------------------------------
// Copyright: See the COPYRIGHT file.
//------------------------------------------------------------------------------
// Notes:
//
//------------------------------------------------------------------------------
// History:
//
// 22 Apr 1998 Matthew J. Rutherford, Riverside Technology, inc
// Created initial version.
// 22 Apr 1998 Daniel Weiler, RTI Derived from ComboMethod.
// 28 Nov 2001 James R. VanShaar, RTi Added setInactiveState
// 13 Dec 2002 JRV, RTi Added sendToTS.
// 16 Feb 2006 JRV, RTi Generalized the method for different component
// types. (It Was Reservoir only.)
// 27 Mar 2006 JRV, RTi Added void sendToTS( TSDate date ),
// void sendToTS( TSDate date, double scalar ), and
// getMyValueOut( double *in, double *out ).
// Eliminated double sendToTS( TSDate, double, double).
//------------------------------------------------------------------------------
// Variables: I/O Description
//
//
//------------------------------------------------------------------------------
#ifndef SetSum_INCLUDED
#define SetSum_INCLUDED
#include "ComboMethod.h"
#include "Node.h"
#include "Reservoir.h"
class SetSum : public ComboMethod
{
public:
SetSum( Component*, char* ); // Default constructor
SetSum( const SetSum&, Component* );
// Copy constructor.
virtual ~SetSum(); // Destructor
SetSum* copy( Component* );
int freeDataSpace(); // Deletes dynamically allocated data.
void getMyValueAsOut( double *in, double *out );
int solveMethod( TSDate &, int, double** = NULL );
// Solving algorithm.
int print( FILE* ); // Prints all the info about the
// SetSum object.
void setInactiveState(); // Resets any variables which represent
// a continuation of method activity
// from the previous time step
void sendToTS( TSDate date );
void sendToTS( TSDate date, double scalar );
private:
int initialize(); // Initialize data members
// Reservoir* _owner; // Pointer to Reservoir component
// that this method belongs to.
};
#endif