Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

timeframe.cpp

00001 /***************************************************************************
00002                           timeframe.cpp  -  description
00003                              -------------------
00004     begin                : Tue May 9 2000
00005     copyright            : (C) 2000 by Michael Peeters
00006     email                : Michael.Peeters@vub.ac.be
00007  ***************************************************************************/
00008 
00009 /***************************************************************************
00010  *                                                                         *
00011  *   This program is free software; you can redistribute it and/or modify  *
00012  *   it under the terms of the GNU General Public License as published by  *
00013  *   the Free Software Foundation; either version 2 of the License, or     *
00014  *   (at your option) any later version.                                   *
00015  *                                                                         *
00016  ***************************************************************************/
00017 
00018 #include "timeframe.h"
00019 
00020 namespace MODEL{
00021 
00023   TimeFrame     Universal;
00024 
00025   TimeFrame::TimeFrame(time resolution, time t_init) 
00026         :  t(t_init),dt(resolution) 
00027   {
00028   }
00029 
00030   void  
00031   TimeFrame::reset(void) 
00032   {
00033         t=0.;
00034   }
00035 
00036   const time&   
00037   TimeFrame::step() 
00038   {
00039         time now(t);
00040         execute_list(); // Calls cycle for each cylcer
00041         t=now+dt; // Unecessary precaution. Otherwise we might end up too far.
00042         return t;
00043   }
00044 
00045 }
00046 
00047 /*********************************************************************
00048 $Id: timeframe.cpp,v 1.1 2001/05/22 10:54:55 mpeeters Exp $
00049 **********************************************************************
00050 
00051 $Log: timeframe.cpp,v $
00052 Revision 1.1  2001/05/22 10:54:55  mpeeters
00053 Moved sources and headers for libModel to model/ subdirectory, in an attempt to rationalize the source tree. This should make things "netter".
00054 
00055 Revision 1.3  2001/05/21 11:53:16  mpeeters
00056 Removed Makefile.in, which is automatically generated anyway.
00057 
00058 Revision 1.2  2000/09/15 10:26:31  mpeeters
00059 Cleaned out header and added CVS tails to files, removed superfuous
00060 @author comments, inserted dates
00061 
00062 *********************************************************************/

To get the sources or tarballs, please go to SourceForge or you can use the CVS repository.

More Info? Michael Peeters. Also, check our research website: www.alna.vub.ac.be

Last update: June 2002.


Looking for Open Source? Check out SourceForge Logo !