diff options
| author | Sven Eisenhauer <sven@sven-eisenhauer.net> | 2023-11-10 15:11:48 +0100 |
|---|---|---|
| committer | Sven Eisenhauer <sven@sven-eisenhauer.net> | 2023-11-10 15:11:48 +0100 |
| commit | 33613a85afc4b1481367fbe92a17ee59c240250b (patch) | |
| tree | 670b842326116b376b505ec2263878912fca97e2 /Bachelor/Softwaretechnik1 | |
| download | Studium-master.tar.gz Studium-master.tar.bz2 | |
Diffstat (limited to 'Bachelor/Softwaretechnik1')
43 files changed, 1151 insertions, 0 deletions
diff --git a/Bachelor/Softwaretechnik1/.directory b/Bachelor/Softwaretechnik1/.directory new file mode 100644 index 0000000..5495c66 --- /dev/null +++ b/Bachelor/Softwaretechnik1/.directory @@ -0,0 +1,2 @@ +[URL properties]
+ViewMode=konq_detailedlistview
diff --git a/Bachelor/Softwaretechnik1/RH_SWT1_00_Motivation.pdf b/Bachelor/Softwaretechnik1/RH_SWT1_00_Motivation.pdf Binary files differnew file mode 100644 index 0000000..88c4fb0 --- /dev/null +++ b/Bachelor/Softwaretechnik1/RH_SWT1_00_Motivation.pdf diff --git a/Bachelor/Softwaretechnik1/RH_SWT1_00__Orga.pdf b/Bachelor/Softwaretechnik1/RH_SWT1_00__Orga.pdf Binary files differnew file mode 100644 index 0000000..7c6063d --- /dev/null +++ b/Bachelor/Softwaretechnik1/RH_SWT1_00__Orga.pdf diff --git a/Bachelor/Softwaretechnik1/RH_SWT1_01_Einfuehrung.pdf b/Bachelor/Softwaretechnik1/RH_SWT1_01_Einfuehrung.pdf Binary files differnew file mode 100644 index 0000000..94298db --- /dev/null +++ b/Bachelor/Softwaretechnik1/RH_SWT1_01_Einfuehrung.pdf diff --git a/Bachelor/Softwaretechnik1/RH_SWT1_02_OO.pdf b/Bachelor/Softwaretechnik1/RH_SWT1_02_OO.pdf Binary files differnew file mode 100644 index 0000000..555c30b --- /dev/null +++ b/Bachelor/Softwaretechnik1/RH_SWT1_02_OO.pdf diff --git a/Bachelor/Softwaretechnik1/RH_SWT1_03_UML.pdf b/Bachelor/Softwaretechnik1/RH_SWT1_03_UML.pdf Binary files differnew file mode 100644 index 0000000..608fefb --- /dev/null +++ b/Bachelor/Softwaretechnik1/RH_SWT1_03_UML.pdf diff --git a/Bachelor/Softwaretechnik1/RH_SWT1_04_UseCases.pdf b/Bachelor/Softwaretechnik1/RH_SWT1_04_UseCases.pdf Binary files differnew file mode 100644 index 0000000..83b9800 --- /dev/null +++ b/Bachelor/Softwaretechnik1/RH_SWT1_04_UseCases.pdf diff --git a/Bachelor/Softwaretechnik1/RH_SWT1_05_Klassen.pdf b/Bachelor/Softwaretechnik1/RH_SWT1_05_Klassen.pdf Binary files differnew file mode 100644 index 0000000..63f312a --- /dev/null +++ b/Bachelor/Softwaretechnik1/RH_SWT1_05_Klassen.pdf diff --git a/Bachelor/Softwaretechnik1/RH_SWT1_06_Assoziationen.pdf b/Bachelor/Softwaretechnik1/RH_SWT1_06_Assoziationen.pdf Binary files differnew file mode 100644 index 0000000..3555913 --- /dev/null +++ b/Bachelor/Softwaretechnik1/RH_SWT1_06_Assoziationen.pdf diff --git a/Bachelor/Softwaretechnik1/RH_SWT1_07_Diagramme.pdf b/Bachelor/Softwaretechnik1/RH_SWT1_07_Diagramme.pdf Binary files differnew file mode 100644 index 0000000..d57f714 --- /dev/null +++ b/Bachelor/Softwaretechnik1/RH_SWT1_07_Diagramme.pdf diff --git a/Bachelor/Softwaretechnik1/RH_SWT1_Komplett.pdf b/Bachelor/Softwaretechnik1/RH_SWT1_Komplett.pdf Binary files differnew file mode 100644 index 0000000..63a3f33 --- /dev/null +++ b/Bachelor/Softwaretechnik1/RH_SWT1_Komplett.pdf diff --git a/Bachelor/Softwaretechnik1/a1.pdf b/Bachelor/Softwaretechnik1/a1.pdf Binary files differnew file mode 100644 index 0000000..f0d842b --- /dev/null +++ b/Bachelor/Softwaretechnik1/a1.pdf diff --git a/Bachelor/Softwaretechnik1/a2.pdf b/Bachelor/Softwaretechnik1/a2.pdf Binary files differnew file mode 100644 index 0000000..0b3946b --- /dev/null +++ b/Bachelor/Softwaretechnik1/a2.pdf diff --git a/Bachelor/Softwaretechnik1/a3.pdf b/Bachelor/Softwaretechnik1/a3.pdf Binary files differnew file mode 100644 index 0000000..8e41439 --- /dev/null +++ b/Bachelor/Softwaretechnik1/a3.pdf diff --git a/Bachelor/Softwaretechnik1/buehler_swt1_probeklausur.pdf b/Bachelor/Softwaretechnik1/buehler_swt1_probeklausur.pdf Binary files differnew file mode 100644 index 0000000..84f3818 --- /dev/null +++ b/Bachelor/Softwaretechnik1/buehler_swt1_probeklausur.pdf diff --git a/Bachelor/Softwaretechnik1/code/bankding/bfs b/Bachelor/Softwaretechnik1/code/bankding/bfs Binary files differnew file mode 100644 index 0000000..36b1ce8 --- /dev/null +++ b/Bachelor/Softwaretechnik1/code/bankding/bfs diff --git a/Bachelor/Softwaretechnik1/code/bankding/girokonto.cpp b/Bachelor/Softwaretechnik1/code/bankding/girokonto.cpp new file mode 100644 index 0000000..389b90f --- /dev/null +++ b/Bachelor/Softwaretechnik1/code/bankding/girokonto.cpp @@ -0,0 +1,54 @@ +/**********************************************************************************/
+/* Definitionsmodul */
+/**********************************************************************************/
+/*
+ * generiert mit Innovator Version 8.1.04
+ *
+ * erstellt am: 05.05.2005 14:01:16
+ * Repository : swtd29
+ * Modell : swt
+ * Benutzer : swtd29
+ * File : /users/swtd29/code/girokonto.cpp
+ *
+ */
+
+
+// ino.module.girokonto.419.includes
+#include "girokonto.hpp"
+// ino.end
+
+
+// ino.method.Girokonto.412.definition
+systemModel::AnalyseModell::Girokonto::Girokonto(void)
+// ino.end
+// ino.method.Girokonto.412.body
+{
+ ueberziehungsKredit=1000;
+}
+// ino.end
+
+// ino.method.~Girokonto.409.definition
+systemModel::AnalyseModell::Girokonto::~Girokonto(void)
+// ino.end
+// ino.method.~Girokonto.409.body
+{
+}
+// ino.end
+
+// ino.method.pruefeUeberziehungsKredit.385.definition
+bool systemModel::AnalyseModell::Girokonto::pruefeUeberziehungsKredit(float betrag)
+// ino.end
+// ino.method.pruefeUeberziehungsKredit.385.body
+{
+ if (((getKontostand()-betrag)>-ueberziehungsKredit)|| (getKontostand()-betrag)>0)
+ {
+ return true;
+ }
+ else
+ {
+ return false;
+ }
+}
+// ino.end
+
+
diff --git a/Bachelor/Softwaretechnik1/code/bankding/girokonto.hpp b/Bachelor/Softwaretechnik1/code/bankding/girokonto.hpp new file mode 100644 index 0000000..d88b0fa --- /dev/null +++ b/Bachelor/Softwaretechnik1/code/bankding/girokonto.hpp @@ -0,0 +1,72 @@ +/**********************************************************************************/ +/* Deklarationsmodul */ +/**********************************************************************************/ +/* + * generiert mit Innovator Version 8.1.04 + * + * erstellt am: 05.05.2005 14:01:15 + * Repository : swtd29 + * Modell : swt + * Benutzer : swtd29 + * File : /users/swtd29/code/girokonto.hpp + * + */ + + +// ino.module.girokonto.418.ifndef +#ifndef _GIROKONTO_HPP_418 +#define _GIROKONTO_HPP_418 +// ino.end + +// ino.module.girokonto.418.decIncludes +#include "konto.hpp" +// ino.end + +namespace systemModel { + namespace AnalyseModell { + + +// ino.class.Girokonto.381.declaration +class Girokonto: public Konto +// ino.end +// ino.class.Girokonto.381.body +{ + // ino.attribute.ueberziehungsKredit.383.declaration + private: + float ueberziehungsKredit; + // ino.end + + // ino.method.Girokonto.412.declaration + public: + Girokonto(void); + // ino.end + + // ino.method.~Girokonto.409.declaration + public: + virtual ~Girokonto(void); + // ino.end + + // ino.method.pruefeUeberziehungsKredit.385.declaration + public: + virtual bool pruefeUeberziehungsKredit(float betrag); + // ino.end + +}; +// ino.end + + + + + + }; // namespace AnalyseModell +}; // namespace systemModel + + +#if !defined(NO_IMPLICIT_NAMESPACE_USE) +using namespace systemModel::AnalyseModell; +#endif + +// ino.module.girokonto.418.endif +#endif +// ino.end + diff --git a/Bachelor/Softwaretechnik1/code/bankding/konto.cpp b/Bachelor/Softwaretechnik1/code/bankding/konto.cpp new file mode 100644 index 0000000..970c6f9 --- /dev/null +++ b/Bachelor/Softwaretechnik1/code/bankding/konto.cpp @@ -0,0 +1,64 @@ +/**********************************************************************************/
+/* Definitionsmodul */
+/**********************************************************************************/
+/*
+ * generiert mit Innovator Version 8.1.04
+ *
+ * erstellt am: 05.05.2005 14:01:15
+ * Repository : swtd29
+ * Modell : swt
+ * Benutzer : swtd29
+ * File : /users/swtd29/code/konto.cpp
+ *
+ */
+
+
+// ino.module.konto.417.includes
+#include "konto.hpp"
+// ino.end
+
+
+// ino.method.getKontostand.421.definition
+float systemModel::AnalyseModell::Konto::getKontostand()
+// ino.end
+// ino.method.getKontostand.421.body
+{
+ return Kontostand;
+}
+// ino.end
+
+// ino.method.~Konto.403.definition
+systemModel::AnalyseModell::Konto::~Konto(void)
+// ino.end
+// ino.method.~Konto.403.body
+{
+}
+// ino.end
+
+// ino.method.Konto.400.definition
+systemModel::AnalyseModell::Konto::Konto(void)
+// ino.end
+// ino.method.Konto.400.body
+{
+}
+// ino.end
+
+// ino.method.geldEinzahlen.377.definition
+void systemModel::AnalyseModell::Konto::geldEinzahlen(float betrag)
+// ino.end
+// ino.method.geldEinzahlen.377.body
+{
+ Kontostand=Kontostand+betrag;
+}
+// ino.end
+
+// ino.method.geldAbheben.379.definition
+void systemModel::AnalyseModell::Konto::geldAbheben(float betrag)
+// ino.end
+// ino.method.geldAbheben.379.body
+{
+ Kontostand=Kontostand-betrag;
+}
+// ino.end
+
+
diff --git a/Bachelor/Softwaretechnik1/code/bankding/konto.hpp b/Bachelor/Softwaretechnik1/code/bankding/konto.hpp new file mode 100644 index 0000000..905e56c --- /dev/null +++ b/Bachelor/Softwaretechnik1/code/bankding/konto.hpp @@ -0,0 +1,84 @@ +/**********************************************************************************/ +/* Deklarationsmodul */ +/**********************************************************************************/ +/* + * generiert mit Innovator Version 8.1.04 + * + * erstellt am: 05.05.2005 14:01:14 + * Repository : swtd29 + * Modell : swt + * Benutzer : swtd29 + * File : /users/swtd29/code/konto.hpp + * + */ + + +// ino.module.konto.416.ifndef +#ifndef _KONTO_HPP_416 +#define _KONTO_HPP_416 +// ino.end + + +namespace systemModel { + namespace AnalyseModell { + + +// ino.class.Konto.371.declaration +class Konto +// ino.end +// ino.class.Konto.371.body +{ + // ino.attribute.Kontonummer.373.declaration + private: + float Kontonummer; + // ino.end + + // ino.attribute.Kontostand.375.declaration + private: + float Kontostand; + // ino.end + + // ino.method.getKontostand.421.declaration + public: + virtual float getKontostand(); + // ino.end + + // ino.method.~Konto.403.declaration + public: + virtual ~Konto(void); + // ino.end + + // ino.method.Konto.400.declaration + public: + Konto(void); + // ino.end + + // ino.method.geldEinzahlen.377.declaration + public: + virtual void geldEinzahlen(float betrag); + // ino.end + + // ino.method.geldAbheben.379.declaration + public: + virtual void geldAbheben(float betrag); + // ino.end + +}; +// ino.end + + + + + + }; // namespace AnalyseModell +}; // namespace systemModel + + +#if !defined(NO_IMPLICIT_NAMESPACE_USE) +using namespace systemModel::AnalyseModell; +#endif + +// ino.module.konto.416.endif +#endif +// ino.end + diff --git a/Bachelor/Softwaretechnik1/code/bankding/main.cpp b/Bachelor/Softwaretechnik1/code/bankding/main.cpp new file mode 100644 index 0000000..d2dd4b9 --- /dev/null +++ b/Bachelor/Softwaretechnik1/code/bankding/main.cpp @@ -0,0 +1,43 @@ +#include <iostream>
+#include "konto.hpp"
+#include "girokonto.hpp"
+
+using std::cin;
+using std::cout;
+using std::endl;
+
+using systemModel::AnalyseModell::Konto;
+using systemModel::AnalyseModell::Girokonto;
+
+int main()
+{
+ Girokonto geldspeicher;
+ float betrag;
+ int input;
+ do {
+ cout << "1: Geld einzahlen"<<endl;
+ cout << "2: Geld abheben"<<endl;
+ cout << "3: Kontostand anzeigen"<<endl;
+ cout << "0: Ende"<<endl;
+ cin >> input;
+ switch (input) {
+ case 1:{
+ cout << "Betrag einzahlen: ";
+ cin >> betrag;
+ geldspeicher.geldEinzahlen(betrag);
+ break;
+ }
+ case 2: {
+ cout << "Betrag abheben: ";
+ cin >> betrag;
+ if(true == geldspeicher.pruefeUeberziehungsKredit(betrag))
+ geldspeicher.geldAbheben(betrag);
+ break;
+ }
+ case 3: cout << "Kontostand: " << geldspeicher.getKontostand() << endl;
+ break;
+ default: break;
+ }
+ }while(input!=0);
+return 0;
+}
diff --git a/Bachelor/Softwaretechnik1/code/dauerauftrag.cpp b/Bachelor/Softwaretechnik1/code/dauerauftrag.cpp new file mode 100644 index 0000000..cc6a6a3 --- /dev/null +++ b/Bachelor/Softwaretechnik1/code/dauerauftrag.cpp @@ -0,0 +1,63 @@ +/**********************************************************************************/
+/* Definitionsmodul */
+/**********************************************************************************/
+/*
+ * generiert mit Innovator Version 8.1.04
+ *
+ * erstellt am: 19.05.2005 15:30:24
+ * Repository : swtd29
+ * Modell : swt
+ * Benutzer : swtd29
+ * File : /users/swtd29/code/dauerauftrag.cpp
+ *
+ */
+
+
+// ino.module.dauerauftrag.624.includes
+#include "dauerauftrag.hpp"
+// ino.end
+
+
+// ino.method.getZielGirokonto.619.definition
+Girokonto systemModel::AnalyseModell::Dauerauftrag::getZielGirokonto(void) const
+// ino.end
+// ino.method.getZielGirokonto.619.body
+{ return ZielGirokonto; }
+// ino.end
+
+// ino.method.getBetrag.616.definition
+float systemModel::AnalyseModell::Dauerauftrag::getBetrag(void) const
+// ino.end
+// ino.method.getBetrag.616.body
+{ return Betrag; }
+// ino.end
+
+// ino.method.getZeitabstand.613.definition
+int systemModel::AnalyseModell::Dauerauftrag::getZeitabstand(void) const
+// ino.end
+// ino.method.getZeitabstand.613.body
+{ return Zeitabstand; }
+// ino.end
+
+// ino.method.setZielGirokonto.610.definition
+void systemModel::AnalyseModell::Dauerauftrag::setZielGirokonto(Girokonto ZielGirokonto)
+// ino.end
+// ino.method.setZielGirokonto.610.body
+{ this->ZielGirokonto = ZielGirokonto; }
+// ino.end
+
+// ino.method.setBetrag.607.definition
+void systemModel::AnalyseModell::Dauerauftrag::setBetrag(float Betrag)
+// ino.end
+// ino.method.setBetrag.607.body
+{ this->Betrag = Betrag; }
+// ino.end
+
+// ino.method.setZeitabstand.604.definition
+void systemModel::AnalyseModell::Dauerauftrag::setZeitabstand(int Zeitabstand)
+// ino.end
+// ino.method.setZeitabstand.604.body
+{ this->Zeitabstand = Zeitabstand; }
+// ino.end
+
+
diff --git a/Bachelor/Softwaretechnik1/code/dauerauftrag.hpp b/Bachelor/Softwaretechnik1/code/dauerauftrag.hpp new file mode 100644 index 0000000..bf7fbcc --- /dev/null +++ b/Bachelor/Softwaretechnik1/code/dauerauftrag.hpp @@ -0,0 +1,94 @@ +/**********************************************************************************/ +/* Deklarationsmodul */ +/**********************************************************************************/ +/* + * generiert mit Innovator Version 8.1.04 + * + * erstellt am: 19.05.2005 15:30:22 + * Repository : swtd29 + * Modell : swt + * Benutzer : swtd29 + * File : /users/swtd29/code/dauerauftrag.hpp + * + */ + + +// ino.module.dauerauftrag.623.ifndef +#ifndef _DAUERAUFTRAG_HPP_623 +#define _DAUERAUFTRAG_HPP_623 +// ino.end + + +namespace systemModel { + namespace AnalyseModell { + + +// ino.class.Dauerauftrag.587.declaration +class Dauerauftrag +// ino.end +// ino.class.Dauerauftrag.587.body +{ + // ino.attribute.Zeitabstand.592.declaration + private: + int Zeitabstand; + // ino.end + + // ino.attribute.Betrag.590.declaration + private: + float Betrag; + // ino.end + + // ino.attribute.ZielGirokonto.596.declaration + private: + Girokonto ZielGirokonto; + // ino.end + + // ino.method.getZielGirokonto.619.declaration + public: + virtual Girokonto getZielGirokonto(void) const; + // ino.end + + // ino.method.getBetrag.616.declaration + public: + virtual float getBetrag(void) const; + // ino.end + + // ino.method.getZeitabstand.613.declaration + public: + virtual int getZeitabstand(void) const; + // ino.end + + // ino.method.setZielGirokonto.610.declaration + public: + virtual void setZielGirokonto(Girokonto ZielGirokonto); + // ino.end + + // ino.method.setBetrag.607.declaration + public: + virtual void setBetrag(float Betrag); + // ino.end + + // ino.method.setZeitabstand.604.declaration + public: + virtual void setZeitabstand(int Zeitabstand); + // ino.end + +}; +// ino.end + + + + + + }; // namespace AnalyseModell +}; // namespace systemModel + + +#if !defined(NO_IMPLICIT_NAMESPACE_USE) +using namespace systemModel::AnalyseModell; +#endif + +// ino.module.dauerauftrag.623.endif +#endif +// ino.end + diff --git a/Bachelor/Softwaretechnik1/code/girokonto.cpp b/Bachelor/Softwaretechnik1/code/girokonto.cpp new file mode 100644 index 0000000..cfbe90d --- /dev/null +++ b/Bachelor/Softwaretechnik1/code/girokonto.cpp @@ -0,0 +1,78 @@ +/**********************************************************************************/
+/* Definitionsmodul */
+/**********************************************************************************/
+/*
+ * generiert mit Innovator Version 8.1.04
+ *
+ * erstellt am: 05.05.2005 14:01:16
+ * Repository : swtd29
+ * Modell : swt
+ * Benutzer : swtd29
+ * File : /users/swtd29/code/girokonto.cpp
+ *
+ */
+
+
+// ino.module.girokonto.419.includes
+#include "girokonto.hpp"
+// ino.end
+
+
+// ino.method.ueberweisen.462.definition
+void systemModel::AnalyseModell::Girokonto::ueberweisen(float betrag, Girokonto ZielGkto)
+// ino.end
+// ino.method.ueberweisen.462.body
+{
+}
+// ino.end
+// ino.method.dauerauftragAnlegen.465.definition
+Dauerauftrag systemModel::AnalyseModell::Girokonto::dauerauftragAnlegen()
+// ino.end
+// ino.method.dauerauftragAnlegen.465.body
+{
+}
+// ino.end
+// ino.method.dauerauftragLoeschen.467.definition
+void systemModel::AnalyseModell::Girokonto::dauerauftragLoeschen(Dauerauftrag dauerAuftrag)
+// ino.end
+// ino.method.dauerauftragLoeschen.467.body
+{
+}
+// ino.end
+
+
+
+// ino.method.Girokonto.412.definition
+systemModel::AnalyseModell::Girokonto::Girokonto(void)
+// ino.end
+// ino.method.Girokonto.412.body
+{
+ ueberziehungsKredit=1000;
+}
+// ino.end
+
+// ino.method.~Girokonto.409.definition
+systemModel::AnalyseModell::Girokonto::~Girokonto(void)
+// ino.end
+// ino.method.~Girokonto.409.body
+{
+}
+// ino.end
+
+// ino.method.pruefeUeberziehungsKredit.385.definition
+bool systemModel::AnalyseModell::Girokonto::pruefeUeberziehungsKredit(float betrag)
+// ino.end
+// ino.method.pruefeUeberziehungsKredit.385.body
+{
+ if (((getKontostand()-betrag)>-ueberziehungsKredit)|| (getKontostand()-betrag)>0)
+ {
+ return true;
+ }
+ else
+ {
+ return false;
+ }
+}
+// ino.end
+
+
diff --git a/Bachelor/Softwaretechnik1/code/girokonto.hpp b/Bachelor/Softwaretechnik1/code/girokonto.hpp new file mode 100644 index 0000000..f487cd3 --- /dev/null +++ b/Bachelor/Softwaretechnik1/code/girokonto.hpp @@ -0,0 +1,87 @@ +/**********************************************************************************/ +/* Deklarationsmodul */ +/**********************************************************************************/ +/* + * generiert mit Innovator Version 8.1.04 + * + * erstellt am: 05.05.2005 14:01:15 + * Repository : swtd29 + * Modell : swt + * Benutzer : swtd29 + * File : /users/swtd29/code/girokonto.hpp + * + */ + + +// ino.module.girokonto.418.ifndef +#ifndef _GIROKONTO_HPP_418 +#define _GIROKONTO_HPP_418 +// ino.end + +// ino.module.girokonto.418.decIncludes +#include "konto.hpp" +// ino.end + +namespace systemModel { + namespace AnalyseModell { + + +// ino.class.Girokonto.381.declaration +class Girokonto: public Konto +// ino.end +// ino.class.Girokonto.381.body +{ + // ino.attribute.ueberziehungsKredit.383.declaration + private: + float ueberziehungsKredit; + // ino.end + + // ino.method.ueberweisen.462.declaration + public: + virtual void ueberweisen(float betrag, Girokonto ZielGkto); + // ino.end + // ino.method.dauerauftragAnlegen.465.declaration + public: + virtual Dauerauftrag dauerauftragAnlegen(); + // ino.end + // ino.method.dauerauftragLoeschen.467.declaration + public: + virtual void dauerauftragLoeschen(Dauerauftrag dauerAuftrag); + // ino.end + + + + // ino.method.Girokonto.412.declaration + public: + Girokonto(void); + // ino.end + + // ino.method.~Girokonto.409.declaration + public: + virtual ~Girokonto(void); + // ino.end + + // ino.method.pruefeUeberziehungsKredit.385.declaration + public: + virtual bool pruefeUeberziehungsKredit(float betrag); + // ino.end + +}; +// ino.end + + + + + + }; // namespace AnalyseModell +}; // namespace systemModel + + +#if !defined(NO_IMPLICIT_NAMESPACE_USE) +using namespace systemModel::AnalyseModell; +#endif + +// ino.module.girokonto.418.endif +#endif +// ino.end + diff --git a/Bachelor/Softwaretechnik1/skriptSWTV2.pdf b/Bachelor/Softwaretechnik1/skriptSWTV2.pdf Binary files differnew file mode 100644 index 0000000..9186b15 --- /dev/null +++ b/Bachelor/Softwaretechnik1/skriptSWTV2.pdf diff --git a/Bachelor/Softwaretechnik1/swtBank/.cdtbuild b/Bachelor/Softwaretechnik1/swtBank/.cdtbuild new file mode 100644 index 0000000..35e44a8 --- /dev/null +++ b/Bachelor/Softwaretechnik1/swtBank/.cdtbuild @@ -0,0 +1,25 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?fileVersion 2.1.0?>
+
+<ManagedProjectBuildInfo>
+<project id="swtBank.cdt.managedbuild.target.gnu.exe.735850470" name="Executable (Gnu)" projectType="cdt.managedbuild.target.gnu.exe">
+<configuration id="cdt.managedbuild.config.gnu.exe.debug.1827617623" name="Debug" parent="cdt.managedbuild.config.gnu.exe.debug" artifactName="swtBank" errorParsers="org.eclipse.cdt.core.MakeErrorParser;org.eclipse.cdt.core.GCCErrorParser;org.eclipse.cdt.core.GLDErrorParser;org.eclipse.cdt.core.GASErrorParser" cleanCommand="rm -rf">
+<toolChain superClass="cdt.managedbuild.toolchain.gnu.exe.debug" id="cdt.managedbuild.toolchain.gnu.exe.debug.1131710309" name="GCC Tool Chain">
+<tool superClass="cdt.managedbuild.tool.gnu.c.compiler.exe.debug" id="cdt.managedbuild.tool.gnu.c.compiler.exe.debug.1429132214" name="GCC C Compiler"/>
+<tool superClass="cdt.managedbuild.tool.gnu.cpp.compiler.exe.debug" id="cdt.managedbuild.tool.gnu.cpp.compiler.exe.debug.923964772" name="GCC C++ Compiler"/>
+<tool superClass="cdt.managedbuild.tool.gnu.c.linker.exe.debug" id="cdt.managedbuild.tool.gnu.c.linker.exe.debug.989263170" name="GCC C Linker"/>
+<tool superClass="cdt.managedbuild.tool.gnu.cpp.linker.exe.debug" id="cdt.managedbuild.tool.gnu.cpp.linker.exe.debug.204067819" name="GCC C++ Linker"/>
+<tool superClass="cdt.managedbuild.tool.gnu.assembler.exe.debug" id="cdt.managedbuild.tool.gnu.assembler.exe.debug.177199244" name="GCC Assembler"/>
+</toolChain>
+</configuration>
+<configuration id="cdt.managedbuild.config.gnu.exe.release.377632078" name="Release" parent="cdt.managedbuild.config.gnu.exe.release" artifactName="swtBank" errorParsers="org.eclipse.cdt.core.MakeErrorParser;org.eclipse.cdt.core.GCCErrorParser;org.eclipse.cdt.core.GLDErrorParser;org.eclipse.cdt.core.GASErrorParser" cleanCommand="rm -rf">
+<toolChain superClass="cdt.managedbuild.toolchain.gnu.exe.release" id="cdt.managedbuild.toolchain.gnu.exe.release.553495214" name="GCC Tool Chain">
+<tool superClass="cdt.managedbuild.tool.gnu.c.compiler.exe.release" id="cdt.managedbuild.tool.gnu.c.compiler.exe.release.349471328" name="GCC C Compiler"/>
+<tool superClass="cdt.managedbuild.tool.gnu.cpp.compiler.exe.release" id="cdt.managedbuild.tool.gnu.cpp.compiler.exe.release.1715869543" name="GCC C++ Compiler"/>
+<tool superClass="cdt.managedbuild.tool.gnu.c.linker.exe.release" id="cdt.managedbuild.tool.gnu.c.linker.exe.release.1573871425" name="GCC C Linker"/>
+<tool superClass="cdt.managedbuild.tool.gnu.cpp.linker.exe.release" id="cdt.managedbuild.tool.gnu.cpp.linker.exe.release.476504321" name="GCC C++ Linker"/>
+<tool superClass="cdt.managedbuild.tool.gnu.assembler.exe.release" id="cdt.managedbuild.tool.gnu.assembler.exe.release.636761427" name="GCC Assembler"/>
+</toolChain>
+</configuration>
+</project>
+</ManagedProjectBuildInfo>
diff --git a/Bachelor/Softwaretechnik1/swtBank/.cdtproject b/Bachelor/Softwaretechnik1/swtBank/.cdtproject new file mode 100644 index 0000000..82c36e0 --- /dev/null +++ b/Bachelor/Softwaretechnik1/swtBank/.cdtproject @@ -0,0 +1,18 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?eclipse-cdt version="2.0"?>
+
+<cdtproject id="org.eclipse.cdt.managedbuilder.core.managedMake">
+<extension point="org.eclipse.cdt.core.ScannerInfoProvider" id="org.eclipse.cdt.managedbuilder.core.ManagedBuildManager"/>
+<extension point="org.eclipse.cdt.core.BinaryParser" id="org.eclipse.cdt.core.ELF"/>
+<data>
+<item id="cdt_indexer">
+<indexEnabled indexValue="true"/>
+<indexerProblemsEnabled indexProblemsValue="0"/>
+</item>
+<item id="org.eclipse.cdt.core.pathentry">
+<pathentry kind="src" path=""/>
+<pathentry kind="out" path=""/>
+<pathentry kind="con" path="org.eclipse.cdt.managedbuilder.MANAGED_CONTAINER"/>
+</item>
+</data>
+</cdtproject>
diff --git a/Bachelor/Softwaretechnik1/swtBank/.project b/Bachelor/Softwaretechnik1/swtBank/.project new file mode 100644 index 0000000..96a2795 --- /dev/null +++ b/Bachelor/Softwaretechnik1/swtBank/.project @@ -0,0 +1,19 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>swtBank</name>
+ <comment></comment>
+ <projects>
+ </projects>
+ <buildSpec>
+ <buildCommand>
+ <name>org.eclipse.cdt.managedbuilder.core.genmakebuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ </buildSpec>
+ <natures>
+ <nature>org.eclipse.cdt.core.cnature</nature>
+ <nature>org.eclipse.cdt.managedbuilder.core.managedBuildNature</nature>
+ <nature>org.eclipse.cdt.core.ccnature</nature>
+ </natures>
+</projectDescription>
diff --git a/Bachelor/Softwaretechnik1/swtBank/Debug/girokonto.d b/Bachelor/Softwaretechnik1/swtBank/Debug/girokonto.d new file mode 100644 index 0000000..319955e --- /dev/null +++ b/Bachelor/Softwaretechnik1/swtBank/Debug/girokonto.d @@ -0,0 +1,10 @@ +################################################################################
+# Automatically-generated file. Do not edit!
+################################################################################
+
+girokonto.d ./girokonto.o: ../girokonto.cpp ../girokonto.hpp ../konto.hpp
+
+../girokonto.hpp:
+
+../konto.hpp:
+
diff --git a/Bachelor/Softwaretechnik1/swtBank/Debug/konto.d b/Bachelor/Softwaretechnik1/swtBank/Debug/konto.d new file mode 100644 index 0000000..75c00a3 --- /dev/null +++ b/Bachelor/Softwaretechnik1/swtBank/Debug/konto.d @@ -0,0 +1,8 @@ +################################################################################
+# Automatically-generated file. Do not edit!
+################################################################################
+
+konto.d ./konto.o: ../konto.cpp ../konto.hpp
+
+../konto.hpp:
+
diff --git a/Bachelor/Softwaretechnik1/swtBank/Debug/main.d b/Bachelor/Softwaretechnik1/swtBank/Debug/main.d new file mode 100644 index 0000000..4351548 --- /dev/null +++ b/Bachelor/Softwaretechnik1/swtBank/Debug/main.d @@ -0,0 +1,10 @@ +################################################################################
+# Automatically-generated file. Do not edit!
+################################################################################
+
+main.d ./main.o: ../main.cpp ../girokonto.hpp ../konto.hpp
+
+../girokonto.hpp:
+
+../konto.hpp:
+
diff --git a/Bachelor/Softwaretechnik1/swtBank/Debug/makefile b/Bachelor/Softwaretechnik1/swtBank/Debug/makefile new file mode 100644 index 0000000..7fd327b --- /dev/null +++ b/Bachelor/Softwaretechnik1/swtBank/Debug/makefile @@ -0,0 +1,30 @@ +################################################################################
+# Automatically-generated file. Do not edit!
+################################################################################
+
+ROOT := ..
+
+-include $(ROOT)/makefile.init
+
+RM := rm -rf
+
+# All of the sources participating in the build are defined here
+-include sources.mk
+-include $(SUBDIRS:%=%/subdir.mk)
+-include objects.mk
+-include $(DEPS)
+-include $(ROOT)/makefile.defs
+
+all: swtBank
+
+swtBank: $(OBJS)
+ @echo 'Building target: $@'
+ g++ -o $@ $(OBJS) $(USER_OBJS) $(LIBS)
+ @echo 'Finished building: $@'
+
+clean:
+ -$(RM) $(OBJS) $(DEPS) swtBank
+
+.PHONY: all clean dependents
+
+-include $(ROOT)/makefile.targets
diff --git a/Bachelor/Softwaretechnik1/swtBank/Debug/objects.mk b/Bachelor/Softwaretechnik1/swtBank/Debug/objects.mk new file mode 100644 index 0000000..59a3b5b --- /dev/null +++ b/Bachelor/Softwaretechnik1/swtBank/Debug/objects.mk @@ -0,0 +1,13 @@ +################################################################################
+# Automatically-generated file. Do not edit!
+################################################################################
+
+LIBS :=
+USER_OBJS :=
+
+
+OBJS := \
+ $(C_SRCS:$(ROOT)/%.c=%.o) $(C_UPPER_SRCS:$(ROOT)/%.C=%.o) $(CC_SRCS:$(ROOT)/%.cc=%.o) $(CXX_SRCS:$(ROOT)/%.cxx=%.o) $(CPP_SRCS:$(ROOT)/%.cpp=%.o) $(S_SRCS:$(ROOT)/%.s=%.o) $(S_UPPER_SRCS:$(ROOT)/%.S=%.o)
+
+DEPS := \
+ $(C_SRCS:$(ROOT)/%.c=%.d) $(C_UPPER_SRCS:$(ROOT)/%.C=%.d) $(CC_SRCS:$(ROOT)/%.cc=%.d) $(CXX_SRCS:$(ROOT)/%.cxx=%.d) $(CPP_SRCS:$(ROOT)/%.cpp=%.d) $(S_SRCS:$(ROOT)/%.s=%.d) $(S_UPPER_SRCS:$(ROOT)/%.S=%.d)
\ No newline at end of file diff --git a/Bachelor/Softwaretechnik1/swtBank/Debug/sources.mk b/Bachelor/Softwaretechnik1/swtBank/Debug/sources.mk new file mode 100644 index 0000000..357bfc1 --- /dev/null +++ b/Bachelor/Softwaretechnik1/swtBank/Debug/sources.mk @@ -0,0 +1,16 @@ +################################################################################
+# Automatically-generated file. Do not edit!
+################################################################################
+
+C_SRCS :=
+C_UPPER_SRCS :=
+CC_SRCS :=
+CXX_SRCS :=
+CPP_SRCS :=
+S_SRCS :=
+S_UPPER_SRCS :=
+
+# Every subdirectory with source files must be described here
+SUBDIRS := \
+. \
+
diff --git a/Bachelor/Softwaretechnik1/swtBank/Debug/subdir.mk b/Bachelor/Softwaretechnik1/swtBank/Debug/subdir.mk new file mode 100644 index 0000000..f8084c0 --- /dev/null +++ b/Bachelor/Softwaretechnik1/swtBank/Debug/subdir.mk @@ -0,0 +1,46 @@ +################################################################################
+# Automatically-generated file. Do not edit!
+################################################################################
+
+S_UPPER_SRCS += \
+${addprefix $(ROOT)/, \
+}
+
+CPP_SRCS += \
+${addprefix $(ROOT)/, \
+girokonto.cpp \
+konto.cpp \
+main.cpp \
+}
+
+CC_SRCS += \
+${addprefix $(ROOT)/, \
+}
+
+C_SRCS += \
+${addprefix $(ROOT)/, \
+}
+
+C_UPPER_SRCS += \
+${addprefix $(ROOT)/, \
+}
+
+CXX_SRCS += \
+${addprefix $(ROOT)/, \
+}
+
+S_SRCS += \
+${addprefix $(ROOT)/, \
+}
+
+# Each subdirectory must supply rules for building sources it contributes
+%.o: $(ROOT)/%.cpp
+ @echo 'Building file: $<'
+ @echo g++ -O0 -g3 -Wall -c -fmessage-length=0 -o$@ $<
+ @g++ -O0 -g3 -Wall -c -fmessage-length=0 -o$@ $< && \
+ echo -n $(@:%.o=%.d) $(dir $@) > $(@:%.o=%.d) && \
+ g++ -MM -MG -P -w -O0 -g3 -Wall -c -fmessage-length=0 $< >> $(@:%.o=%.d)
+ @echo 'Finished building: $<'
+ @echo ' '
+
+
diff --git a/Bachelor/Softwaretechnik1/swtBank/Debug/swtBank b/Bachelor/Softwaretechnik1/swtBank/Debug/swtBank Binary files differnew file mode 100644 index 0000000..6f66f0c --- /dev/null +++ b/Bachelor/Softwaretechnik1/swtBank/Debug/swtBank diff --git a/Bachelor/Softwaretechnik1/swtBank/girokonto.cpp b/Bachelor/Softwaretechnik1/swtBank/girokonto.cpp new file mode 100644 index 0000000..2c77bc8 --- /dev/null +++ b/Bachelor/Softwaretechnik1/swtBank/girokonto.cpp @@ -0,0 +1,53 @@ +/**********************************************************************************/
+/* Definitionsmodul */
+/**********************************************************************************/
+/*
+ * generiert mit Innovator Version 8.1.04
+ *
+ * erstellt am: 01.05.2005 14:31:27
+ * Repository : swtd29
+ * Modell : swtd29
+ * Benutzer : ADMIN
+ * File : /tmp/src/girokonto.cpp
+ *
+ */
+
+
+// ino.module.girokonto.513.includes
+#include "girokonto.hpp"
+// ino.end
+
+
+// ino.method.Girokonto.505.definition
+Girokonto::Girokonto()
+// ino.end
+// ino.method.Girokonto.505.body
+{
+ ueberziehungsKredit=1000;
+}
+// ino.end
+
+// ino.method.~Girokonto.502.definition
+Girokonto::~Girokonto()
+// ino.end
+// ino.method.~Girokonto.502.body
+{
+}
+// ino.end
+
+// ino.method.pruefeUeberziehungsKredit.478.definition
+bool Girokonto::pruefeUeberziehungsKredit(float betrag)
+// ino.end
+// ino.method.pruefeUeberziehungsKredit.478.body
+{
+ if ((getKontostand()>betrag) || ((getKontostand()+ueberziehungsKredit)>betrag))
+ {
+ //geldAbheben(betrag);
+ return true;
+ }
+ else
+ return false;
+}
+// ino.end
+
+
diff --git a/Bachelor/Softwaretechnik1/swtBank/girokonto.hpp b/Bachelor/Softwaretechnik1/swtBank/girokonto.hpp new file mode 100644 index 0000000..a0d4388 --- /dev/null +++ b/Bachelor/Softwaretechnik1/swtBank/girokonto.hpp @@ -0,0 +1,70 @@ +/**********************************************************************************/
+/* Deklarationsmodul */
+/**********************************************************************************/
+/*
+ * generiert mit Innovator Version 8.1.04
+ *
+ * erstellt am: 01.05.2005 14:31:27
+ * Repository : swtd29
+ * Modell : swtd29
+ * Benutzer : ADMIN
+ * File : /tmp/src/girokonto.hpp
+ *
+ */
+
+
+// ino.module.girokonto.511.ifndef
+#ifndef _GIROKONTO_HPP_511
+#define _GIROKONTO_HPP_511
+// ino.end
+
+// ino.module.girokonto.511.decIncludes
+#include "konto.hpp"
+// ino.end
+
+namespace analysis_system {
+
+
+// ino.class.Girokonto.474.declaration
+class Girokonto: public Konto
+// ino.end
+// ino.class.Girokonto.474.body
+{
+ // ino.attribute.ueberziehungsKredit.476.declaration
+ private:
+ float ueberziehungsKredit;
+ // ino.end
+
+ // ino.method.Girokonto.505.declaration
+ public:
+ Girokonto(void);
+ // ino.end
+
+ // ino.method.~Girokonto.502.declaration
+ public:
+ virtual ~Girokonto(void);
+ // ino.end
+
+ // ino.method.pruefeUeberziehungsKredit.478.declaration
+ public:
+ virtual bool pruefeUeberziehungsKredit(float betrag);
+ // ino.end
+
+};
+// ino.end
+
+
+
+
+
+}; // namespace analysis system
+
+
+#if !defined(NO_IMPLICIT_NAMESPACE_USE)
+using namespace analysis_system;
+#endif
+
+// ino.module.girokonto.511.endif
+#endif
+// ino.end
+
diff --git a/Bachelor/Softwaretechnik1/swtBank/konto.cpp b/Bachelor/Softwaretechnik1/swtBank/konto.cpp new file mode 100644 index 0000000..4864c9d --- /dev/null +++ b/Bachelor/Softwaretechnik1/swtBank/konto.cpp @@ -0,0 +1,60 @@ +/**********************************************************************************/
+/* Definitionsmodul */
+/**********************************************************************************/
+/*
+ * generiert mit Innovator Version 8.1.04
+ *
+ * erstellt am: 01.05.2005 14:31:27
+ * Repository : swtd29
+ * Modell : swtd29
+ * Benutzer : ADMIN
+ * File : /tmp/src/konto.cpp
+ *
+ */
+
+
+// ino.module.konto.512.includes
+#include "konto.hpp"
+// ino.end
+
+
+// ino.method.Konto.499.definition
+Konto::Konto(void)
+// ino.end
+// ino.method.Konto.499.body
+{
+ kontostand=0;
+ kontonummer=12345678;
+}
+// ino.end
+
+// ino.method.~Konto.496.definition
+Konto::~Konto(void)
+// ino.end
+// ino.method.~Konto.496.body
+{
+}
+// ino.end
+
+// ino.method.geldEinzahlen.470.definition
+void Konto::geldEinzahlen(float betrag)
+// ino.end
+// ino.method.geldEinzahlen.470.body
+{
+ kontostand+=betrag;
+}
+// ino.end
+
+// ino.method.geldAbheben.472.definition
+void Konto::geldAbheben(float betrag)
+// ino.end
+// ino.method.geldAbheben.472.body
+{
+ kontostand-=betrag;
+}
+// ino.end
+
+float Konto::getKontostand()
+{
+ return kontostand;
+}
diff --git a/Bachelor/Softwaretechnik1/swtBank/konto.hpp b/Bachelor/Softwaretechnik1/swtBank/konto.hpp new file mode 100644 index 0000000..034a797 --- /dev/null +++ b/Bachelor/Softwaretechnik1/swtBank/konto.hpp @@ -0,0 +1,79 @@ +/**********************************************************************************/
+/* Deklarationsmodul */
+/**********************************************************************************/
+/*
+ * generiert mit Innovator Version 8.1.04
+ *
+ * erstellt am: 01.05.2005 14:31:27
+ * Repository : swtd29
+ * Modell : swtd29
+ * Benutzer : ADMIN
+ * File : /tmp/src/konto.hpp
+ *
+ */
+
+
+// ino.module.konto.510.ifndef
+#ifndef _KONTO_HPP_510
+#define _KONTO_HPP_510
+// ino.end
+
+
+namespace analysis_system {
+
+
+// ino.class.Konto.464.declaration
+class Konto
+// ino.end
+// ino.class.Konto.464.body
+{
+ // ino.attribute.Kontostand.466.declaration
+ private:
+ float kontostand;
+ // ino.end
+
+ // ino.attribute.Kontonummer.468.declaration
+ private:
+ float kontonummer;
+ // ino.end
+
+ // ino.method.Konto.499.declaration
+ public:
+ Konto(void);
+ // ino.end
+
+ // ino.method.~Konto.496.declaration
+ public:
+ virtual ~Konto(void);
+ // ino.end
+
+ // ino.method.geldEinzahlen.470.declaration
+ public:
+ virtual void geldEinzahlen(float betrag);
+ // ino.end
+
+ // ino.method.geldAbheben.472.declaration
+ public:
+ virtual void geldAbheben(float betrag);
+ // ino.end
+
+ public:
+ virtual float getKontostand();
+};
+// ino.end
+
+
+
+
+
+}; // namespace analysis system
+
+
+#if !defined(NO_IMPLICIT_NAMESPACE_USE)
+using namespace analysis_system;
+#endif
+
+// ino.module.konto.510.endif
+#endif
+// ino.end
+
diff --git a/Bachelor/Softwaretechnik1/swtBank/main.cpp b/Bachelor/Softwaretechnik1/swtBank/main.cpp new file mode 100644 index 0000000..ec2dff1 --- /dev/null +++ b/Bachelor/Softwaretechnik1/swtBank/main.cpp @@ -0,0 +1,53 @@ +#include <iostream>
+#include "girokonto.hpp"
+
+using std::cout;
+using std::cin;
+using std::endl;
+
+int main()
+{
+ Girokonto giro;
+ int select;
+ float betrag;
+
+ do {
+ cout << "GIROKONTO" << endl;
+ cout << "1: Geld einzahlen" << endl;
+ cout << "2: Geld abheben" << endl;
+ cout << "3: Kontostand anzeigen" << endl;
+ cout << endl << "0: Ende" << endl;
+ cout << endl << "Eingabe: ";
+ cin >> select;
+ switch (select)
+ {
+ case 1: {
+ cout << endl << "Betrag: ";
+ cin >> betrag;
+ giro.geldEinzahlen(betrag);
+ break;
+ }
+ case 2: {
+ cout << endl << "Betrag: ";
+ cin >> betrag;
+ if (true == giro.pruefeUeberziehungsKredit(betrag))
+ {
+ giro.geldAbheben(betrag);
+ cout << endl << "Passt scho..." << endl;
+ }
+ else
+ {
+ cout << endl << "nix gibts, leider pleite" << endl;
+ }
+ break;
+ }
+ case 3: {
+ cout << endl << "Kontostand: "<<giro.getKontostand() << endl;
+ break;
+ }
+ default: break;
+ }
+ } while (select!=0);
+
+ return 0;
+}
diff --git a/Bachelor/Softwaretechnik1/weber_swt1_klausur_ss04.doc b/Bachelor/Softwaretechnik1/weber_swt1_klausur_ss04.doc Binary files differnew file mode 100644 index 0000000..421e7dc --- /dev/null +++ b/Bachelor/Softwaretechnik1/weber_swt1_klausur_ss04.doc |
