00001 /***************************************************************************
00002 ticktock.h - description
00003 -------------------
00004 begin : Tue Aug 12 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 #ifndef TICKTOCK_H
00019 #define TICKTOCK_H
00020
00021 #include "numerictypes.h"
00022 #include "numerictraits.h"
00023 #include "vectorfunction.h"
00024 #include "timeframe.h"
00025 #include "cycler.h"
00026 #include "parameter.h"
00027 #include "cowner.h"
00028 #include <string>
00029 #include <stdexcept>
00030
00031 namespace MODEL {
00032
00040 class TickTock : public TimeFrame, public Cycler {
00041 public:
00042 TickTock(TimeFrame& T,time resolution);
00043
00045 virtual void tick()=0;
00046
00049 const counter& get_resmatch(void){return resmatch;}
00050
00051 TimeFrame& get_timeframe(void);
00052
00053 private:
00055 void execute(void);
00056 counter resmatch;
00057 };
00058
00059 } // end namespace
00060 #endif
00061
00062 /*********************************************************************
00063 $Id: ticktock.h,v 1.2 2001/07/26 12:02:24 mpeeters Exp $
00064 **********************************************************************
00065
00066 $Log: ticktock.h,v $
00067 Revision 1.2 2001/07/26 12:02:24 mpeeters
00068 Removed nasty bug where time would run backwards in certain cases (see todo list).
00069
00070 Revision 1.1 2001/05/22 10:54:55 mpeeters
00071 Moved sources and headers for libModel to model/ subdirectory, in an attempt to rationalize the source tree. This should make things "netter".
00072
00073 Revision 1.2 2000/09/15 10:26:31 mpeeters
00074 Cleaned out header and added CVS tails to files, removed superfuous
00075 @author comments, inserted dates
00076
00077 *********************************************************************/
More Info? Michael Peeters. Also, check our research website: www.alna.vub.ac.be
Last update: June 2002.