2514 simulatePtr->setComments(inSimulate.getComments());
2516 std::list < std::string > userData;
2517 inSimulate.getUserData(userData);
2518 simulatePtr->setUserData(userData);
2520 simulatePtr->setName(inSimulate.getName());
2521 simulatePtr->setOriginalName(inSimulate.getOriginalName());
2523 std::vector<PortListAliasSharedPtr> outPortListAliases;
2524 inSimulate.getPortListAliases(outPortListAliases);
2525 for(std::vector<PortListAliasSharedPtr>::iterator it = outPortListAliases.begin();
2526 it != outPortListAliases.end(); ++it) {
2528 mFactory->create(newPortListAlias);
2529 newPortListAlias->setName((*it)->getName());
2531 newPortListAlias->setPortList(clonedPortList);
2532 simulatePtr->addPortListAlias(newPortListAlias);
2535 std::vector<WaveValueSharedPtr> outWaveValues;
2536 inSimulate.getWaveValues(outWaveValues);
2537 for(std::vector<WaveValueSharedPtr>::iterator it = outWaveValues.begin();
2538 it != outWaveValues.end(); ++it) {
2541 newWaveValue->setName((*it)->getName());
2542 newWaveValue->setDeltaTimeDuration((*it)->getDeltaTimeDuration());
2543 if(NULL != (*it)->getLogicWaveform()) {
2546 newWaveValue->setLogicWaveform(clonedLogicElem);
2548 simulatePtr->addWaveValue(newWaveValue);
2551 std::vector<ApplySharedPtr> outAllApply;
2552 inSimulate.getAllApply(outAllApply);
2553 for(std::vector<ApplySharedPtr>::iterator it = outAllApply.begin();
2554 it != outAllApply.end(); ++it) {
2557 newApply->setComments((*it)->getComments());
2559 std::list < std::string > userData;
2560 (*it)->getUserData(userData);
2561 newApply->setUserData(userData);
2563 newApply->setNoOfCycle((*it)->getNoOfCycle());
2564 newApply->setCycleDuration((*it)->getCycleDuration());
2566 std::list<LogicalResponseSharedPtr> outLogicResponces;
2567 (*it)->getLogicResponses(outLogicResponces);
2568 for(std::list<LogicalResponseSharedPtr>::iterator it = outLogicResponces.begin();
2569 it != outLogicResponces.end(); ++it) {
2571 newApply->addLogicResponse(clonedLogicalResponse);
2573 simulatePtr->addApply(newApply);
2578 e.setCurrentLocation(__FUNCTION__, __FILE__, __LINE__);
boost::shared_ptr< WaveValue > WaveValueSharedPtr
boost::shared_ptr< LogicElement > LogicElementSharedPtr
ObjectFactorySharedPtr mFactory
boost::shared_ptr< Simulate > SimulateSharedPtr
boost::shared_ptr< _Tp > clone(const boost::shared_ptr< _Tp > &inPointer, const ObjectFactorySharedPtr &inFactory)
boost::shared_ptr< LogicalResponse > LogicalResponseSharedPtr
boost::shared_ptr< PortList > PortListSharedPtr
boost::shared_ptr< Apply > ApplySharedPtr
boost::shared_ptr< PortListAlias > PortListAliasSharedPtr