Otawa  0.10
WCETComputation.h
Go to the documentation of this file.
1 /*
2  * WCETComputation class interface
3  *
4  * This file is part of OTAWA
5  * Copyright (c) 2005, IRIT UPS.
6  *
7  * OTAWA is free software; you can redistribute it and/or modify
8  * it under the terms of the GNU General Public License as published by
9  * the Free Software Foundation; either version 2 of the License, or
10  * (at your option) any later version.
11  *
12  * OTAWA is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15  * GNU General Public License for more details.
16  *
17  * You should have received a copy of the GNU General Public License
18  * along with OTAWA; if not, write to the Free Software
19  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
20  */
21 #ifndef OTAWA_ETS_WCET_COMPUTATION_H
22 #define OTAWA_ETS_WCET_COMPUTATION_H
23 
24 #include <otawa/ast/ASTProcessor.h>
25 
26 namespace otawa { namespace ets {
27 
28 using namespace ast;
29 
30 // WCETComputation class
32 public:
33  static p::declare reg;
34  WCETComputation(p::declare& r = reg);
35 
36 protected:
37  void processAST(WorkSpace *fw, AST *ast);
38  int computation(WorkSpace *fw, AST *ast);
39 };
40 
41 } } // otawa::ets
42 
43 #endif // OTAWA_ETS_WCET_COMPUTATION_H
Class to declare simple a processor.
Definition: Registration.h:213
This is a specialization of the processor class dedicated to AST processing.
Definition: ASTProcessor.h:32
A workspace represents a program, its run-time and all information about WCET computation or any othe...
Definition: WorkSpace.h:67
This is the base class for the representation of programs as Abstract Syntax Trees.
Definition: AST.h:53
static p::declare reg
Definition: WCETComputation.h:33
This processor is used for computing the WCET with the Extended Timing Schema.
Definition: WCETComputation.h:31