00001 /*************************************************************************** 00002 Clock.h - description 00003 ------------------- 00004 begin : mar jun 08 2003 00005 copyright : (C) 2003 by Michel Dubois, Yann Le Guyadec 00006 email : Michel.Dubois@univ-ubs.fr, Yann.Le-Guyadec@univ-ubs.fr 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 00019 // Modèle statique 00020 /* 00021 * changes : 00022 * - 08/06/03 MD Creation ! 00023 */ 00024 00025 00026 #ifndef __CLOCK__ 00027 #define __CLOCK__ 00028 00029 00030 // Include files 00031 #include "Sensor.h" 00032 #include "Time.h" 00033 #include "Atom.h" 00034 00035 namespace API { 00036 class Atom; 00037 class Time; 00038 class Clock : public Sensor 00039 { 00040 public: 00041 00042 Clock(); 00043 virtual ~Clock(); 00044 Atom * getAtom() const; 00045 Time& getTime() ; 00046 00047 protected: 00048 void setAtom(Atom * anAtom); 00049 void setTime(const Time& aTime); 00050 Atom * atom; 00051 Time time; 00052 00053 };// END CLASS DEFINITION Clock 00054 } 00055 #endif // __CLOCK__