Changeset 896 for library/bdm/base/bdmbase.h
- Timestamp:
- 04/09/10 09:31:37 (14 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
library/bdm/base/bdmbase.h
r895 r896 594 594 //!@} 595 595 void from_setting ( const Setting &set ) { 596 root::from_setting( set ); 596 597 shared_ptr<RV> r = UI::build<RV> ( set, "rv", UI::optional ); 597 598 if ( r ) { … … 740 741 class datalink_part : public datalink { 741 742 protected: 742 //! ind eces of values in vector downsize743 //! indices of values in vector downsize 743 744 ivec v2v_down; 744 745 public: … … 760 761 //! rv of the history 761 762 RV Hrv; 762 //! h2v : ind eces in down763 //! h2v : indices in down 763 764 ivec h2v_down; 764 //! h2v : ind eces in history765 //! h2v : indices in history 765 766 ivec h2v_hist; 766 //! v2h: ind eces of up too be pushed to h767 //! v2h: indices of up too be pushed to h 767 768 ivec v2h_up; 768 769 public: … … 932 933 virtual void getdata ( vec &dt ) const = 0; 933 934 934 //! Returns data records at ind eces. Default is inefficent.935 virtual void getdata ( vec &dt, const ivec &ind eces ) {935 //! Returns data records at indices. Default is inefficent. 936 virtual void getdata ( vec &dt, const ivec &indices ) { 936 937 vec tmp(dtsize); 937 938 getdata(tmp); 938 dt = tmp(ind eces);939 dt = tmp(indices); 939 940 }; 940 941 … … 942 943 virtual void write ( const vec &ut ) NOT_IMPLEMENTED_VOID; 943 944 944 //! Accepts action variables at specific ind eces945 virtual void write ( const vec &ut, const ivec &ind eces ) NOT_IMPLEMENTED_VOID;945 //! Accepts action variables at specific indices 946 virtual void write ( const vec &ut, const ivec &indices ) NOT_IMPLEMENTED_VOID; 946 947 947 948 //! Moves from \f$ t \f$ to \f$ t+1 \f$, i.e. perfroms the actions and reads response of the system. … … 960 961 return Urv; 961 962 } 963 962 964 //! set random variables 963 965 virtual void set_drv ( const RV &drv, const RV &urv) {