NodeList Class Reference
#include <NodeList.h>
List of all members.
Detailed Description
The Nodelist tracks and maintains the nodes within the network
Constructor & Destructor Documentation
Member Function Documentation
Locate a given node by name. If it exists, replace the node reference. Otherwise, add the item to the list.
void NodeList::addAnalPt |
( |
const int & |
item |
) |
|
void NodeList::addInput |
( |
NodeItem & |
item |
) |
[protected] |
void NodeList::addMutant |
( |
Mutant & |
item |
) |
[protected] |
void NodeList::addNode |
( |
NodeItem & |
item |
) |
[protected] |
void NodeList::addOutCalc |
( |
NodeItem & |
item |
) |
[protected] |
void NodeList::addOutput |
( |
NodeItem & |
item |
) |
[protected] |
void NodeList::bitsPrint |
( |
NodeList & |
nl |
) |
|
Properly records bits for later use
void NodeList::calcAvg |
( |
void |
|
) |
|
Calculate the average activity level for nodes for the last n iterations where n is the value of transient.
void NodeList::calcCurrAvg |
( |
void |
|
) |
|
Calculates the average activity level of nodes based on the average period
void NodeList::clear |
( |
void |
|
) |
|
int NodeList::find |
( |
string |
n |
) |
|
Locate a given node by name. If it does not exist, create a NodeItem to be filled in later.
string NodeList::getInputNames |
( |
int |
node |
) |
|
Node& NodeList::getInputNode |
( |
int |
i |
) |
[inline] |
returns the i'th Input node
string NodeList::getName |
( |
int |
i |
) |
[inline] |
returns the name of the i'th node on the nodelist
int NodeList::getNextAnalPt |
( |
void |
|
) |
|
gets the next analysis point
Node& NodeList::getNode |
( |
int |
i |
) |
[inline] |
returns the i'th node on the array of nodes
int NodeList::getNodeAvg |
( |
string |
node, |
|
|
int |
transient | |
|
) |
| | |
returns the recent average activity for 'node' for the last n iterations where n is the value of transient
int NodeList::getNodeIndex |
( |
string |
n |
) |
|
Returns the index number of node n
NodeItem& NodeList::getNodeItem |
( |
int |
i |
) |
[inline] |
returns the i'th node item on the array of node items
int NodeList::getNumOfInputs |
( |
|
) |
[inline] |
returns the number of inputs
int NodeList::getOutLevels |
( |
int |
j |
) |
|
string NodeList::getOutNames |
( |
int |
i |
) |
|
string NodeList::getRunDir |
( |
void |
|
) |
[inline] |
string NodeList::getRunName |
( |
|
) |
[inline] |
returns the name of the simulation
int NodeList::getRunTime |
( |
|
) |
[inline] |
int NodeList::getScalar |
( |
void |
|
) |
[inline] |
int NodeList::getSimnum |
( |
void |
|
) |
[inline] |
int NodeList::getTransient |
( |
|
) |
[inline] |
int NodeList::getWindow |
( |
void |
|
) |
[inline] |
void NodeList::initBits |
( |
bool |
val |
) |
|
void NodeList::initInputBits |
( |
|
) |
|
Initializes the input bit files
int NodeList::inOutCalc |
( |
int |
i |
) |
|
Returns the index of the node with name n on the Outcalc array if that node is on the outcalc array, otherwise it returns -1
void NodeList::inOutInit |
( |
void |
|
) |
|
initializes the in out array
bool NodeList::isBool |
( |
string |
s |
) |
|
returns true if s is a boolean node in the network
bool NodeList::isNoisyInputs |
( |
void |
|
) |
[inline] |
int NodeList::nodeSize |
( |
|
) |
[inline] |
return the total number of nodes
int NodeList::outCalcSize |
( |
|
) |
[inline] |
return the size of the ouput calculations
int NodeList::outputSize |
( |
|
) |
[inline] |
returns the number of outputs
void NodeList::printAnalPts |
( |
void |
|
) |
|
void NodeList::printAvg |
( |
ostream & |
out |
) |
|
Prints the average activity levels to ostream out
void NodeList::printAvgSep |
( |
const string & |
path |
) |
|
Prints each node's average to an individual file in the directory path
void NodeList::printBits |
( |
ostream & |
out |
) |
|
Print bits by iterations -> 1 line = state of the system
void NodeList::printDosages |
( |
ostream & |
out |
) |
|
Prints the dosages to ostream out
void NodeList::printInputBits |
( |
ostream & |
out |
) |
|
Prints input node bits to ostream out
void NodeList::printInputs |
( |
ostream & |
out |
) |
|
Prints inputnodes to ostream out
NodeList & NodeList::printNames |
( |
ostream & |
out |
) |
|
void NodeList::printNodes |
( |
ostream & |
out |
) |
|
Prints nodes to ostream out
int NodeList::ptsSize |
( |
|
) |
[inline] |
returns the number of analysis points
void NodeList::readBools |
( |
string |
inFile |
) |
|
Read boolean nodes from a file
void NodeList::reset |
( |
void |
|
) |
|
Resets the network to the initial state
void NodeList::setInputs |
( |
string |
node, |
|
|
int |
level | |
|
) |
| | |
void NodeList::setMutants |
( |
void |
|
) |
|
For every Mutant, find the matching node and set its Mut to the matching Mutant's type
void NodeList::setNoisyInputs |
( |
void |
|
) |
[inline] |
set noisyInputs to true to allow for noise
void NodeList::setOutputAll |
( |
bool |
b |
) |
[inline] |
void NodeList::setRunDir |
( |
const string & |
str |
) |
[inline] |
void NodeList::setRunName |
( |
const string & |
str |
) |
[inline] |
NodeList& NodeList::setRunTime |
( |
int |
r |
) |
[inline] |
sets the runtime to r and returns *this
NodeList& NodeList::setScalar |
( |
int |
s |
) |
[inline] |
sets scalar to s and returns *this
void NodeList::setSimnum |
( |
int |
i |
) |
[inline] |
NodeList& NodeList::setTransient |
( |
int |
r |
) |
[inline] |
sets transient to r and returns *this
NodeList& NodeList::setWindow |
( |
int |
w |
) |
[inline] |
sets window to w and returns *this
void NodeList::sortAnalPts |
( |
void |
|
) |
|
void NodeList::visPrint |
( |
ostream & |
out, |
|
|
NodeList & |
nl | |
|
) |
| | |
Prints required nodes to visout.
Friends And Related Function Documentation
istream& operator>> |
( |
istream & |
in, |
|
|
NodeList & |
nl | |
|
) |
| | [friend] |
Member Data Documentation
The documentation for this class was generated from the following files: