AnimatLab  2
Test
PhysicsNeuralModule.h
1 
7 #pragma once
8 
9 namespace AnimatSim
10 {
11  namespace Behavior
12  {
13 
23  {
24  protected:
26  CStdPtrArray<Adapter> m_aryAdapters;
27 
28  Adapter *LoadAdapter(CStdXml &oXml);
29 
30  public:
32  virtual ~PhysicsNeuralModule();
33 
34  static PhysicsNeuralModule *CastToDerived(AnimatBase *lpBase) {return static_cast<PhysicsNeuralModule*>(lpBase);}
35 
36  virtual float TimeStep();
37  virtual void TimeStep(float fltVal);
38 
47  virtual std::string ModuleName() {return "PhysicsNeuralModule";};
48 
49  virtual void AddAdapter(std::string strXml, bool bDoNotInit);
50  virtual void RemoveAdapter(std::string strID);
51  virtual int FindAdapterListPos(std::string strID, bool bThrowError = true);
52 
53  virtual void Kill(bool bState = true);
54  virtual void Initialize();
55  virtual void ResetSimulation();
56  virtual void Load(CStdXml &oXml);
57 
58  #pragma region DataAccesMethods
59  virtual bool SetData(const std::string &strDataType, const std::string &strValue, bool bThrowError = true);
60  virtual void QueryProperties(CStdPtrArray<TypeProperty> &aryProperties);
61  virtual bool AddItem(const std::string &strItemType, const std::string &strXml, bool bThrowError = true, bool bDoNotInit = false);
62  virtual bool RemoveItem(const std::string &strItemType, const std::string &strID, bool bThrowError = true);
63  #pragma endregion
64 
65  #pragma region SnapshotMethods
66  virtual long CalculateSnapshotByteSize();
67  virtual void SaveKeyFrameSnapshot(byte *aryBytes, long &lIndex);
68  virtual void LoadKeyFrameSnapshot(byte *aryBytes, long &lIndex);
69  #pragma endregion
70 
71  };
72 
73  } //Behavior
74 } //AnimatSim
Root namespace for the base simulation library for AnimatLab.
virtual std::string ModuleName()
Gets the module name.
CStdPtrArray< Adapter > m_aryAdapters
The array of adapters in this module.
Animat base class.
Definition: AnimatBase.h:36