Parameter.hGo to the documentation of this file.00001 /* ****************************************************************** ** 00002 ** OpenSees - Open System for Earthquake Engineering Simulation ** 00003 ** Pacific Earthquake Engineering Research Center ** 00004 ** ** 00005 ** ** 00006 ** (C) Copyright 2001, The Regents of the University of California ** 00007 ** All Rights Reserved. ** 00008 ** ** 00009 ** Commercial use of this program without express permission of the ** 00010 ** University of California, Berkeley, is strictly prohibited. See ** 00011 ** file 'COPYRIGHT' in main directory for information on usage and ** 00012 ** redistribution, and for a DISCLAIMER OF ALL WARRANTIES. ** 00013 ** ** 00014 ** Developed by: ** 00015 ** Frank McKenna (fmckenna@ce.berkeley.edu) ** 00016 ** Gregory L. Fenves (fenves@ce.berkeley.edu) ** 00017 ** Filip C. Filippou (filippou@ce.berkeley.edu) ** 00018 ** ** 00019 ** ****************************************************************** */ 00020 00021 // $Revision: 1.1 $ 00022 // $Date: 2006/09/05 20:21:04 $ 00023 // $Source: /usr/local/cvs/OpenSees/SRC/domain/component/Parameter.h,v $ 00024 00025 #ifndef Parameter_h 00026 #define Parameter_h 00027 00028 #include <Information.h> 00029 #include <TaggedObject.h> 00030 00031 class DomainComponent; 00032 class MovableObject; 00033 00034 class Parameter : public TaggedObject 00035 { 00036 public: 00037 Parameter(int tag, DomainComponent *theObject, 00038 const char **argv, int argc); 00039 Parameter(const Parameter ¶m); 00040 ~Parameter(); 00041 00042 int addObject(DomainComponent *theObject, const char **argv, int argc); 00043 00044 void Print(OPS_Stream &s, int flag =0); 00045 00046 int update(int newValue); 00047 int update(double newValue); 00048 int activate(bool active); 00049 00050 int addObject(int parameterID, MovableObject *object); 00051 00052 protected: 00053 00054 private: 00055 Information theInfo; 00056 enum {initialSize = 100}; 00057 enum {expandSize = 100}; 00058 MovableObject **theObjects; 00059 int *parameterID; 00060 int numObjects; 00061 int maxNumObjects; 00062 }; 00063 00064 #endif |