Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

ConstraintHandler.cpp

Go 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 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.cpp,v $
00024                                                                         
00025                                                                         
00026 // File: ~/analysis/handler/ConstraintHandler.h
00027 // 
00028 // Written: fmk 
00029 // Created: 11/96
00030 // Revision: A
00031 //
00032 // Description: This file contains the implementation of ConstraintHandler.
00033 //
00034 // What: "@(#) ConstraintHandler.h, revA"
00035 
00036 #include <ConstraintHandler.h>
00037 #include <Domain.h>
00038 #include <AnalysisModel.h>
00039 #include <Integrator.h>
00040 
00041 ConstraintHandler::ConstraintHandler(int clasTag)
00042 :MovableObject(clasTag),
00043  theDomainPtr(0),theAnalysisModelPtr(0),theIntegratorPtr(0)
00044 {
00045 }
00046 
00047 
00048 ConstraintHandler::~ConstraintHandler()
00049 {
00050     
00051 }
00052 
00053 void 
00054 ConstraintHandler::setLinks(Domain &theDomain, 
00055        AnalysisModel &theModel,
00056        Integrator &theIntegrator)
00057 {
00058     theDomainPtr = &theDomain;
00059     theAnalysisModelPtr = &theModel;
00060     theIntegratorPtr = &theIntegrator;
00061 }
00062  
00063 
00064 
00065 Domain *
00066 ConstraintHandler::getDomainPtr(void) const
00067 {
00068     return theDomainPtr;
00069 }
00070 
00071 AnalysisModel *
00072 ConstraintHandler::getAnalysisModelPtr(void) const
00073 {
00074     return theAnalysisModelPtr;
00075 }
00076 
00077 Integrator *
00078 ConstraintHandler::getIntegratorPtr(void) const
00079 {
00080     return theIntegratorPtr;
00081 }
00082 
00083 
00084 
Copyright Contact Us