SustainNode Class Reference

#include <Node.h>

Inheritance diagram for SustainNode:
Node

List of all members.

Public Member Functions

 SustainNode (int d=1)
virtual bool evaluate (NodeList &nl, int t)
virtual string getType (void)
virtual void reset (void)
SustainNodesetDuration (int d)
 sets duration to d and returns *this
SustainNodesetSource (int s)
 sets source to s and returns this

Private Attributes

int source
int duration
int start

Detailed Description

DESCRIPTION

A sustain node is a node that reflects its input for a prescribed amount of time.


Constructor & Destructor Documentation

SustainNode::SustainNode ( int  d = 1  ) 

Sustain Node receive a signal, and continue to produce an output for a period of timeT regardless of the input state.


Member Function Documentation

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

Evaluates sustain node.

Implements Node.

virtual string SustainNode::getType ( void   )  [inline, virtual]

Implements Node.

virtual void SustainNode::reset ( void   )  [inline, virtual]

Implements Node.

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

sets duration to d and returns *this

SustainNode& SustainNode::setSource ( int  s  )  [inline]

sets source to s and returns this


Member Data Documentation

int SustainNode::duration [private]
int SustainNode::source [private]
int SustainNode::start [private]

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

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