8 #include "IMovableItemCallback.h"
9 #include "ISimGUICallback.h"
14 #include "IPhysicsMovableItem.h"
15 #include "IPhysicsBody.h"
17 #include "MovableItem.h"
46 namespace ExternalStimuli
72 {
Std_TraceMsg(0,
"Caught Error in desctructor of EnablerStimulus\r\n",
"", -1,
false,
true);}
98 THROW_ERROR(Al_Err_lBodyIDBlank, Al_Err_strBodyIDBlank);
162 if(strType ==
"ENABLEWHENACTIVE")
170 THROW_PARAM_ERROR(Al_Err_lInvalidDataType, Al_Err_strInvalidDataType,
"Data Type", strDataType);
179 aryProperties.Add(
new TypeProperty(
"EnableWhenActive", AnimatPropertyType::Boolean, AnimatPropertyDirection::Set));
182 void EnablerStimulus::Load(
CStdXml &oXml)
184 ActivatedItem::Load(oXml);
virtual bool EnableWhenActive()
Tells if the node is enabled when active. This is used to control if we are enabling the node during ...
Declares the external stimulus base class.
Base class file for all Animat simulation objects.
Declares the nervous system class.
virtual void Activate()
Activates this item.
Declares the simulation recorder class.
Root namespace for the base simulation library for AnimatLab.
Declares the body part class.
EnablerStimulus()
Default constructor.
Simulator * m_lpSim
The pointer to a Simulation.
virtual bool IntoElem()
Goes into the next element where the cursor is located.
virtual void Activate()
Activates this item.
Class that stores information about types for QueryProperty information.
virtual void QueryProperties(CStdPtrArray< TypeProperty > &aryProperties)
Queries this object for a list of properties that can be changed using SetData.
std::string m_strTargetNodeID
GUID ID of the target node to enable.
Declares the link base class.
Declares the key frame class.
virtual bool SetData(const std::string &strDataType, const std::string &strValue, bool bThrowError=true)
Set a variable based on a string data type name.
virtual std::string Type()
returns the string type name of this object.
virtual void Initialize()
Initializes this object.
Declares the joint class.
virtual void Deactivate()
Deactivates this item.
Declares the organism class.
virtual ~EnablerStimulus()
Destructor.
virtual bool Enabled()
Tells whether this node is enabled.
Declares the activated item class.
Declares a light manager object.
virtual void StepSimulation()
Step the simulation for this object.
Declares the enabler stimulus class.
Declares the bounding box class.
Declares the gain base class.
bool m_bEnableWhenActive
Tells whether the node is enabled while stimulus is active or not.
A standard xml manipulation class.
Node * m_lpNode
The pointer to this items parent Node. If this is not relevant for this object then this is NULL...
virtual std::string GetChildString(std::string strElementName)
Gets a string value from the element with the specified name.
virtual AnimatBase * FindByID(std::string strID, bool bThrowError=true)
Searches for the object with the specified ID.
bool Std_ToBool(int iVal)
Converts a value toa bool.
void Std_TraceMsg(const int iLevel, std::string strMessage, std::string strSourceFile, int iSourceLine, bool bLogToFile, bool bPrintHeader)
Traces a message to the debugger window.
virtual bool GetChildBool(std::string strElementName)
Gets a bool value from the element with the specified name.
Base class for body parts and neural network nodes.
virtual bool OutOfElem()
Goes out of the element where the cursor is located.
virtual void Deactivate()
Deactivates this item.
bool Std_IsBlank(std::string strVal)
Trims a string and tests if a string is blank.
Declares the data chart manager class.
Declares the rigid body class.
std::string Std_CheckString(std::string strVal)
Converts a string to upper case and trims it.
Declares the structure class.
Declares the odor type class.
virtual void Initialize()
Initializes this object.
Declares the simulator class.
virtual void QueryProperties(CStdPtrArray< TypeProperty > &aryProperties)
Queries this object for a list of properties that can be changed using SetData.
Declares the neural module class.
virtual std::string TargetNodeID()
Gets the GUID ID of the target node that will be enabled.
Declares the activated item manager class.
Declares the external stimuli manager class.
Declares the receptive field class.
virtual bool SetData(const std::string &strDataType, const std::string &strValue, bool bThrowError=true)
Set a variable based on a string data type name.