Source: DemoBlankTopoConnection.h


Annotated List
Files
Globals
Hierarchy
Index
// =======================================================================================
// DemoBlankTopoConnection.h
// Time-stamp: <2001-11-27 19:42:03 aknoblau>
// Demonstration blank topographic kernel connection
// programmed in November 2001 by Andreas Knoblauch
// Department of Neural Information Processing
// University of Ulm, Germany
// Version 1.0 alpha
// last documented change: November 30, 2001
// =======================================================================================
// types/classes/interfaces:
// ---------------------------------------------------------------------------------------
// global objects:
// ---------------------------------------------------------------------------------------
// related modules: 
// ---------------------------------------------------------------------------------------
// notes:
// ---------------------------------------------------------------------------------------
// history: 
//   Version 1.0 alpha programmed on November 27, 2001 by Andreas Knoblauch
// ---------------------------------------------------------------------------------------
// bugs:
// ---------------------------------------------------------------------------------------
// 2 do:
// =======================================================================================

#ifndef DemoBlankTopoConnection_H
#define DemoBlankTopoConnection_H

#include "BlankTopoConnection.h"



// **************************************************************************************************************************
// **************************************************************************************************************************
// TMDemoBlankTopoConnection
// template for topographical delayed connections with DemoBlankTopo kernels
// Status: version 1.0 alpha
// last change: November 30, 2001
// **************************************************************************************************************************

template
class TMDemoBlankTopoConnection : public TMBlankTopoConnection {
 public:
  // parameters
  string scopeID,                // scope id for scope of class TMDemoBlankTopoConnection
         scopeID_fullDimFlags,   // scope id for scope of fullDimFlags
         scopeID_delays;         // scope id for scope of delays
  TPar demoPar;                  // demonstration parameter: synaptic weight i is set to i*dummyPar

  // constructors/destructors
  TMDemoBlankTopoConnection(TSimulationEnvironment& simEnv_arg, const char* name_arg,                        // constructors (complete)
                            TMPort* preOut_arg, TMPort* postIn_arg,                       // - cMode=CM_OutToIn
                            TLayout* kernelLT_arg, int nKernels_arg);                                        //   zero-centered delays
  TMDemoBlankTopoConnection(TSimulationEnvironment& simEnv_arg, const char* name_arg,                        // constructors (default)
                            TMPort* preOut_arg, TMPort* postIn_arg,                       // - cMode=CM_OutToIn
                            TLayout* kernelLT_arg, int nKernels_arg, int parse);                             //   zero-centered delays
  TMDemoBlankTopoConnection(TMDemoBlankTopoConnection& pattern,    // constructor (patterned/copy)
                            const char* name_arg, TMPort* preOut_arg, TMPort* postIn_arg, // - new memory for weight
                            TLayout* kernelLT_arg);                                                          //   and delay kernels is all.
  ~TMDemoBlankTopoConnection();                                                                              // destructor

  // methods
  void setDefaultParameters();                 // set default parameters
  void setKernels();                           // set kernels according to parameters
  void reparse();                              // reparse parameters
  void handleUpdatedParameters();              // handle updated parameters
  void outputState(ostream& os);               // display all fields of the object
  void outputState(ostream& os, int complete); // if complete==0 then display only the most important fields of the object

  template
  friend ostream & operator<<(ostream& os, const TMDemoBlankTopoConnection& btc); 
  template
  friend istream & operator>>(istream& is,       TMDemoBlankTopoConnection& btc); 

 private:
  static const char* scopeString;              // scope name of class TMBlankTopoConnection
};

template
ostream & operator<<(ostream& os, const TMDemoBlankTopoConnection& btc); // output operator
template
istream & operator>>(istream& is,       TMDemoBlankTopoConnection& btc); // input operator



#endif  /* DemoBlankTopoConnection_H */

Generated by: aknoblau on synfire on Sat May 1 14:32:16 2004, using kdoc 2.0a54.