|
OpenASIP 2.2
|
#include <ProDeSocketEditPolicy.hh>


Public Member Functions | |
| ProDeSocketEditPolicy () | |
| virtual | ~ProDeSocketEditPolicy () |
| virtual ComponentCommand * | getCommand (Request *request) |
| virtual bool | canHandle (Request *request) const |
Public Member Functions inherited from EditPolicy | |
| EditPolicy () | |
| virtual | ~EditPolicy () |
| EditPart * | host () const |
| void | setHost (EditPart *host) |
Private Member Functions | |
| ComponentCommand * | createConnectCmd (Request *request) |
| ProDeSocketEditPolicy & | operator= (ProDeSocketEditPolicy &old) |
| Assignment not allowed. | |
| ProDeSocketEditPolicy (ProDeSocketEditPolicy &old) | |
| Copying not allowed. | |
Additional Inherited Members | |
Protected Attributes inherited from EditPolicy | |
| EditPart * | host_ |
| Host EditPart of this EditPolicy. | |
Determines how a socket EditPart acts when a Request is performed on it.
Converts a given Request to a Command if the EditPolicy supports. the Request.
Definition at line 49 of file ProDeSocketEditPolicy.hh.
| ProDeSocketEditPolicy::ProDeSocketEditPolicy | ( | ) |
The Constructor.
Definition at line 61 of file ProDeSocketEditPolicy.cc.
|
virtual |
|
private |
Copying not allowed.
|
virtual |
Tells whether this EditPolicy is able to handle a certain type of Request.
| request | Request to be asked if it can be handled. |
Implements EditPolicy.
Definition at line 115 of file ProDeSocketEditPolicy.cc.
References assert, MachineTester::canConnect(), Request::CONNECT_REQUEST, Request::COPY_REQUEST, Request::DELETE_REQUEST, EditPolicy::host_, TTAMachine::Socket::isConnectedTo(), TTAMachine::Port::isConnectedTo(), TTAMachine::Component::machine(), EditPart::model(), Request::MODIFY_REQUEST, TTAMachine::Segment::parentBus(), TTAMachine::Port::parentUnit(), ConnectRequest::part(), Request::STATUS_REQUEST, and Request::type().
Referenced by createConnectCmd().

|
private |
Creates a command which connects the selected component to the requested component.
| request | ConnectionRequest with the target component for the connection. |
Definition at line 173 of file ProDeSocketEditPolicy.cc.
References assert, canHandle(), EditPolicy::host_, EditPart::model(), and ConnectRequest::part().
Referenced by getCommand().

|
virtual |
Returns the Command corresponding to the type of the Request.
| request | Request to be handled. |
Implements EditPolicy.
Definition at line 77 of file ProDeSocketEditPolicy.cc.
References Request::CONNECT_REQUEST, Request::COPY_REQUEST, createConnectCmd(), Request::DELETE_REQUEST, EditPolicy::host_, ProDeTextGenerator::instance(), EditPart::model(), Request::MODIFY_REQUEST, TTAMachine::Component::name(), Request::STATUS_REQUEST, ProDeTextGenerator::STATUS_SOCKET, Texts::TextGenerator::text(), and Request::type().

|
private |
Assignment not allowed.