InputNode Class Reference

#include <Node.h>

Inheritance diagram for InputNode:
Node

List of all members.

Public Member Functions

 InputNode ()
virtual bool evaluate (NodeList &nl, int t)
virtual string getType (void)
virtual void reset (void)
InputNodesetStart (int s)
 pushes s onto start and returns *this
InputNodesetDosage (int d)
 pushes d onto doage and returns *this
InputNodesetDuration (int d)
 pushes d onto duration and returns *this
InputNodesetInjectionValue ()
 sets the injectionValue to the opposite of previous and returns *this
void setLevels (int, int)
void checkDosages (void)
void reverseParams (void)
void printParams (void)
void setNoise (bool)
void setManual (bool)
void setInputBitString (const string &, NodeList &)
void setRange (int i, int j)
int getDos (void)

Private Member Functions

void amountInit (int)

Private Attributes

int high
int low
vector< int > start
vector< int > dosage
vector< int > duration
vector< bool > amount
string inputBitStr
int NC_amount
bool injectionValue
bool noisy
bool manual
int on
bool set
vector< int > bstart
vector< int > bdosage
vector< int > bduration

Detailed Description

DESCRIPTION

Input nodes are the receptors for detecting the presences of chemicals These chemicals may not be solidly available during a period of timeT, but come as a percentage during a period of timeT.


Constructor & Destructor Documentation

InputNode::InputNode (  ) 

Input node constructor


Member Function Documentation

void InputNode::amountInit ( int  win  )  [private]

sets the first n bool on ammount to false

void InputNode::checkDosages ( void   ) 

Checks the consistency of starting times for input dosages.

bool InputNode::evaluate ( NodeList nl,
int  t 
) [virtual]

Sets previous to current and determines the next value for current

If dosages are used then it checks the start dosage and duration vectors to mantain the proper levels

Implements Node.

int InputNode::getDos ( void   )  [inline]
virtual string InputNode::getType ( void   )  [inline, virtual]

Implements Node.

void InputNode::printParams ( void   ) 

Prints the Parameters

void InputNode::reset ( void   )  [virtual]

Implements Node.

void InputNode::reverseParams ( void   ) 

Reverses the contents of the arrays start, duration, and dosage so that they go in the correct order and not in reverse

InputNode& InputNode::setDosage ( int  d  )  [inline]

pushes d onto doage and returns *this

InputNode& InputNode::setDuration ( int  d  )  [inline]

pushes d onto duration and returns *this

InputNode& InputNode::setInjectionValue (  )  [inline]

sets the injectionValue to the opposite of previous and returns *this

void InputNode::setInputBitString ( const string &  s,
NodeList nl 
)

Sets inputBitStr equal to s

void InputNode::setLevels ( int  level,
int  time 
)

Sets this input node's level to level for length equal to time

void InputNode::setManual ( bool  val  ) 

Takes in val and sets manual equal to it

void InputNode::setNoise ( bool  val  ) 

Takes in val and sets noisy equal to it noisy is the boolean that determines if the Input node has noise interference

void InputNode::setRange ( int  i,
int  j 
) [inline]
InputNode& InputNode::setStart ( int  s  )  [inline]

pushes s onto start and returns *this


Member Data Documentation

vector<bool> InputNode::amount [private]
vector<int> InputNode::bdosage [private]
vector<int> InputNode::bduration [private]
vector<int> InputNode::bstart [private]
vector<int> InputNode::dosage [private]
vector<int> InputNode::duration [private]
int InputNode::high [private]
bool InputNode::injectionValue [private]
string InputNode::inputBitStr [private]
int InputNode::low [private]
bool InputNode::manual [private]
int InputNode::NC_amount [private]
bool InputNode::noisy [private]
int InputNode::on [private]
bool InputNode::set [private]
vector<int> InputNode::start [private]

The documentation for this class was generated from the following files:

Generated on Fri May 7 00:40:42 2010 for ChemChains by  doxygen 1.6.1