From 33613a85afc4b1481367fbe92a17ee59c240250b Mon Sep 17 00:00:00 2001 From: Sven Eisenhauer Date: Fri, 10 Nov 2023 15:11:48 +0100 Subject: add new repo --- Bachelor/Softwaretechnik2/code/CMischer.cpp | 51 +++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 Bachelor/Softwaretechnik2/code/CMischer.cpp (limited to 'Bachelor/Softwaretechnik2/code/CMischer.cpp') diff --git a/Bachelor/Softwaretechnik2/code/CMischer.cpp b/Bachelor/Softwaretechnik2/code/CMischer.cpp new file mode 100644 index 0000000..a5eafe9 --- /dev/null +++ b/Bachelor/Softwaretechnik2/code/CMischer.cpp @@ -0,0 +1,51 @@ +/**********************************************************************************/ +/* Definitionsmodul */ +/**********************************************************************************/ +/* + * generiert mit Innovator Version 8.1.04 + * + * erstellt am: 12.01.2006 14:59:41 + * Repository : swtc20 + * Modell : swt + * Benutzer : swtc20 + * File : /users/swtc20/code/CMischer.cpp + * + */ + + +// ino.module.CMischer.1091.includes +#include "CMischer.hpp" +// ino.end +using std::cout; +using std::endl; + +// ino.method.startGeraet.1134.definition +int systemModel::AnalyseModell::CMischer::startCGeraet(int i) +// ino.end +// ino.method.startGeraet.1134.body +{ + cout << "Gerät " << getname() << " startet mit Wert "<< i << endl; + setWert(i); + stopCGeraet(); + return 0; +} +// ino.end + +// ino.method.stopGeraet.1137.definition +int systemModel::AnalyseModell::CMischer::stopCGeraet() +// ino.end +// ino.method.stopGeraet.1137.body +{ + cout << "Gerät " << getname() << " stoppt" <