From 7049942d573ce1ade168445a902783376c2bd1c8 Mon Sep 17 00:00:00 2001 From: Ricardo Markiewicz Date: Mon, 8 Dec 2003 20:48:17 +0000 Subject: [PATCH] Algunos cambios menores --- Model/include/condition.h | 4 ++-- Model/include/exclusa.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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; } -- 2.43.0