| %line | %branch | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| org.fhw.cabaweb.data.dataobjects.Marktforschung |
|
|
| 1 | //////////////////////////////////////////////////////////////////////////////// |
|
| 2 | //CabaWeb |
|
| 3 | //Copyright (C) 2004 Thomas Vogt <Thomas.Vogt@TVC-Software.com> |
|
| 4 | // |
|
| 5 | //This library is free software; you can redistribute it and/or |
|
| 6 | //modify it under the terms of the GNU Lesser General Public |
|
| 7 | //License as published by the Free Software Foundation; either |
|
| 8 | //version 2.1 of the License, or (at your option) any later version. |
|
| 9 | // |
|
| 10 | //This library is distributed in the hope that it will be useful, |
|
| 11 | //but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
| 12 | //MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
|
| 13 | //Lesser General Public License for more details. |
|
| 14 | // |
|
| 15 | //You should have received a copy of the GNU Lesser General Public |
|
| 16 | //License along with this library; if not, write to the Free Software |
|
| 17 | //Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
|
| 18 | //////////////////////////////////////////////////////////////////////////////// |
|
| 19 | ||
| 20 | package org.fhw.cabaweb.data.dataobjects; |
|
| 21 | ||
| 22 | /** |
|
| 23 | * Klasse die eine Beziehung Stufe Markforschung - Kosten kapselt |
|
| 24 | * |
|
| 25 | * @author <a href="mailto:thomas.vogt@tvc-software.com">Thomas Vogt</a> |
|
| 26 | * @version Version 1.0 09.03.2004 |
|
| 27 | */ |
|
| 28 | public class Marktforschung |
|
| 29 | { |
|
| 30 | /** |
|
| 31 | * Die Membervariable für die Stufe der die Kosten zugeordnet sind |
|
| 32 | */ |
|
| 33 | private int stufe; |
|
| 34 | /** |
|
| 35 | * Die Membervariable für die durch diese Markforschungssttufe entstehenden Kosten |
|
| 36 | */ |
|
| 37 | private double kosten; |
|
| 38 | ||
| 39 | /** |
|
| 40 | * Standardkonstruktor, setzt Elemente auf 0.00 |
|
| 41 | */ |
|
| 42 | public Marktforschung() |
|
| 43 | 0 | { |
| 44 | 0 | this.stufe = 0; |
| 45 | 0 | this.kosten = 0.00; |
| 46 | 0 | } |
| 47 | ||
| 48 | /** |
|
| 49 | * Überschriebener Konstruktor, setzt Elemente auf entsprechend übergebene Werte |
|
| 50 | * |
|
| 51 | * @param stufe Die Stufe der die Kosten zugeordnet sind |
|
| 52 | * @param kosten Die durch diese Markforschungssttufe entstehenden Kosten |
|
| 53 | */ |
|
| 54 | public Marktforschung(int stufe, double kosten) |
|
| 55 | 702 | { |
| 56 | 702 | this.stufe = stufe; |
| 57 | 702 | this.kosten = kosten; |
| 58 | 702 | } |
| 59 | ||
| 60 | /** |
|
| 61 | * Funktion um die Stufe zu setzen |
|
| 62 | * |
|
| 63 | * @param stufe Der dem Kosten zugeordnete Stufe |
|
| 64 | */ |
|
| 65 | public void setStufe(int stufe) |
|
| 66 | { |
|
| 67 | 0 | this.stufe = stufe; |
| 68 | 0 | } |
| 69 | ||
| 70 | /** |
|
| 71 | * Funktion um die Stufe zurückzugeben |
|
| 72 | * |
|
| 73 | * @return Der den Kosten zugeordnete Stufe |
|
| 74 | */ |
|
| 75 | public int getStufe() |
|
| 76 | { |
|
| 77 | 54 | return stufe; |
| 78 | } |
|
| 79 | ||
| 80 | /** |
|
| 81 | * Funktion um die Marktforschungskosten zu setzen |
|
| 82 | * |
|
| 83 | * @param kosten Die Marktfortschungskosten |
|
| 84 | */ |
|
| 85 | public void setKosten(double kosten) |
|
| 86 | { |
|
| 87 | 0 | this.kosten = kosten; |
| 88 | 0 | } |
| 89 | ||
| 90 | /** |
|
| 91 | * Funktion um die Marktfortschungskosten zurückzugeben |
|
| 92 | * |
|
| 93 | * @return Die Marktfortschungskosten |
|
| 94 | */ |
|
| 95 | public double getKosten() |
|
| 96 | { |
|
| 97 | 9 | return kosten; |
| 98 | } |
|
| 99 | ||
| 100 | /** |
|
| 101 | * Gibt den Inhalt der Klassenparameter als String zurück |
|
| 102 | * |
|
| 103 | * @return String mit dem Inhalt der Klassenparameter |
|
| 104 | */ |
|
| 105 | public String toString() |
|
| 106 | { |
|
| 107 | 0 | return stufe + " | " + kosten; |
| 108 | ||
| 109 | } |
|
| 110 | } |
| This report is generated by jcoverage, Maven and Maven JCoverage Plugin. |