>xabsl | The Extensible Agent Behavior Specification Language |
start | team | language reference | tools | xabsl engine | download | licence | |
XabslEngine Class Library Reference | |
  | |
Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members
XabslBasicBehavior.hGo to the documentation of this file.00001 /** 00002 * @file XabslBasicBehavior.h 00003 * 00004 * Declaration class BasicBehavior 00005 * 00006 * @author <a href="http://www.martin-loetzsch.de">Martin Loetzsch</a> 00007 * @author <a href="http://www.sim.informatik.tu-darmstadt.de/pers/card/risler.html">Max Risler</a> 00008 * @author <a href="http://www.informatik.hu-berlin.de/~juengel">Matthias JŸngel</a> 00009 */ 00010 00011 #ifndef __XabslBasicBehavior_h_ 00012 #define __XabslBasicBehavior_h_ 00013 00014 #include "XabslTools.h" 00015 #include "XabslBehavior.h" 00016 00017 namespace xabsl 00018 { 00019 00020 /** 00021 * The base class for basic behaviors that are used by the Engine 00022 * 00023 * @author <a href="http://www.martin-loetzsch.de">Martin Loetzsch</a> 00024 * @author <a href="http://www.sim.informatik.tu-darmstadt.de/pers/card/risler.html">Max Risler</a> 00025 * @author <a href="http://www.informatik.hu-berlin.de/~juengel">Matthias JŸngel</a> 00026 */ 00027 class BasicBehavior : public Behavior 00028 { 00029 public: 00030 /** 00031 * Constructor 00032 * @param name The name of the basic behavior 00033 * @param errorHandler A reference to the error handler 00034 */ 00035 BasicBehavior(const char* name, ErrorHandler& errorHandler) 00036 : Behavior(name), index(-1) 00037 { 00038 parameters = new Parameters(errorHandler); 00039 }; 00040 00041 /** Destructor */ 00042 virtual ~BasicBehavior() 00043 { 00044 delete parameters; 00045 } 00046 00047 /** Registers the parameters. */ 00048 virtual void registerParameters() {} 00049 00050 /** Index of the basic behavior in array basicBehaviors in corresponding engine */ 00051 int index; 00052 }; 00053 00054 00055 00056 } // namespace 00057 00058 #endif // __XabslBasicBehavior_h_ 00059 Up | Main Page | Generated at Wed Aug 19 17:32:28 2009.
|
|
Copyright 2002 - 2009 by the XABSL developer team. See the licence for details. | |