ContentDirectoryService::ContentDirectoryService() : _type(SERVICE_TYPE) , _id(SERVICE_ID) , _updateId(0) { _description = buildDescription(); }
void MenuCreateTower::onActivate( Ref * sender, bool availebledButton ) { if( _disabled )return; hideConfirmButton(); auto node = dynamic_cast<MenuItem*>(sender); if( !node ) return; _hidenButton.reset( node ); //_hidenButton->setVisible( false ); std::string name = _hidenButton->getName(); if( availebledButton ) { _confirmButton->setPosition( node->getPosition() ); _confirmButton->setVisible( true ); } else { name.erase( name.begin() + name.size() - 3, name.end() ); _confirmButtonUn->setName( name ); _confirmButtonUn->setPosition( node->getPosition() ); _confirmButtonUn->setVisible( true ); } _selectedTower = name; runEvent( "onclick" ); runEvent( "onclickby_" + _selectedTower ); buildDescription(); //float rate = mlTowersInfo::shared( ).rate( name ); float radius = mlTowersInfo::shared().radiusInPixels( name, 1 ); showRadius( _centerPoint, radius /** rate*/ ); }
BasementJob::BasementJob(const UUID &t_uuid, const Tools &t_tools, const JobParams &t_params, const Files &t_files, const JobState &t_restoreData) : ToolBasedJob(t_uuid, JobType::Basement, t_tools, "basement", t_params, t_files, false, t_restoreData) { getFiles(t_files); m_description = buildDescription("idf"); }
PreviewIESJob::PreviewIESJob(const UUID &t_uuid, const Tools &t_tools, const JobParams &t_params, const Files &t_files, const JobState &t_restoreData) : ToolBasedJob(t_uuid, JobType::PreviewIES, t_tools, toolNames(), t_params, t_files, false, t_restoreData) { getFiles(t_files); m_description = buildDescription("ies"); }
ExpandObjectsJob::ExpandObjectsJob(const UUID &t_uuid, const Tools &t_tools, const JobParams &t_params, const Files &t_files, const JobState &t_restoreData) : ToolBasedJob(t_uuid, JobType::ExpandObjects, t_tools, "expandobjects", t_params, t_files, false, t_restoreData) { getFiles(t_files); m_description = buildDescription("idf"); }
XMLPreprocessorJob::XMLPreprocessorJob(const UUID &t_uuid, const Tools &t_tools, const JobParams &t_params, const Files &t_files, const JobState &t_restoreData) : ToolBasedJob(t_uuid, JobType::XMLPreprocessor, t_tools, "xmlpreprocessor", t_params, t_files, true, t_restoreData) { getFiles(t_files); m_description = buildDescription("xml"); }
EnergyPlusPreProcessJob::EnergyPlusPreProcessJob(const UUID &t_uuid, const Tools &tools, const JobParams ¶ms, const Files &files, const JobState &t_restoreData) : Job_Impl(t_uuid, JobType::EnergyPlusPreProcess, tools, params, files, t_restoreData) { try { m_idf = files.getLastByExtension("idf"); resetFiles(m_files, m_idf); } catch (const std::runtime_error &) { } m_description = buildDescription("idf"); }
ModelToRadJob::ModelToRadJob(const UUID &t_uuid, const Tools &tools, const JobParams ¶ms, const Files &files, const JobState &t_restoreData) : Job_Impl(t_uuid, JobType::ModelToRad, tools, params, files, t_restoreData) { try { m_model = files.getLastByExtension("osm"); resetFiles(m_files, m_model); } catch (const std::runtime_error &) { } m_description = buildDescription("osm"); }
ModelToRadPreProcessJob::ModelToRadPreProcessJob(const UUID &t_uuid, const Tools &tools, const JobParams ¶ms, const Files &files, const JobState &t_restoreData) : Job_Impl(t_uuid, JobType::ModelToRadPreProcess, tools, params, files, t_restoreData) { try { m_osm = files.getLastByExtension("osm"); resetFiles(m_files, m_osm); } catch (const std::exception &) { } m_description = buildDescription("osm"); }
EnergyPlusJob::EnergyPlusJob(const UUID &t_uuid, const Tools &t_tools, const JobParams &t_params, const Files &t_files, const JobState &t_restoreData) : ToolBasedJob(t_uuid, JobType::EnergyPlus, t_tools, "energyplus", t_params, t_files, true, t_restoreData) { getFiles(t_files, t_params); m_description = buildDescription("idf"); }
OpenStudioPostProcessJob::OpenStudioPostProcessJob(const UUID &t_uuid, const Tools &tools, const JobParams ¶ms, const Files &files, const JobState &t_restoreData) : Job_Impl(t_uuid, JobType::OpenStudioPostProcess, tools, params, files, t_restoreData) { try { m_sql = files.getLastByFilename("eplusout.sql"); resetFiles(m_files, m_sql); } catch (const std::runtime_error &) { } // what should this be? m_description = buildDescription("sql"); }
ParallelEnergyPlusSplitJob::ParallelEnergyPlusSplitJob(const UUID &t_uuid, const Tools &tools, const JobParams ¶ms, const Files &files, const JobState &t_restoreData) : Job_Impl(t_uuid, JobType::ParallelEnergyPlusSplit, tools, params, files, t_restoreData), m_numSplits(boost::lexical_cast<int>(params.get("numsplits").children.at(0).value)), m_offset(boost::lexical_cast<int>(params.get("offset").children.at(0).value)) { try { m_input = files.getLastByExtension("idf"); resetFiles(m_files, m_input); } catch (const std::runtime_error &) { } m_description = buildDescription("idf"); }
DakotaJob::DakotaJob(const UUID &t_uuid, const Tools &t_tools, const JobParams &t_params, const Files &t_files, const JobState &t_restoreData) : ToolBasedJob(t_uuid, JobType::Dakota, t_tools, "dakota", t_params, t_files, true, t_restoreData) { getFiles(t_files, t_params); m_description = buildDescription("in"); }
ConnectionManagerService::ConnectionManagerService() : _type(SERVICE_TYPE) , _id(SERVICE_ID) { _description = buildDescription(); }