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