00001 /* 00002 * Copyright (C) 2007 Roland Philippsen <roland dot philippsen at gmx net> 00003 * 00004 * This program is free software; you can redistribute it and/or modify 00005 * it under the terms of the GNU General Public License as published by 00006 * the Free Software Foundation; either version 2 of the License, or 00007 * (at your option) any later version. 00008 * 00009 * This program is distributed in the hope that it will be useful, 00010 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00011 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00012 * GNU General Public License for more details. 00013 * 00014 * You should have received a copy of the GNU General Public License 00015 * along with this program; if not, write to the Free Software 00016 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 00017 * USA 00018 */ 00019 00020 00021 #ifndef ESTAR_PROPAGATOR_FACTORY_HPP 00022 #define ESTAR_PROPAGATOR_FACTORY_HPP 00023 00024 00025 #include <estar/base.hpp> 00026 00027 00028 namespace estar { 00029 00030 00031 class Upwind; 00032 class Queue; 00033 class Algorithm; 00034 class Propagator; 00035 00036 00037 class PropagatorFactory 00038 { 00039 public: 00040 PropagatorFactory(Queue const & queue, 00041 Upwind const & upwind, 00042 cspace_t const & cspace, 00043 value_map_t const & value, 00044 meta_map_t const & meta, 00045 rhs_map_t const & rhs, 00046 flag_map_t const & flag, 00048 bool check_upwind, 00050 bool check_local_consistency, 00052 bool check_queue_key); 00053 00054 Propagator * Create(vertex_t target); 00055 00056 private: 00057 Queue const & m_queue; 00058 Upwind const & m_upwind; 00059 cspace_t const & m_cspace; 00060 value_map_t const & m_value; 00061 meta_map_t const & m_meta; 00062 rhs_map_t const & m_rhs; 00063 flag_map_t const & m_flag; 00064 00065 bool m_check_upwind; 00066 bool m_check_local_consistency; 00067 bool m_check_queue_key; 00068 }; 00069 00070 } // namespace estar 00071 00072 #endif // ESTAR_PROPAGATOR_FACTORY_HPP