DiscreteTimeSystems::InputPort Class Reference

#include <port.h>

Collaboration diagram for DiscreteTimeSystems::InputPort:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 InputPort (int size)
void connect (OutputPort *p)
int getSize ()
std::vector< double > getData ()

Detailed Description

This class models an input port of a block

Definition at line 37 of file port.h.


Constructor & Destructor Documentation

DiscreteTimeSystems::InputPort::InputPort ( int  size  ) 

constructor of Input port

Parameters:
size number of real numbers required by this port

Definition at line 7 of file port.cpp.


Member Function Documentation

void DiscreteTimeSystems::InputPort::connect ( OutputPort p  ) 

connects this input port to the preceding outport (of the preceding block).

Definition at line 11 of file port.cpp.

int DiscreteTimeSystems::InputPort::getSize (  )  [inline]

returns the number of real numbers required by this port

Definition at line 56 of file port.h.

vector< double > DiscreteTimeSystems::InputPort::getData (  ) 

Returns the data stored in the output port to which this input port is connected.

Definition at line 20 of file port.cpp.


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