openModeller  Version 1.4.0
AlgoAdapterModel.cpp
Go to the documentation of this file.
00001 
00002 #include <openmodeller/models/AlgoAdapterModel.hh>
00003 
00004 #include <openmodeller/Algorithm.hh>
00005 
00006 /*********************************************************************************
00007  *
00008  * AlgoAdapterModelImpl - Adapt and Algorithm into a Model Impl.
00009  *
00010  *********************************************************************************/
00011 
00012 AlgoAdapterModelImpl::AlgoAdapterModelImpl( const ConstAlgorithmPtr & algo ) :
00013   ModelImpl(),
00014   _algo( algo )
00015 { }
00016 
00017 AlgoAdapterModelImpl::~AlgoAdapterModelImpl()
00018 {
00019 }
00020 
00021 void
00022 AlgoAdapterModelImpl::setNormalization( const SamplerPtr& sampl ) const 
00023 {
00024   _algo->setNormalization( sampl );
00025 }
00026 
00027 void
00028 AlgoAdapterModelImpl::setNormalization( const EnvironmentPtr& env) const
00029 {
00030   _algo->setNormalization( env );
00031 }
00032 
00033 Scalar
00034 AlgoAdapterModelImpl::getValue( const Sample& x ) const
00035 {
00036   return _algo->getValue( x );
00037 }