out_y = 16;
offset_x = 15;
offset_y = 0;
+ item_offset_x = item_offset_y = 0;
break;
case 1:
image.set(PACKAGE_DATA_DIR"/plaqui-client/pixmaps/and_s.png");
out_y = 32;
offset_x = 0;
offset_y = 15;
+ item_offset_x = item_offset_y = 0;
break;
case 2:
image.set(PACKAGE_DATA_DIR"/plaqui-client/pixmaps/and_o.png");
out_y = 16;
offset_x = -15;
offset_y = 0;
+ item_offset_x = item_offset_y = 0;
break;
case 3:
image.set(PACKAGE_DATA_DIR"/plaqui-client/pixmaps/and_n.png");
out_y = 0;
offset_x = 0;
offset_y = -15;
+ item_offset_x = item_offset_y = 0;
}
m_or = orientacion;
image.show();
y = atoi( (char *)XML_GET_CONTENT(nodo->children) );
} else if (xmlStrcmp(nodo->name, BAD_CAST"salida") == 0) {
linea.dst = (char *)XML_GET_CONTENT(nodo->children);
+ linea.is_tank = false;
p->out_lines.push_back(linea);
} else if (xmlStrcmp(nodo->name, BAD_CAST"entrada") == 0) {
linea.dst = (char *)XML_GET_CONTENT(nodo->children);
y = atoi( (char *)XML_GET_CONTENT(nodo->children) );
} else if (xmlStrcmp(nodo->name, BAD_CAST"salida") == 0) {
linea.dst = (char *)XML_GET_CONTENT(nodo->children);
+ linea.is_tank = false;
p->out_lines.push_back(linea);
} else if (xmlStrcmp(nodo->name, BAD_CAST"entrada") == 0) {
linea.dst = (char *)XML_GET_CONTENT(nodo->children);
if (xmlStrcmp(items->name, BAD_CAST"float")==0) {
tmp = get_float_from_xml(items->children);
item_name = (char *)xmlGetProp(items, BAD_CAST"name");
- std::cout << item_name << " " << tmp << std::endl;
mapItems[item_name]->set_actual_flow(tmp);
} else if (xmlStrcmp(items->name, BAD_CAST"exclusa")==0) {
tmp_b = get_bool_from_xml(items->children);
else if (xmlStrcmp(nodo_tmp->name, BAD_CAST"litros")==0)
lit= atof( (char *)XML_GET_CONTENT(nodo_tmp->children) );
else if (xmlStrcmp(nodo_tmp->name, BAD_CAST"salida")==0) {
- if (xmlStrcmp(xmlGetProp(items, BAD_CAST"id"), BAD_CAST"inferior")==0) {
+ if (xmlStrcmp(xmlGetProp(nodo_tmp, BAD_CAST"id"), BAD_CAST"inferior")==0) {
b_inf = get_bool_from_xml(nodo_tmp->children);
} else {
b_sup = get_bool_from_xml(nodo_tmp->children);
void Exclusa::update(int dir)
{
- if (updated) return;
-
// Primero me fijo si la entrada esta operando, es decir
// si hay alguien conectado para automatizar.
if (input->is_operational()) {
// mi estado
is_open = input->get_output();
}
+ if (updated) return;
actual_flow = temp = INFINITO;
}