Factory for creating global control unit EditParts corresponding to a given Machine GlobalControlUnit object.
Definition at line 45 of file GCUFactory.hh.
Returns an EditPart corresponding to a global control unit.
- Parameters
-
component | Global control unit of which to create the EditPart. |
- Returns
- NULL if the parameter is not an instance of the ControlUnit class.
Implements Factory.
Definition at line 73 of file GCUFactory.cc.
83 name.Prepend(_T(
"GCU: "));
89 vector<Factory*>::const_iterator iter;
93 if (portEditPart != NULL) {
96 if (portEditPolicy != NULL) {
106 vector<Factory*>::const_iterator iter;
110 if (portEditPart != NULL) {
113 if (portEditPolicy != NULL) {
116 gcuEditPart->
addChild(portEditPart);
121 wxString operations = _T(
"{ ");
124 operations.Append(_T(
", "));
129 operations.Append(_T(
" }"));
136 if (editPolicy != NULL) {
References EditPart::addChild(), EditPolicyFactory::createFUPortEditPolicy(), EditPolicyFactory::createGCUEditPolicy(), EditPolicyFactory::createSRPortEditPolicy(), EditPartFactory::editPolicyFactory_, EditPartFactory::factories_, EditPart::installEditPolicy(), TTAMachine::HWOperation::name(), TTAMachine::Component::name(), TTAMachine::FunctionUnit::operation(), TTAMachine::FunctionUnit::operationCount(), TTAMachine::FunctionUnit::operationPort(), TTAMachine::FunctionUnit::operationPortCount(), EditPart::setFigure(), UnitFigure::setInfo(), EditPart::setModel(), UnitFigure::setName(), EditPart::setSelectable(), TTAMachine::ControlUnit::specialRegisterPort(), TTAMachine::ControlUnit::specialRegisterPortCount(), and WxConversion::toWxString().