OpenASIP  2.0
Public Member Functions | Private Member Functions | List of all members
SocketBusConnFactory Class Reference

#include <SocketBusConnFactory.hh>

Inheritance diagram for SocketBusConnFactory:
Inheritance graph
Collaboration diagram for SocketBusConnFactory:
Collaboration graph

Public Member Functions

 SocketBusConnFactory ()
 
virtual ~SocketBusConnFactory ()
 
virtual EditPartcreateConnection (EditPart *source, EditPart *target) const
 
- Public Member Functions inherited from ConnectionFactory
 ConnectionFactory ()
 
virtual ~ConnectionFactory ()
 
virtual EditPartcreateEditPart (TTAMachine::MachinePart *)
 
- Public Member Functions inherited from Factory
virtual ~Factory ()
 

Private Member Functions

SocketBusConnFactoryoperator= (SocketBusConnFactory &old)
 Assignment not allowed. More...
 
 SocketBusConnFactory (SocketBusConnFactory &old)
 Copying not allowed. More...
 

Additional Inherited Members

- Protected Member Functions inherited from Factory
 Factory ()
 

Detailed Description

Factory for creating connection EditParts for socket-to-bus connections.

Definition at line 45 of file SocketBusConnFactory.hh.

Constructor & Destructor Documentation

◆ SocketBusConnFactory() [1/2]

SocketBusConnFactory::SocketBusConnFactory ( )

The Constructor.

Definition at line 46 of file SocketBusConnFactory.cc.

46  : ConnectionFactory() {
47 }

◆ ~SocketBusConnFactory()

SocketBusConnFactory::~SocketBusConnFactory ( )
virtual

The Destructor.

Definition at line 52 of file SocketBusConnFactory.cc.

52  {
53 }

◆ SocketBusConnFactory() [2/2]

SocketBusConnFactory::SocketBusConnFactory ( SocketBusConnFactory old)
private

Copying not allowed.

Member Function Documentation

◆ createConnection()

EditPart * SocketBusConnFactory::createConnection ( EditPart socket,
EditPart segment 
) const
virtual

Specialized factory function that returns an EditPart corresponding to a socket-bus connection.

Note
Source and target does not imply a direction.
Parameters
socketSource (socket) of the connection.
segmentTarget (segment) of the connection.
Returns
An EditPart corresponding to a socket-bus connection.

Reimplemented from ConnectionFactory.

Definition at line 65 of file SocketBusConnFactory.cc.

67  {
68 
71  conn->setFigure(connFig);
72  conn->setSource(socket);
73  conn->setTarget(segment);
74  return conn;
75 }

References EditPart::setFigure(), ConnectionEditPart::setSource(), and ConnectionEditPart::setTarget().

Referenced by SegmentFactory::createEditPart().

Here is the call graph for this function:

◆ operator=()

SocketBusConnFactory& SocketBusConnFactory::operator= ( SocketBusConnFactory old)
private

Assignment not allowed.


The documentation for this class was generated from the following files:
ConnectionEditPart::setSource
void setSource(EditPart *source)
Definition: ConnectionEditPart.cc:56
ConnectionFactory::ConnectionFactory
ConnectionFactory()
Definition: ConnectionFactory.cc:46
EditPart::setFigure
void setFigure(Figure *figure)
ConnectionEditPart
Definition: ConnectionEditPart.hh:42
ConnectionEditPart::setTarget
void setTarget(EditPart *target)
Definition: ConnectionEditPart.cc:71
SocketBusConnFigure
Definition: SocketBusConnFigure.hh:46