User Manual, Developers Guide and API Documentation

PythonProbeBus.hpp

Go to the documentation of this file.
00001 /*******************************************************************************
00002  * This file is part of openWNS (open Wireless Network Simulator)
00003  * _____________________________________________________________________________
00004  *
00005  * Copyright (C) 2004-2007
00006  * Chair of Communication Networks (ComNets)
00007  * Kopernikusstr. 16, D-52074 Aachen, Germany
00008  * phone: ++49-241-80-27910,
00009  * fax: ++49-241-80-22242
00010  * email: info@openwns.org
00011  * www: http://www.openwns.org
00012  * _____________________________________________________________________________
00013  *
00014  * openWNS is free software; you can redistribute it and/or modify it under the
00015  * terms of the GNU Lesser General Public License version 2 as published by the 
00016  * Free Software Foundation;
00017  *
00018  * openWNS is distributed in the hope that it will be useful, but WITHOUT ANY
00019  * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
00020  * A PARTICULAR PURPOSE.  See the GNU Lesser General Public License for more
00021  * details.
00022  *
00023  * You should have received a copy of the GNU Lesser General Public License
00024  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
00025  *
00026  ******************************************************************************/
00027 
00028 #ifndef WNS_PROBE_BUS_PYTHONPROBEBUS_HPP
00029 #define WNS_PROBE_BUS_PYTHONPROBEBUS_HPP
00030 
00031 #include <WNS/probe/bus/ProbeBus.hpp>
00032 #include <WNS/pyconfig/View.hpp>
00033 #include <WNS/pyconfig/Object.hpp>
00034 
00035 namespace wns { namespace probe { namespace bus {
00036 
00060     class PythonProbeBus:
00061         public wns::probe::bus::ProbeBus
00062     {
00063     public:
00064         PythonProbeBus(const wns::pyconfig::View& pyco);
00065 
00066         virtual ~PythonProbeBus();
00067 
00068         virtual void
00069         onMeasurement(const wns::simulator::Time&,
00070                       const double&,
00071                       const IContext&);
00072 
00073         virtual bool
00074         accepts(const wns::simulator::Time&, const IContext&);
00075 
00076         virtual void
00077         output();
00078 
00079     private:
00080 
00081         void
00082         showdown(const std::string& reason) const;
00083 
00084         wns::pyconfig::View pyco_;
00085 
00086         wns::pyconfig::Object pyAcceptsMethod_;
00087 
00088         wns::pyconfig::Object pyOnMeasurementMethod_;
00089 
00090         wns::pyconfig::Object pyOutputMethod_;
00091 
00092         bool reportErrors_;
00093     };
00094 } // bus
00095 } // probe
00096 } // wns
00097 
00098 #endif //WNS_PROBE_BUS_PYTHONPROBEBUS_HPP

Generated on Fri May 25 03:31:50 2012 for openWNS by  doxygen 1.5.5