OpenASIP  2.0
DummyMachineTester.cc
Go to the documentation of this file.
1 /*
2  Copyright (c) 2002-2009 Tampere University.
3 
4  This file is part of TTA-Based Codesign Environment (TCE).
5 
6  Permission is hereby granted, free of charge, to any person obtaining a
7  copy of this software and associated documentation files (the "Software"),
8  to deal in the Software without restriction, including without limitation
9  the rights to use, copy, modify, merge, publish, distribute, sublicense,
10  and/or sell copies of the Software, and to permit persons to whom the
11  Software is furnished to do so, subject to the following conditions:
12 
13  The above copyright notice and this permission notice shall be included in
14  all copies or substantial portions of the Software.
15 
16  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17  IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18  FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
19  THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
21  FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
22  DEALINGS IN THE SOFTWARE.
23  */
24 /**
25  * @file DummyMachineTester.cc
26  *
27  * Implementation of DummyMachineTester class.
28  *
29  * @author Lasse Laasonen 2005 (lasse.laasonen-no.spam-tut.fi)
30  * @note rating: red
31  */
32 
33 #include "DummyMachineTester.hh"
34 
35 /**
36  * The constructor.
37  *
38  * @param Machine The machine to be tested.
39  */
42 }
43 
44 
45 /**
46  * The destructor.
47  */
49 }
50 
51 
52 /**
53  * Always returns true.
54  *
55  * @return True.
56  */
57 bool
59  const TTAMachine::Socket&,
60  const TTAMachine::Segment&) {
61 
62  return true;
63 }
64 
65 
66 /**
67  * Always returns true.
68  *
69  * @return True.
70  */
71 bool
73  const TTAMachine::Socket&,
74  const TTAMachine::Port&) {
75 
76  return true;
77 }
78 
79 
80 /**
81  * Always returns true.
82  *
83  * @return True.
84  */
85 bool
87  const TTAMachine::Bus&,
88  const TTAMachine::Bus&) {
89 
90  return true;
91 }
92 
93 
94 /**
95  * Always returns true.
96  *
97  * @return True.
98  */
99 bool
101  const TTAMachine::Socket&,
103 
104  return true;
105 }
machine
TTAMachine::Machine * machine
the architecture definition of the estimated processor
Definition: EstimatorCmdLineUI.cc:59
TTAMachine::Segment
Definition: Segment.hh:54
TTAMachine::Bus
Definition: Bus.hh:53
DummyMachineTester::canConnect
virtual bool canConnect(const TTAMachine::Socket &socket, const TTAMachine::Segment &segment)
Definition: DummyMachineTester.cc:58
DummyMachineTester.hh
TTAMachine::Socket::Direction
Direction
Definition: Socket.hh:58
DummyMachineTester::DummyMachineTester
DummyMachineTester(const TTAMachine::Machine &machine)
Definition: DummyMachineTester.cc:40
DummyMachineTester::canBridge
virtual bool canBridge(const TTAMachine::Bus &source, const TTAMachine::Bus &destination)
Definition: DummyMachineTester.cc:86
DummyMachineTester::canSetDirection
virtual bool canSetDirection(const TTAMachine::Socket &socket, TTAMachine::Socket::Direction direction)
Definition: DummyMachineTester.cc:100
DummyMachineTester::~DummyMachineTester
virtual ~DummyMachineTester()
Definition: DummyMachineTester.cc:48
TTAMachine::Port
Definition: Port.hh:54
TTAMachine::Socket
Definition: Socket.hh:53
MachineTester
Definition: MachineTester.hh:46
TTAMachine::Machine
Definition: Machine.hh:73