periodicity.h

Go to the documentation of this file.
00001 #ifndef PERIODICITY_CLASS
00002 #define PERIODICITY_CLASS
00003 
00004 /*****************************************************************************\
00005 *                                                                             *
00006 *  Name   : periodicity                                                       *
00007 *  Author : Chris Koeritz                                                     *
00008 *                                                                             *
00009 *******************************************************************************
00010 * Copyright (c) 1997-$now By Author.  This program is free software; you can  *
00011 * redistribute it and/or modify it under the terms of the GNU General Public  *
00012 * License as published by the Free Software Foundation; either version 2 of   *
00013 * the License or (at your option) any later version.  This is online at:      *
00014 *     http://www.fsf.org/copyleft/gpl.html                                    *
00015 * Please send any updates to: fred@gruntose.com                               *
00016 \*****************************************************************************/
00017 
00018 #include "scheduling_dll.h"
00019 
00020 #include <mechanisms/time_stamp.h>
00021 
00023 
00029 class SCHEDULING_CLASS_STYLE periodicity
00030 {
00031 public:
00032   int entry_interval;
00034 
00035   time_stamp start_time;
00037 
00042   int expiration_interval;
00044 
00050 //hmmm: and hence is useless, since each activation is seemingly instantaneous
00051 //to the scheduler.  what the heck!
00052 // how is the expiration interval computed??
00053 // is it the start time plus the interval?  meaning that whenever an item
00054 // gets scheduled, the expiration countdown timer is reset to zero?
00055 // the expiration timer should be reset whenever the item enters the schedule,
00056 // because right now scheduling is pretty much allowed to continue as long
00057 // as the item is behaving nicely...  is that okay???  seems like the
00058 // expiration thing is a sham.
00059 // but then again, it will make us consider timing issues.  is 42 seconds
00060 // really long enough for any _full_ transmission?  that's what the current
00061 // limit on packets being sent is, and isn't that the same as the overall time
00062 // here?
00063 
00064   periodicity(int entry = 0, const time_stamp &start = time_stamp(),
00065           int expire = 0)
00066   : entry_interval(entry), start_time(start), expiration_interval(expire) {}
00068 
00072   istring per_text_form() const;
00074 };
00075 
00076 #endif
00077 

Generated on Fri Nov 28 04:29:31 2008 for HOOPLE Libraries by  doxygen 1.5.1