BooleanNode Class Reference
#include <Node.h>
List of all members.
Detailed Description
A boolean node is a representation for the activity level of protiens within the simulation, they store their current state, their previous state and the other nodes wich it is dependant on.
Constructor & Destructor Documentation
BooleanNode::BooleanNode |
( |
|
) |
|
Member Function Documentation
adds d to the decision table
Adds a new parent node to sources
bool BooleanNode::evaluate |
( |
NodeList & |
nl, |
|
|
int |
t | |
|
) |
| | [virtual] |
Sets the value equal to the appropriate value based on the sources.
retreives the correct table in the form of an integer, builds the current state table in the form of an integer using bit shift operations and then compares the two to determine if the current state of the inputs mandates that this node be true.
Implements Node.
virtual string BooleanNode::getType |
( |
void |
|
) |
[inline, virtual] |
void BooleanNode::mutate |
( |
int |
rate, |
|
|
int |
num, |
|
|
string |
rundir | |
|
) |
| | |
virtual void BooleanNode::reset |
( |
void |
|
) |
[inline, virtual] |
void BooleanNode::setH |
( |
void |
|
) |
[inline] |
BooleanNode& BooleanNode::setTarget |
( |
bool |
b |
) |
[inline] |
sets target to b and returns *this
void BooleanNode::simplify |
( |
void |
|
) |
[inline] |
int BooleanNode::sourceSize |
( |
|
) |
[inline, private] |
returns the number of sources
int BooleanNode::tableSize |
( |
|
) |
[inline, private] |
returns the size of the table
Member Data Documentation
The documentation for this class was generated from the following files: