00001 // Torc - Copyright 2011 University of Southern California. All Rights Reserved. 00002 // $HeadURL: https://torc-isi.svn.sourceforge.net/svnroot/torc-isi/branches/staging/0.9/src/torc/router/NetVectorRouterHeuristicBase.hpp $ 00003 // $Id: NetVectorRouterHeuristicBase.hpp 1 2011-02-25 22:11:16Z nsteiner $ 00004 00005 // This program is free software: you can redistribute it and/or modify it under the terms of the 00006 // GNU General Public License as published by the Free Software Foundation, either version 3 of the 00007 // License, or (at your option) any later version. 00008 // 00009 // This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; 00010 // without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See 00011 // the GNU General Public License for more details. 00012 // 00013 // You should have received a copy of the GNU General Public License along with this program. If 00014 // not, see <http://www.gnu.org/licenses/>. 00015 00016 /// \file 00017 /// \brief Header for the NetVectorRouterHeuristicBase class. 00018 00019 #ifndef TORC_ROUTER_NETVECTORROUTERHEURISTICBASE_HPP 00020 #define TORC_ROUTER_NETVECTORROUTERHEURISTICBASE_HPP 00021 00022 #include "torc/router/RouterHeuristicBase.hpp" 00023 #include "torc/router/RouteNet.hpp" 00024 00025 namespace torc { 00026 namespace router { 00027 00028 /// \brief Provides net routing based on the Nillson graphsearch algorithm. 00029 /// \details The router can either return a vector of nodes or directly populate DDB usage. 00030 class NetVectorRouterHeuristicBase : public RouterHeuristicBase { 00031 // types 00032 /// \brief Imported type names 00033 typedef architecture::DDB DDB; 00034 typedef boost::unordered_map<boost::uint32_t, boost::any> ParameterMap; 00035 00036 public: 00037 // constructor 00038 /// \brief Public Constructor 00039 NetVectorRouterHeuristicBase(DDB& inDB) : RouterHeuristicBase(inDB) {} 00040 /// \brief Destructor. 00041 virtual ~NetVectorRouterHeuristicBase() {} 00042 00043 /// \brief Prioritize nets for routing. 00044 virtual void prioritizeNets(RouteNetVector& inNets) {} 00045 /// \brief Heuristically update parameters related to the associated NetVector router. 00046 virtual void updateParameters(ParameterMap& inParameters) {} 00047 00048 }; // class HeuristicBase 00049 00050 00051 } // namespace router 00052 } // namespace torc 00053 00054 #endif // TORC_ROUTER_NETVECTORROUTERHEURISTICBASE_HPP