diff src/Support/Module.h @ 160:747ba38b4b1b

- AIMCopy v5 for just smooth NAP features - Reporting of all modules and versions
author tomwalters
date Sun, 11 Jul 2010 03:46:06 +0000
parents bbf4728ffa0e
children c155e7fbe76e
line wrap: on
line diff
--- a/src/Support/Module.h	Mon Jun 07 08:38:21 2010 +0000
+++ b/src/Support/Module.h	Sun Jul 11 03:46:06 2010 +0000
@@ -101,14 +101,8 @@
    * override the default Initialize function. When creating a new module, do
    * not create a new version of Initialize uness you're sure you know what
    * you're doing!
-   *
-   * global_parameters stores things like the input filename, output filenames
-   * and any other metadata that modules might want to share. If present, it 
-   * is propagated to all children. These parameters are mutable and may
-   * change.
    */
-  virtual bool Initialize(const SignalBank &input,
-                          Parameters *global_parameters);
+  virtual bool Initialize(const SignalBank &input);
 
   /*! \brief Returns true if the module has been correctly initialized
    *  \return true if module has been initialized, false otherwise
@@ -168,8 +162,8 @@
   const SignalBank* GetOutputBank() const;
 
   void PrintTargets(ostream &out);
-  void PrintTargetsForDot(ostream &out);
-  void PrintConfiguration(ostream &out);
+
+  void PrintVersions(ostream &out);
 
   string version() const {
     return module_version_;
@@ -186,18 +180,6 @@
   string type() const {
     return module_type_;
   }
-  
-  bool done() {
-    return done_;
-  }
-  
-  void set_instance_name(string instance_name) {
-    instance_name_ = instance_name;
-  }
-  
-  string instance_name() {
-    return instance_name_;
-  }
 
  protected:
   void PushOutput();
@@ -207,18 +189,14 @@
   virtual bool InitializeInternal(const SignalBank &input) = 0;
 
   bool initialized_;
-  bool done_;
   set<Module*> targets_;
   SignalBank output_;
   Parameters* parameters_;
-  Parameters* global_parameters_;
 
   string module_identifier_;
   string module_type_;
   string module_description_;
   string module_version_;
-  
-  string instance_name_;
 
  private:
   DISALLOW_COPY_AND_ASSIGN(Module);