8 #include "IMovableItemCallback.h"
9 #include "ISimGUICallback.h"
14 #include "IPhysicsMovableItem.h"
15 #include "IPhysicsBody.h"
17 #include "MovableItem.h"
70 {
Std_TraceMsg(0,
"Caught Error in desctructor of Node\r\n",
"", -1,
false,
true);}
125 AnimatBase::Copy(lpSource);
127 Node *lpOrig =
dynamic_cast<Node *
>(lpSource);
176 THROW_PARAM_ERROR(Al_Err_lStructureNotDefined, Al_Err_strStructureNotDefined,
"Link: ",
m_strID);
179 bool Node::SetData(
const std::string &strDataType,
const std::string &strValue,
bool bThrowError)
186 if(strType ==
"ENABLED")
194 THROW_PARAM_ERROR(Al_Err_lInvalidDataType, Al_Err_strInvalidDataType,
"Data Type", strDataType);
203 aryProperties.Add(
new TypeProperty(
"Enabled", AnimatPropertyType::Boolean, AnimatPropertyDirection::Both));
virtual void SetSystemPointers(Simulator *lpSim, Structure *lpStructure, NeuralModule *lpModule, Node *lpNode, bool bVerify)
Sets the system pointers.
virtual void ResetSimulation()
Resets the simulation back to time 0.
virtual ~Node()
Destructor.
Base class file for all Animat simulation objects.
Declares the nervous system class.
bool m_bInitEnabled
Keeps track of the enabled state at sim startup.
Declares the simulation recorder class.
virtual void SetSystemPointers(Simulator *lpSim, Structure *lpStructure, NeuralModule *lpModule, Node *lpNode, bool bVerify)
Sets the system pointers.
Simulates the entire environment.
virtual void Kill(bool bState=true)
Kills.
Root namespace for the base simulation library for AnimatLab.
Declares the body part class.
Simulator * m_lpSim
The pointer to a Simulation.
float m_fltEnabled
This is used for reporting the enabled state in a GetDataPointer call.
virtual int GetTargetDataTypeIndex(const std::string &strDataType)
Used to convert a string target data type into an integer index.
Node()
Default constructor.
Class that stores information about types for QueryProperty information.
Declares the link base class.
Declares the key frame class.
Declares the joint class.
Declares the organism class.
virtual bool SimRunning()
Gets whether the simulation is running.
Organism * m_lpOrganism
The pointer to this node's organism.
AnimatSim::Environment::Structure * m_lpStructure
The pointer to this items parent Structure. If this is not relevant for this object then this is NULL...
virtual bool Enabled()
Tells whether this node is enabled.
std::string m_strID
The unique Id for this object.
Declares the activated item class.
virtual void QueryProperties(CStdPtrArray< TypeProperty > &aryProperties)
Queries this object for a list of properties that can be changed using SetData.
Declares a light manager object.
Declares the bounding box class.
Declares the gain base class.
A "static" structure in the simulation.
virtual void QueryProperties(CStdPtrArray< TypeProperty > &aryProperties)
Queries this object for a list of properties that can be changed using SetData.
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.
bool m_bEnabled
Tells if this item is enabled or not. If it is not enabled then it is not run.
A dynamic organism that is controlled by a neural network.
Base class for body parts and neural network nodes.
Declares the data chart manager class.
virtual void ResetSimulation()
Resets the simulation back to time 0.
Declares the rigid body class.
virtual void VerifySystemPointers()
Verify that system pointers have been set correctly.
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.
Standard serialize class.
virtual void VerifySystemPointers()
Verify that system pointers have been set correctly.
Declares the simulator class.
virtual void UpdateData()
Updates any reporting data for this time step.
Declares the neural module class.
Declares the activated item manager class.
Declares the external stimuli manager 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.
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.