///////////////////////////////////////////////////////////////////// // node.cpp - These nodes are over-simplified. They do no real // // computation, nor will they be connected with other // // nodes. // // - Their purpose is simply to show how an abstract // // factory pattern could be applied to the construct- // // tion of a neural network. // // // // Jim Fawcett, CSE776 - Design Patterns, Summer 2004 // ///////////////////////////////////////////////////////////////////// #include "node.h" #include using namespace std; void inputNode::compute() { cout << "\n input node acquiring data"; } void hiddenNode::compute() { cout << "\n hidden node transforming data"; } void outputNode::compute() { cout << "\n output node collecting data"; }