From: Ricardo Markiewicz Date: Mon, 8 Dec 2003 20:48:17 +0000 (+0000) Subject: Algunos cambios menores X-Git-Tag: svn_import~3 X-Git-Url: https://git.llucax.com/z.facultad/75.42/plaqui.git/commitdiff_plain/7049942d573ce1ade168445a902783376c2bd1c8?ds=inline Algunos cambios menores --- diff --git a/Model/include/condition.h b/Model/include/condition.h index 38da2a4..9dc9539 100644 --- a/Model/include/condition.h +++ b/Model/include/condition.h @@ -35,9 +35,9 @@ public: tmp = litros / capac; switch (cond) { case LT: - return (tmp < percent); + return (tmp <= percent); case GT: - return (tmp > percent); + return (tmp >= percent); } } protected: diff --git a/Model/include/exclusa.h b/Model/include/exclusa.h index 818ccb4..b4ea3e2 100644 --- a/Model/include/exclusa.h +++ b/Model/include/exclusa.h @@ -20,7 +20,7 @@ public: virtual void simulate(); virtual void recieve_msg(int msg, IConector *who, void *data); - virtual bool get_output() { return is_open; } + virtual bool get_output() { return is_open = input->get_output(); } void open() { is_open = true; } void close() { is_open = false; }