rc_control_if.h

Go to the documentation of this file.
00001 // vim:set et sts=4 ts=4 tw=75 sw=4 ai ci cin cino=g0,t0:
00002 /*
00003  * Copyright (C) 2007, Technical Computer Science Group,
00004  *                     University of Bonn
00005  *
00006  * This file is part of the ReChannel library.
00007  *
00008  * The ReChannel library is free software; you can redistribute it and/or
00009  * modify it under the terms of the GNU General Public License as
00010  * published by the Free Software Foundation; either version 2 of the
00011  * License, or (at your option) any later version.
00012  *
00013  * This library is distributed in the hope that it will be
00014  * useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
00015  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00016  * General Public License for more details.
00017  *
00018  * You should have received a copy of the GNU General Public License
00019  * along with this library; see the file COPYING. If not, write to the
00020  * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
00021  * Boston, MA 02110-1301, USA.
00022  *
00023  * Authors: Andreas Raabe and Armin Felke. Implementation by Armin Felke.
00024  *          {raabe, felke}@cs.uni-bonn.de
00025  */
00037 #ifndef RC_CONTROL_IF_H_
00038 #define RC_CONTROL_IF_H_
00039 
00040 #include "ReChannel/core/rc_common_header.h"
00041 
00042 namespace ReChannel {
00043 
00044 class rc_control;
00045 class rc_reconfigurable;
00046 class rc_reconfigurable_set;
00047 class rc_switch_connector_base;
00048 
00052 class rc_control_sim_if
00053     : virtual public sc_interface
00054 {
00055 public:
00056     virtual bool has_control(
00057         const rc_reconfigurable_set& reconf_set) const = 0;
00058 
00059     virtual void load(const rc_reconfigurable_set& reconf_set) = 0;
00060 
00061     virtual void activate(const rc_reconfigurable_set& reconf_set) = 0;
00062 
00063     virtual void deactivate(const rc_reconfigurable_set& reconf_set) = 0;
00064 
00065     virtual void unload(const rc_reconfigurable_set& reconf_set) = 0;
00066 
00067     virtual void lock(const rc_reconfigurable_set& reconf_set) = 0;
00068 
00069     virtual bool trylock(const rc_reconfigurable_set& reconf_set) = 0;
00070 
00071     virtual void unlock(const rc_reconfigurable_set& reconf_set) = 0;
00072 
00073     virtual bool is_locked(
00074         const rc_reconfigurable_set& reconf_set) const = 0;
00075 
00076 protected:
00077     virtual ~rc_control_sim_if() {}
00078 };
00079 
00083 class rc_control_elab_if
00084     : virtual public sc_interface
00085 {
00086 public:
00087     virtual bool has_control(
00088         const rc_reconfigurable_set& reconf_set) const = 0;
00089 
00090     virtual void add(const rc_reconfigurable_set& reconf_set) = 0;
00091 
00092 protected:
00093     virtual ~rc_control_elab_if() {}
00094 };
00095 
00099 class rc_control_if
00100     : virtual public rc_control_sim_if,
00101       virtual public rc_control_elab_if
00102 {
00103     virtual void move(
00104         const rc_reconfigurable_set& reconf_set,
00105         rc_switch_connector_base& target) = 0;
00106 
00107     virtual void remove(const rc_reconfigurable_set& reconf_set) = 0;
00108 };
00109 
00110 } // namespace ReChannel
00111 
00112 #endif //RC_CONTROL_IF_H_
00113 
00114 //
00115 // $Id: rc_control_if.h,v 1.8 2007/11/23 13:21:48 felke Exp $
00116 // $Source: /var/cvs/projekte/ReChannel-v2/src/ReChannel/core/rc_control_if.h,v $
00117 //

Generated on Tue Jan 1 23:13:31 2008 for ReChannel by  doxygen 1.5.3