2 Copyright (c) 2002-2009 Tampere University.
4 This file is part of TTA-Based Codesign Environment (TCE).
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:
13 The above copyright notice and this permission notice shall be included in
14 all copies or substantial portions of the Software.
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.
25 * @file CostEstimationData.icc
27 * Inline implementation of CostEstimationData class.
29 * @author Veli-Pekka Jääskeläinen 2006 (vjaaskel-no.spam-cs.tut.fi)
34 * Sets the cost estimation data name.
36 * @param name Name of the data.
39 CostEstimationData::setName(const std::string& name) {
45 * Returns true if the name attribute is set.
47 * @return True, if the name attribute is set.
50 CostEstimationData::hasName() const {
56 * Sets the cost estimation data value.
58 * @param name Value of the data.
61 CostEstimationData::setValue(const DataObject& value) {
68 * Returns true if the value attribute is set.
70 * @return True, if the value attribute is set.
73 CostEstimationData::hasValue() const {
79 * Sets the FU reference
81 * @param fuEntryID ID of the FU entry.
84 CostEstimationData::setFUReference(RowID fuEntryID) {
85 fuReference_ = fuEntryID;
86 hasFUReference_ = true;
91 * Returns true if the data references an FU Entry.
93 * @return True, if the data references an FU entry.
96 CostEstimationData::hasFUReference() const {
97 return hasFUReference_;
102 * Sets the RF reference
104 * @param rfEntryID ID of the RF entry.
107 CostEstimationData::setRFReference(RowID rfEntryID) {
108 rfReference_ = rfEntryID;
109 hasRFReference_ = true;
114 * Returns true if the data references an RF Entry.
116 * @return True, if the data references an RF entry.
119 CostEstimationData::hasRFReference() const {
120 return hasRFReference_;
124 * Sets the socket reference
126 * @param socketEntryID ID of the socket entry.
129 CostEstimationData::setSocketReference(RowID socketEntryID) {
130 socketReference_ = socketEntryID;
131 hasSocketReference_ = true;
136 * Returns true if the data references an socket Entry.
138 * @return True, if the data references an socketentry.
141 CostEstimationData::hasSocketReference() const {
142 return hasSocketReference_;
146 * Sets the bus reference
148 * @param busEntryID ID of the bus entry.
151 CostEstimationData::setBusReference(RowID busEntryID) {
152 busReference_ = busEntryID;
153 hasBusReference_ = true;
158 * Returns true if the data references an bus Entry.
160 * @return True, if the data references an busentry.
163 CostEstimationData::hasBusReference() const {
164 return hasBusReference_;
168 * Sets the data plugin.
170 * @param pluginID ID of the cost function plugin.
173 CostEstimationData::setPluginID(RowID pluginID) {
174 pluginID_ = pluginID;
180 * Returns true if the data has a plugin ID set.
182 * @return True, if the data has a plugin ID set.
185 CostEstimationData::hasPluginID() const {