8 #include "IMovableItemCallback.h"
9 #include "ISimGUICallback.h"
13 #include "IPhysicsMovableItem.h"
14 #include "IPhysicsBody.h"
16 #include "MovableItem.h"
84 THROW_TEXT_ERROR(Std_Err_lBlankAttrib, Std_Err_strBlankAttrib,
"Attribute: ColumnName");
109 THROW_TEXT_ERROR(Std_Err_lBlankAttrib, Std_Err_strBlankAttrib,
"Attribute: DataType");
135 THROW_TEXT_ERROR(Std_Err_lBlankAttrib, Std_Err_strBlankAttrib,
"Attribute: TargetID");
249 THROW_TEXT_ERROR(Al_Err_lDataPointNotFound, Al_Err_strDataPointNotFound,
261 void DataColumn::Activate()
265 void DataColumn:: Deactivate()
276 if(strType ==
"COLUMNINDEX")
282 if(strType ==
"DATATYPE")
291 THROW_PARAM_ERROR(Al_Err_lInvalidDataType, Al_Err_strInvalidDataType,
"Data Type", strDataType);
300 aryProperties.Add(
new TypeProperty(
"ColumnIndex", AnimatPropertyType::Integer, AnimatPropertyDirection::Set));
301 aryProperties.Add(
new TypeProperty(
"DataType", AnimatPropertyType::String, AnimatPropertyDirection::Set));
337 THROW_PARAM_ERROR(Al_Err_lChartNotDefined, Al_Err_strChartNotDefined,
"DataColumn: ",
m_strName);
360 void DataColumn::Load(
CStdXml &oXml)
391 return lpColumn1->operator<(lpColumn2);
Base class file for all Animat simulation objects.
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.
Root namespace for the base simulation library for AnimatLab.
virtual void SaveColumnNames(std::ofstream &oStream)
Saves this DataColumn name to the out stream for the file.
Declares the body part class.
virtual void QueryProperties(CStdPtrArray< TypeProperty > &aryProperties)
Queries this object for a list of properties that can be changed using SetData.
Simulator * m_lpSim
The pointer to a Simulation.
virtual bool IntoElem()
Goes into the next element where the cursor is located.
bool m_bInitialized
true it this chart has been initialized
virtual float * GetDataPointer(const std::string &strDataType)
Returns a float pointer to a data item of interest in this object.
Class that stores information about types for QueryProperty information.
virtual void StepSimulation()
Step the simulation for this object.
virtual void Initialize()
Initializes this object.
Declares the key frame class.
bool Std_InValidRange(int iMinVal, int iMaxVal, int iVal, bool bThrowError, std::string strParamName)
Tests whether a number is within a valid range.
virtual int ColumnCount()
Gets the number of columns for this DataColumn.
Declares the joint class.
virtual void Initialize()
Initializes this object.
Declares the organism class.
virtual int GetChildInt(std::string strElementName)
Gets an integer value from the element with the specified name.
bool Std_IsAboveMin(int iMinVal, int iVal, bool bThrowError, std::string strParamName, bool bInclusiveLimit)
Tests if a number is above a minimum value.
std::string m_strID
The unique Id for this object.
int m_iAppendSpaces
Determines whether how many other tabs are added after this data is written to the file...
bool LessThanDataColumnCompare(DataColumn *lpColumn1, DataColumn *lpColumn2)
Compares two DataColumn items to find the one that is less than the other.
virtual std::string DataType()
Gets the data type of the variable we are collecting. This is the value passed into GetDataPointer...
Declares the activated item class.
Declares the data column class.
float * m_lpDataValue
Pointer to the data variable we are collecting.
Declares a light manager object.
DataChart * m_lpChart
Pointer to the parent DataChart.
Declares the bounding box class.
virtual std::string Name()
Gets the name of this object.
A standard xml manipulation class.
A "static" structure in the simulation.
virtual void AddData(int iColumn, int iRow, float fltVal)
Adds a data element to the data buffer.
virtual void QueryProperties(CStdPtrArray< TypeProperty > &aryProperties)
Queries this object for a list of properties that can be changed using SetData.
virtual std::string GetChildString(std::string strElementName)
Gets a string value from the element with the specified name.
virtual float * DataValue()
Gets the pointer to the data value we are collecting.
virtual AnimatBase * FindByID(std::string strID, bool bThrowError=true)
Searches for the object with the specified ID.
virtual void Load(StdUtils::CStdXml &oXml)
Loads the item using an XML data packet.
virtual int AppendSpaces()
Gets how many spaces to append.
std::string m_strTargetID
GUID ID of the target object that contains the variable we will be collecting.
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 int ColumnIndex()
Gets the column index.
virtual void ReInitialize()
Re-initialize this object.
Base class for body parts and neural network nodes.
AnimatBase * m_lpTarget
Pointer to the target object that contains the data variable we will be collecting.
virtual bool OutOfElem()
Goes out of the element where the cursor is located.
virtual bool operator<(DataColumn *lpColumn)
Determines if this column has an index value less than the index value of the column being passed in...
Declares the data chart class.
std::string m_strDataType
The Data type of the variable we will be collecting. This is passed into the GetDataPointer method of...
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.
virtual void VerifySystemPointers()
Verify that system pointers have been set correctly.
virtual void SetSystemPointers(Simulator *lpSim, Structure *lpStructure, NeuralModule *lpModule, Node *lpNode, DataChart *lpChart, bool bVerify)
Sets the system pointers.
virtual std::string TargetID()
Gets the GUID ID of the item to chart.
Declares the structure class.
Declares the odor type class.
virtual void VerifySystemPointers()
Verify that system pointers have been set correctly.
DataColumn()
Default constructor.
virtual bool IsInitialized()
Query if this object is initialized.
Declares the simulator class.
virtual int RowIndex()
Gets the row index.
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.
virtual ~DataColumn()
Destructor.
Declares the receptive field class.
std::string m_strName
The name for this object.