bool stateful_within::evaluate_false(cep_state* source, cep_state* target) { send_false(target); universal_state* target2 = (universal_state*)(target); within_timer* timer = boost::any_cast<within_timer*>(target2->get_property("timer")); delete timer; return true; }
bool stateful_sequence::evaluate_false(cep_state* source, cep_state* target) { universal_state* target2 = (universal_state*)target; state_type_ptr right_states = boost::any_cast<state_type_ptr>(target2->get_property("right_states")); right_states->erase(cep_state_ptr(source, boost::serialization::null_deleter())); if(right_states->empty()) send_false(target); return true; }
void check_for_request(){ if(EINGABE == "VENTILAUF" && ZENTRALVENTIL_ZU) { set.valve(ip, on) } if(EINGABE == "VENTILZU" && ZENTRALVENTIL_AUF) { set.valve(ip, off) } if(EINGABE == "NOWATER" && ZENTRALVENTIL_ZU){ requested_ID = 0; send_request(); } if(EINGABE == "DELIVERPOSSIBLE?"){ if(requested_ID == 0){ send_true(); } else{ send_false(); } } if(EINGABE == "ABORTREQUEST"){ requested_ID = 0; set.valve(ip, off); } }