00001 /* ****************************************************************** ** 00002 ** OpenSees - Open System for Earthquake Engineering Simulation ** 00003 ** Pacific Earthquake Engineering Research Center ** 00004 ** ** 00005 ** ** 00006 ** (C) Copyright 1999, 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.1.1 $ 00022 // $Date: 2000/09/15 08:23:16 $ 00023 // $Source: /usr/local/cvs/OpenSees/SRC/analysis/handler/ConstraintHandler.h,v $ 00024 00025 00026 #ifndef ConstraintHandler_h 00027 #define ConstraintHandler_h 00028 00029 // File: ~/analysis/handler/ConstraintHandler.h 00030 // 00031 // Written: fmk 00032 // Created: 11/96 00033 // Revision: A 00034 // 00035 // Description: This file contains the class definition for ConstraintHandler. 00036 // ConstraintHandler is an abstract base class, i.e. no objects of it's 00037 // type can be created. ConstraintHandlers enforce the single and multi point 00038 // constraints that exist in the domain by creating the appropriate FE_Element 00039 // and DOF_Group objects. 00040 // 00041 // What: "@(#) ConstraintHandler.h, revA" 00042 00043 #include <MovableObject.h> 00044 00045 #include <AnalysisMethod.h> 00046 #include <ID.h> 00047 #include <Domain.h> 00048 #include <AnalysisModel.h> 00049 #include <Integrator.h> 00050 #include <FEM_ObjectBroker.h> 00051 00067 class ConstraintHandler : public MovableObject 00068 { 00069 public: 00073 ConstraintHandler(int classTag); 00074 00078 virtual ~ConstraintHandler(); 00079 00080 00084 void setLinks(Domain &theDomain, 00085 00086 AnalysisModel &theModel, 00087 Integrator &theIntegrator); 00088 00090 virtual int handle(const ID *nodesNumberedLast =0) =0; 00098 virtual void clearAll(void) =0; 00099 00100 00101 protected: 00106 Domain *getDomainPtr(void) const; 00107 00112 AnalysisModel *getAnalysisModelPtr(void) const; 00113 00124 Integrator *getIntegratorPtr(void) const; 00125 00126 00127 private: 00129 Domain *theDomainPtr; 00130 00132 AnalysisModel *theAnalysisModelPtr; 00134 Integrator *theIntegratorPtr; 00135 }; 00136 00137 #endif 00138