OpenASIP
2.0
|
#include <ProDePortEditPolicy.hh>
Public Member Functions | |
ProDePortEditPolicy () | |
virtual | ~ProDePortEditPolicy () |
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) |
ProDePortEditPolicy & | operator= (ProDePortEditPolicy &old) |
Assignment not allowed. More... | |
ProDePortEditPolicy (ProDePortEditPolicy &old) | |
Copying not allowed. More... | |
Additional Inherited Members | |
Protected Attributes inherited from EditPolicy | |
EditPart * | host_ |
Host EditPart of this EditPolicy. More... | |
Determines how a port 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 ProDePortEditPolicy.hh.
ProDePortEditPolicy::ProDePortEditPolicy | ( | ) |
|
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 102 of file ProDePortEditPolicy.cc.
References assert, MachineTester::canConnect(), Request::CONNECT_REQUEST, Request::DELETE_REQUEST, EditPolicy::host_, TTAMachine::Port::isConnectedTo(), TTAMachine::Component::machine(), EditPart::model(), 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 145 of file ProDePortEditPolicy.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 75 of file ProDePortEditPolicy.cc.
References Request::CONNECT_REQUEST, createConnectCmd(), Request::DELETE_REQUEST, EditPolicy::host_, ProDeTextGenerator::instance(), EditPart::model(), TTAMachine::Port::name(), ProDeTextGenerator::STATUS_PORT, Request::STATUS_REQUEST, Texts::TextGenerator::text(), and Request::type().
|
private |
Assignment not allowed.