HowManyAreAnalyzed(): use status_user_agent to report progress
[linguistica.git] / DCNsnetwork.h
blob8085425a4e2ec573af1f07cf229f4b347347cafb
1 // Network set type for stress discovery with Dynamic Computational Networks
2 // Copyright © 2009 The University of Chicago
3 #ifndef SNETWORK_H
4 #define SNETWORK_H
6 // See the learning documentation in DCNlearning.h for an overview.
8 class network;
9 class QString;
10 class Q3TextEdit;
11 class grammar;
13 #include <q3ptrvector.h>
15 /**
16 * A snetwork is a Set of NETWORKs.
17 * Give it the smallest and largest word, and a grammar,
18 * and the snetwork will make a vector of networks, one
19 * for each word length. This makes it easy to see what
20 * a grammar does for a DCN. The print() function is
21 * especially useful.
23 class snetwork
26 private:
27 int leastNumberOfSyl;
28 int greatestNumberOfSyl;
29 bool converged;
30 grammar* theGrammar;
31 Q3PtrVector<network> theNetworks;
33 public:
34 snetwork(int leastNumberOfSyl, int greatestNumberOfSyl);
35 virtual ~snetwork();
36 void setGrammar(grammar* theGrammar);
37 void print(Q3TextEdit *label);
38 void equilibrium();
39 bool isTotallyConverged() { return converged; }
43 #endif // SNETWORK_H