torc::generic::LogicalResponse Class Reference

This class is used to model logicInput/logicOutput construct. This class holds information of logical response to be expected from a ports during simulation. More...

#include <LogicalResponse.hpp>

Inheritance diagram for torc::generic::LogicalResponse:

Inheritance graph
[legend]
Collaboration diagram for torc::generic::LogicalResponse:

Collaboration graph
[legend]

List of all members.

Public Types

enum  ResponseType { eResponseTypeInput = 0, eResponseTypeOutput }
typedef VisitorType
< LogicalResponse
Visitor

Public Member Functions

const ResponseType getResponseType () const throw ()
void setResponseType (const ResponseType &inSource) throw ()
virtual void accept (BaseVisitor &inoutVisitor) throw (Error)
const PortSharedPtr getConnectedPort () const throw ()
void setConnectedPort (const PortSharedPtr &inPort) throw ()
const PortListSharedPtr getConnectedPortList () const throw ()
void setConnectedPortList (const PortListSharedPtr &inPortList) throw ()
const PortListAliasSharedPtr getConnectedPortListAlias () const throw ()
void setConnectedPortListAlias (const PortListAliasSharedPtr &inPortListAlias) throw ()
const LogicElementSharedPtr getLogicWaveForm () const throw ()
void setLogicWaveForm (const LogicElementSharedPtr &inSource) throw ()

Private Member Functions

 LogicalResponse (const LogicalResponse &source) throw ()
LogicalResponseoperator= (const LogicalResponse &source) throw ()

Private Attributes

ResponseType mResponseType
PortSharedPtr mConnectedPort
PortListSharedPtr mConnectedPortList
PortListAliasSharedPtr mConnectedPortListAlias
LogicElementSharedPtr mLogicWaveForm

Friends

class FactoryType< LogicalResponse >

Classes

class  Factory


Detailed Description

This class is used to model logicInput/logicOutput construct. This class holds information of logical response to be expected from a ports during simulation.

Definition at line 39 of file LogicalResponse.hpp.


Member Typedef Documentation

Convenience class to visit LogicalResponse.

Definition at line 75 of file LogicalResponse.hpp.


Member Enumeration Documentation

Logical response types (logicInput/logicOutput)

Definition at line 50 of file LogicalResponse.hpp.


Member Function Documentation

const LogicalResponse::ResponseType torc::generic::LogicalResponse::getResponseType (  )  const throw () [inline]

Get the Logical response type

Returns:
Logical response type

Definition at line 195 of file LogicalResponse.hpp.

void torc::generic::LogicalResponse::setResponseType ( const ResponseType inSource  )  throw ()

Set the Logical response type

Parameters:
[in] inSource Logical response type

Definition at line 78 of file LogicalResponse.cpp.

void torc::generic::LogicalResponse::accept ( BaseVisitor inoutVisitor  )  throw (Error) [virtual]

Recive a inoutVisitor to this class. The visit method of the inoutVisitor is called and a reference to this object is passed as a parameter. It has to be noted however, that a dynamic_cast is performed inside this method. If the cast fails, an appropriate exception is thrown by this method. This sitation can arise when the passed Visitor object does not inherit from the appropriate inoutVisitor specialization. See Visitor documentation for more details.

Parameters:
[in,out] inoutVisitor A reference to the inoutVisitor object
Exceptions:
Error Visitor type inappropriate for visiting this object or any other error thrown by the Visitor::throw() method.

Implements torc::generic::Visitable.

Definition at line 59 of file LogicalResponse.cpp.

const PortSharedPtr torc::generic::LogicalResponse::getConnectedPort (  )  const throw () [inline]

Get the connected port shared pointer.

Returns:
Connected port shared pointer.

Definition at line 205 of file LogicalResponse.hpp.

void torc::generic::LogicalResponse::setConnectedPort ( const PortSharedPtr &  inPort  )  throw ()

Set the connected port shared pointer.

Parameters:
[in] inPort Connected port shared pointer.

Definition at line 88 of file LogicalResponse.cpp.

const PortListSharedPtr torc::generic::LogicalResponse::getConnectedPortList (  )  const throw () [inline]

Get the connected port list shared pointer.

Returns:
Connected port list shared pointer.

Definition at line 215 of file LogicalResponse.hpp.

void torc::generic::LogicalResponse::setConnectedPortList ( const PortListSharedPtr &  inPortList  )  throw ()

Set the connected port list shared pointer.

Parameters:
[in] inPortList Connected port list shared pointer.

Definition at line 98 of file LogicalResponse.cpp.

const PortListAliasSharedPtr torc::generic::LogicalResponse::getConnectedPortListAlias (  )  const throw () [inline]

Get the connected port list alias shared pointer.

Returns:
Connected port list alias shared pointer.

Definition at line 225 of file LogicalResponse.hpp.

void torc::generic::LogicalResponse::setConnectedPortListAlias ( const PortListAliasSharedPtr &  inPortListAlias  )  throw ()

Set the connected port list alias shared pointer.

Parameters:
[in] inPortListAlias Connected port list alias shared pointer.

Definition at line 108 of file LogicalResponse.cpp.

const LogicElementSharedPtr torc::generic::LogicalResponse::getLogicWaveForm (  )  const throw () [inline]

Get the logic wave form for this response.

Returns:
LogicElementSharedPtr Pointer to logic element object.

Definition at line 235 of file LogicalResponse.hpp.

void torc::generic::LogicalResponse::setLogicWaveForm ( const LogicElementSharedPtr &  inSource  )  throw ()

Set the logic wave form for this response.

Parameters:
[in] inSource Pointer to logic element object.

Definition at line 119 of file LogicalResponse.cpp.


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

Generated on Thu Oct 13 16:50:08 2011 for TORC by  doxygen 1.5.6