item_statistics.h

Go to the documentation of this file.
00001 #ifndef ITEM_STATISTICS_CLASS
00002 #define ITEM_STATISTICS_CLASS
00003 
00004 /*****************************************************************************\
00005 *                                                                             *
00006 *  Name   : item_statistics                                                   *
00007 *  Author : Chris Koeritz                                                     *
00008 *                                                                             *
00009 *******************************************************************************
00010 * Copyright (c) 1998-$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 <data_struct/guarded_value.h>
00021 #include <mechanisms/time_stamp.h>
00022 #include <mathematics/averager.h>
00023 
00025 
00030 class SCHEDULING_CLASS_STYLE item_statistics
00031 {
00032 public:
00033   guarded_value<time_stamp> entry;  
00034   guarded_value<time_stamp> exit;  
00035   guarded_value<int> last_outcome;  
00036   int_averager durations;  
00037 
00038   inline item_statistics(int durations_kept = 14)
00039           : entry(), exit(), last_outcome(), durations(durations_kept) {}
00041 
00045   istring text_form() const;
00047 
00048   istring adjusted_representation
00049           (const guarded_value<time_stamp> &to_show) const;
00051 };
00052 
00053 #endif
00054 

Generated on Fri Nov 21 04:29:57 2008 for HOOPLE Libraries by  doxygen 1.5.1