#include <Node.h>
Public Member Functions | |
| Node () | |
| virtual | ~Node () |
| virtual destructor for node | |
| Node & | setValue (bool v) |
| sets current and previous to v and returns *this | |
| bool | getValue () |
| returns previous | |
| void | setMut (string m) |
| void | setName (string m) |
| void | setMutRate (int i) |
| virtual bool | evaluate (NodeList &nl, int t)=0 |
| virtual string | getType (void)=0 |
| virtual void | reset (void)=0 |
Protected Attributes | |
| bool | init |
| string | name |
| int | mutRate |
| int | bMutRate |
| string | mutation |
| bool | current |
| bool | previous |
| int | timeT |
The Node is an abstraction of the different types of other nodes
| Node::Node | ( | ) |
Node constructor that initializes variables
| virtual Node::~Node | ( | ) | [inline, virtual] |
virtual destructor for node
| virtual bool Node::evaluate | ( | NodeList & | nl, | |
| int | t | |||
| ) | [pure virtual] |
Implemented in InputNode, OutputNode, BooleanNode, DelayNode, and SustainNode.
| virtual string Node::getType | ( | void | ) | [pure virtual] |
Implemented in InputNode, OutputNode, BooleanNode, DelayNode, and SustainNode.
| bool Node::getValue | ( | ) | [inline] |
returns previous
| virtual void Node::reset | ( | void | ) | [pure virtual] |
Implemented in InputNode, OutputNode, BooleanNode, DelayNode, and SustainNode.
| void Node::setMut | ( | string | m | ) |
sets the mutation to string m
| void Node::setMutRate | ( | int | i | ) | [inline] |
| void Node::setName | ( | string | m | ) | [inline] |
| Node& Node::setValue | ( | bool | v | ) | [inline] |
sets current and previous to v and returns *this
int Node::bMutRate [protected] |
bool Node::current [protected] |
bool Node::init [protected] |
string Node::mutation [protected] |
int Node::mutRate [protected] |
string Node::name [protected] |
bool Node::previous [protected] |
int Node::timeT [protected] |
1.6.1