freEvolutionaryStrategyOptimizerBase.cxx

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   F.R.E.E. - flexible registration evaluation engine
00004   Version:   v.1.0.0
00005   Date:      $Date: 2006/09/01 12:00:00 $
00006   Module:    $RCSfile: freEvolutionaryStrategyOptimizerBase.cxx,v $
00007   Language:  C++
00008 
00009 
00010 
00011   Copyright (c) 2007 Ralf o Floca (Department of Medical Informatics,
00012   Institute for Medical Biometry and Informatics, University of Heidelberg,
00013   Germany). All rights reserved.
00014   See FREECopyright.txt or http://www.mi.med.uni-hd.de/free/copyright.htm
00015   for details.
00016 
00017      This software is distributed WITHOUT ANY WARRANTY; without even 
00018      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 
00019      PURPOSE.  See the above copyright notices for more information.
00020 
00021 =========================================================================*/
00022 #ifndef _freEvolutionaryStrategyOptimizerBase_cxx
00023 #define _freEvolutionaryStrategyOptimizerBase_cxx
00024 
00025 #include "freEvolutionaryStrategyOptimizerBase.h"
00026 
00027 namespace FREE
00028 {
00029 namespace ES
00030 {
00031 
00032 EvolutionaryStrategyOptimizerBase
00033 ::EvolutionaryStrategyOptimizerBase()
00034 {
00035   m_MaximumIteration = 100 ;
00036   m_Stop = false ;
00037   m_Started = false;
00038   m_CurrentCost = 0;
00039   m_CurrentIteration = 0;
00040 }
00041 
00042 EvolutionaryStrategyOptimizerBase
00043 ::~EvolutionaryStrategyOptimizerBase() 
00044 {
00045 }
00046 
00047 void
00048 EvolutionaryStrategyOptimizerBase
00049 ::PrintSelf(std::ostream& os, itk::Indent indent) const
00050 {
00051 
00052   Superclass::PrintSelf(os,indent);
00053 
00054   os << indent << "Maximum Iteration " << m_MaximumIteration << std::endl;
00055   os << indent << "Current Cost      " << m_CurrentCost      << std::endl;
00056   os << indent << "Current Iteration " << m_CurrentIteration << std::endl;
00057 }
00058 
00059 void
00060 EvolutionaryStrategyOptimizerBase
00061 ::ResumeOptimization()
00062 {
00063   if (!m_Started) itkExceptionMacro("Error. You cannot resume optimization, before the optimization has started. Start at least once.");
00064   m_Stop = false;
00065 };
00066 
00067 } // end of namespace ES
00068 } // end of namespace FREE
00069 #endif

Generated at Sat Oct 13 15:53:49 2007 for f.r.e.e. - Flexible Registration and Evaluation Engine by doxygen 1.5.3 written by Dimitri van Heesch, © 1997-2000