GRadiatingAgent.h

00001 /***************************************************************************
00002  *   Copyright (C) 2004-2006 by Raphael Langerhorst                        *
00003  *   raphael-langerhorst@gmx.at                                            *
00004  *                                                                         *
00005  *   Permission is hereby granted, free of charge, to any person obtaining *
00006  *   a copy of this software and associated documentation files (the       *
00007  *   "Software"), to deal in the Software without restriction, including   *
00008  *   without limitation the rights to use, copy, modify, merge, publish,   *
00009  *   distribute, sublicense, and/or sell copies of the Software, and to    *
00010  *   permit persons to whom the Software is furnished to do so, subject to *
00011  *   the following conditions:                                             *
00012  *                                                                         *
00013  *   The above copyright notice and this permission notice shall be        *
00014  *   included in all copies or substantial portions of the Software.       *
00015  *                                                                         *
00016  *   THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,       *
00017  *   EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF    *
00018  *   MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.*
00019  *   IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR     *
00020  *   OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, *
00021  *   ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR *
00022  *   OTHER DEALINGS IN THE SOFTWARE.                                       *
00023  ***************************************************************************/
00024 
00025 #ifndef GBEGRADIATINGAGENTH
00026 #define GBEGRADIATINGAGENTH
00027 
00028 #include <GAgent.h>
00029 
00030 namespace GBE
00031 {
00032 
00060 class GRadiatingAgent : public GCS::GAgent
00061 {
00062   Q_OBJECT
00063   
00064   public:
00068     GRadiatingAgent();
00069 
00073     virtual ~GRadiatingAgent();
00074 
00075     //BEGIN ACTION INTERFACE
00076     virtual QStringList getAvailableActions() const;
00077     virtual QString getActionDescription(const QString& action) const;
00078     virtual void performAction(const QString& action, QStringList params);
00079     //END ACTION INTERFACE
00080     
00085     virtual void run();
00086     
00094     virtual void initFraction(double radiation_fraction);
00095     
00102     virtual void initRangeFactor(double range_factor);
00103     
00110     virtual void initMinEnergy(double min_energy_amount);
00111     
00118     virtual void initMaxEnergy(double max_energy_amount);
00119 
00126     virtual void initInterval(unsigned long radiate_interval);
00127 };
00128 
00129 }
00130 
00131 #endif

Generated on Thu Nov 16 07:49:12 2006 for G System by  doxygen 1.4.7