DiscreteTimeSystems::Block Class Reference

#include <block.h>

Inherited by DiscreteTimeSystems::Integrator, and DiscreteTimeSystems::SinSource.

Inheritance diagram for DiscreteTimeSystems::Block:

Inheritance graph
[legend]
List of all members.

Public Member Functions

 Block ()
virtual ~Block ()
InputPortgetInputPort (int n)
OutputPortgetOutputPort (int n)
virtual bool isStatefulBlock ()=0
virtual void updateState ()=0
virtual void updateOutput ()=0

Protected Attributes

std::vector< InputPort * > _in_ports
std::vector< OutputPort * > _out_ports

Detailed Description

Abstract class for simulating blocks

Definition at line 11 of file block.h.


Constructor & Destructor Documentation

DiscreteTimeSystems::Block::Block (  ) 

Constructor for the Block class

Definition at line 5 of file block.cpp.


Member Function Documentation

InputPort * DiscreteTimeSystems::Block::getInputPort ( int  n  ) 

Get the pointer to the n-th input port. Returns NULL if the block has less than n input ports

Definition at line 9 of file block.cpp.

OutputPort * DiscreteTimeSystems::Block::getOutputPort ( int  n  ) 

Get the pointer to the n-th ouput port. Returns NULL if the block has less than n output ports.

Definition at line 15 of file block.cpp.

virtual bool DiscreteTimeSystems::Block::isStatefulBlock (  )  [pure virtual]

Returns true if this is a stateful block

Implemented in DiscreteTimeSystems::Integrator, and DiscreteTimeSystems::SinSource.

virtual void DiscreteTimeSystems::Block::updateState (  )  [pure virtual]

Updates the block state, but does not update the output

Implemented in DiscreteTimeSystems::Integrator, and DiscreteTimeSystems::SinSource.

virtual void DiscreteTimeSystems::Block::updateOutput (  )  [pure virtual]

Only updates the output

Implemented in DiscreteTimeSystems::Integrator, and DiscreteTimeSystems::SinSource.


The documentation for this class was generated from the following files:
Generated on Tue Dec 4 16:12:27 2007 for Project by  doxygen 1.5.1