~ubuntu-branches/ubuntu/utopic/tcm/utopic

« back to all changes in this revision

Viewing changes to src/sd/bv/adsclock.h

  • Committer: Bazaar Package Importer
  • Author(s): Otavio Salvador
  • Date: 2003-07-03 20:08:21 UTC
  • Revision ID: james.westby@ubuntu.com-20030703200821-se4xtqx25e5miczi
Tags: upstream-2.20
ImportĀ upstreamĀ versionĀ 2.20

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
//////////////////////////////////////////////////////////////////////////////////
 
2
// This file is part of Toolkit for Conceptual Modeling (TCM).
 
3
// (c) copyright 2001, Universiteit Twente.
 
4
// Author: Rik Eshuis (eshuis@cs.utwente.nl).
 
5
//
 
6
// TCM is free software; you can redistribute it and/or modify
 
7
// it under the terms of the GNU General Public License as published by
 
8
// the Free Software Foundation; either version 2 of the License, or
 
9
// (at your option) any later version.
 
10
//
 
11
// TCM is distributed in the hope that it will be useful,
 
12
// but WITHOUT ANY WARRANTY; without even the implied warranty of
 
13
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
14
// GNU General Public License for more details.
 
15
//
 
16
// You should have received a copy of the GNU General Public License
 
17
// along with TCM; if not, write to the Free Software
 
18
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
 
19
// 02111-1307, USA.
 
20
////////////////////////////////////////////////////////////////////////////////
 
21
#ifndef _CLOCK_H
 
22
#define _CLOCK_H
 
23
 
 
24
 
 
25
#include "bool.h"
 
26
#include "lstring.h"
 
27
#include "adspropertytype.h"
 
28
#include "adsvariable.h"
 
29
#include "bag.h"
 
30
#include "subject.h"
 
31
 
 
32
class OutputFile;
 
33
class ADSHyperEdge;
 
34
 
 
35
/// variable class.
 
36
class Clock: public ADSVar {
 
37
/*@Doc: {\large {\bf scope:} } */
 
38
public:
 
39
        Clock(ADSHyperEdge *); //  relative clock
 
40
        /// 
 
41
        Clock(Edge *); //  relative clock
 
42
        ///
 
43
        Clock();  // absolute clock
 
44
        ///
 
45
        Clock(const Clock &v);  
 
46
        ///
 
47
        ~Clock();
 
48
        ///
 
49
        //      bool isTimer();
 
50
        ///     
 
51
        bool operator==(const Clock &comp) const;
 
52
        ///
 
53
        ADSHyperEdge *GetHyperEdge();
 
54
        ///
 
55
        Edge *GetEdge();
 
56
        ///
 
57
        string GetName() const;
 
58
        ///
 
59
        void Write();
 
60
        /// 
 
61
        //      Bag <Subject *> *GetConfig();
 
62
        //      ///
 
63
        //      void SetConfig(Bag <Subject *> *);
 
64
        ///
 
65
        //void SetReset(bool b);
 
66
        ///
 
67
        //      bool isReset();
 
68
 
 
69
 private:
 
70
 
 
71
        /// the (unique) hyperedge the clock belongs to
 
72
        ADSHyperEdge *hedge;
 
73
        Edge *edge;
 
74
        //      Bag <Subject *> *cfg;
 
75
        //      bool reset;
 
76
        //      int whensuperstep; // the superstep in which the timer is reset 
 
77
 
 
78
};
 
79
#endif