function doExecute(\Classes\Controller\Controller\Request $request) { \Classes\Utils\Timer\Timer::start('DIVIDE_ALL_MEMBERS'); \Classes\Utils\Member\DivideMember::divideAllMembersByExistingNodes(); \Classes\Utils\Timer\Timer::stop('DIVIDE_ALL_MEMBERS'); $request->addFeedback(\Classes\Utils\Timer\Timer::show('DIVIDE_ALL_MEMBERS')); include \Classes\Controller\Util\Utils::createViewName('divideAllMemberByExistingNodes'); }
try { // UPLOAD STEEL MEMBERS Classes\Utils\Timer\Timer::start('STEEL_MEMBER_UPLOAD'); $uploadFactory = new \Classes\Factory\Import\Instance\InstanceUploaderFromExcel(); $steelMemberArray = $uploadFactory->upload('./Source/Excel/Small_Model/Members.xlsx', new \Classes\Instance\Member\SteelMember()); foreach ($steelMemberArray as &$object) { Classes\Factory\Model\Addition\SteelMemberAddition::add($object); } Classes\Utils\Timer\Timer::stop('STEEL_MEMBER_UPLOAD'); // DELETE DOUBLE NODES \Classes\Utils\Timer\Timer::start('COMBINE_DOUBLE_NODES'); \Classes\Utils\Node\DoubleNodes::combineAll(array(Classes\Factory\Model\Model::getHashTable())); \Classes\Utils\Timer\Timer::stop('COMBINE_DOUBLE_NODES'); // DIVIDE MEMBERS BY NODES \Classes\Utils\Timer\Timer::start('DIVIDE_ALL_MEMBERS'); \Classes\Utils\Member\DivideMember::divideAllMembersByExistingNodes(); \Classes\Utils\Timer\Timer::stop('DIVIDE_ALL_MEMBERS'); // UPLOAD LOAD CASES Classes\Utils\Timer\Timer::start('LOAD_CASES_UPLOAD'); $loadCaseArray = $uploadFactory->upload('./Source/Excel/Small_Model/Load Cases.xlsx', new \Classes\Instance\LoadCase\LoadCase()); foreach ($loadCaseArray as $object) { Classes\Factory\Model\Addition\LoadCaseAddition::add($object); } Classes\Utils\Timer\Timer::stop('LOAD_CASES_UPLOAD'); // UPLOAD LOADS Classes\Utils\Timer\Timer::start('LOADS_UPLOAD'); $memberLoadArray = $uploadFactory->upload('./Source/Excel/Small_Model/Loads.xlsx', new \Classes\Instance\Load\Member\CommonMemberLoad()); $notFoundObjects = Classes\Factory\Model\Addition\MemberLoadAddition::add($memberLoadArray); foreach ($notFoundObjects as $object) { $name = $object->getProperty('name')->get(); echo "LOAD {$name} IS NOT FOUND<br/>";