8 #include "IMovableItemCallback.h"
9 #include "ISimGUICallback.h"
15 #include "IPhysicsMovableItem.h"
16 #include "IPhysicsBody.h"
18 #include "MovableItem.h"
44 namespace ExternalStimuli
125 void ExternalStimuliMgr::Load(
CStdXml &oXml)
136 for(
int iIndex=0; iIndex<iCount; iIndex++)
160 std::string strModuleName, strType, strFilename;
171 THROW_TEXT_ERROR(Al_Err_lConvertingClassToType, Al_Err_strConvertingClassToType,
"ExternalStimulus");
174 lpStimulus->Load(oXml);
181 if(lpStimulus)
delete lpStimulus;
187 if(lpStimulus)
delete lpStimulus;
188 THROW_ERROR(Std_Err_lUnspecifiedError, Std_Err_strUnspecifiedError);
virtual void Deserialize(std::string &strXml)
Deserializes a string into an xml document.
Declares the external stimulus base class.
Base class file for all Animat simulation objects.
Declares the nervous system class.
ExternalStimulus * LoadExternalStimuli(CStdXml &oXml)
Loads an external stimuli.
Declares the simulation recorder class.
virtual void SetSystemPointers(Simulator *lpSim, Structure *lpStructure, NeuralModule *lpModule, Node *lpNode, bool bVerify)
Sets the system pointers.
virtual bool FindChildElement(std::string strElementName, bool fThrowError=true)
Finds a child element by name.
Root namespace for the base simulation library for AnimatLab.
virtual bool AddStimulus(std::string strXml)
Creates a new stimulus from an xml definition and adds it to the manager.
Declares the body part class.
virtual bool FindElement(std::string strElementName, bool fThrowError=true)
Finds an element with the specified name.
Simulator * m_lpSim
The pointer to a Simulation.
Information about the standard error.
virtual bool IntoElem()
Goes into the next element where the cursor is located.
virtual bool RemoveStimulus(std::string strID)
Removes the stimulus described by strID.
Declares the link base class.
Declares the key frame class.
Declares the joint class.
Declares the organism class.
Declares the activated item class.
virtual CStdSerialize * CreateObject(std::string strModule, std::string strClassName, std::string strType, bool bThrowError=true)
Creates an object using a class factory.
Declares a light manager object.
Declares the bounding box class.
Declares the gain base class.
A standard xml manipulation class.
ExternalStimuliMgr()
Default constructor.
virtual void Reset()
Resets this manager.
virtual std::string GetChildString(std::string strElementName)
Gets a string value from the element with the specified name.
External stimulus base class.
virtual int NumberOfChildren()
Gets the number of children of the current element.
virtual bool OutOfElem()
Goes out of the element where the cursor is located.
Declares the data chart manager class.
Declares the rigid body class.
virtual ~ExternalStimuliMgr()
Destructor.
virtual void Remove(std::string strID, bool bThrowError=true)
Removes the item with the specified ID.
Declares the structure class.
Declares the odor type class.
virtual void Initialize()
Initializes this object.
virtual void VerifySystemPointers()
Verify that system pointers have been set correctly.
Declares the simulator class.
Declares the neural module class.
virtual bool FindChildByIndex(int iIndex, bool bThrowError=true)
Finds a child element by index.
Declares the activated item manager class.
Declares the external stimuli manager class.
Declares the receptive field class.
virtual void Add(ActivatedItem *lpItem)
Adds a new ActivatedItem to be managed.