Changeset 50f418 for src


Ignore:
Timestamp:
May 17, 2012, 3:21:54 PM (13 years ago)
Author:
Frederik Heber <heber@…>
Branches:
Action_Thermostats, Add_AtomRandomPerturbation, Add_FitFragmentPartialChargesAction, Add_RotateAroundBondAction, Add_SelectAtomByNameAction, Added_ParseSaveFragmentResults, AddingActions_SaveParseParticleParameters, Adding_Graph_to_ChangeBondActions, Adding_MD_integration_tests, Adding_ParticleName_to_Atom, Adding_StructOpt_integration_tests, AtomFragments, Automaking_mpqc_open, AutomationFragmentation_failures, Candidate_v1.5.4, Candidate_v1.6.0, Candidate_v1.6.1, ChangeBugEmailaddress, ChangingTestPorts, ChemicalSpaceEvaluator, CombiningParticlePotentialParsing, Combining_Subpackages, Debian_Package_split, Debian_package_split_molecuildergui_only, Disabling_MemDebug, Docu_Python_wait, EmpiricalPotential_contain_HomologyGraph, EmpiricalPotential_contain_HomologyGraph_documentation, Enable_parallel_make_install, Enhance_userguide, Enhanced_StructuralOptimization, Enhanced_StructuralOptimization_continued, Example_ManyWaysToTranslateAtom, Exclude_Hydrogens_annealWithBondGraph, FitPartialCharges_GlobalError, Fix_BoundInBox_CenterInBox_MoleculeActions, Fix_ChargeSampling_PBC, Fix_ChronosMutex, Fix_FitPartialCharges, Fix_FitPotential_needs_atomicnumbers, Fix_ForceAnnealing, Fix_IndependentFragmentGrids, Fix_ParseParticles, Fix_ParseParticles_split_forward_backward_Actions, Fix_PopActions, Fix_QtFragmentList_sorted_selection, Fix_Restrictedkeyset_FragmentMolecule, Fix_StatusMsg, Fix_StepWorldTime_single_argument, Fix_Verbose_Codepatterns, Fix_fitting_potentials, Fixes, ForceAnnealing_goodresults, ForceAnnealing_oldresults, ForceAnnealing_tocheck, ForceAnnealing_with_BondGraph, ForceAnnealing_with_BondGraph_continued, ForceAnnealing_with_BondGraph_continued_betteresults, ForceAnnealing_with_BondGraph_contraction-expansion, FragmentAction_writes_AtomFragments, FragmentMolecule_checks_bonddegrees, GeometryObjects, Gui_Fixes, Gui_displays_atomic_force_velocity, ImplicitCharges, IndependentFragmentGrids, IndependentFragmentGrids_IndividualZeroInstances, IndependentFragmentGrids_IntegrationTest, IndependentFragmentGrids_Sole_NN_Calculation, JobMarket_RobustOnKillsSegFaults, JobMarket_StableWorkerPool, JobMarket_unresolvable_hostname_fix, MoreRobust_FragmentAutomation, ODR_violation_mpqc_open, PartialCharges_OrthogonalSummation, PdbParser_setsAtomName, PythonUI_with_named_parameters, QtGui_reactivate_TimeChanged_changes, Recreated_GuiChecks, Rewrite_FitPartialCharges, RotateToPrincipalAxisSystem_UndoRedo, SaturateAtoms_findBestMatching, SaturateAtoms_singleDegree, StoppableMakroAction, Subpackage_CodePatterns, Subpackage_JobMarket, Subpackage_LinearAlgebra, Subpackage_levmar, Subpackage_mpqc_open, Subpackage_vmg, Switchable_LogView, ThirdParty_MPQC_rebuilt_buildsystem, TrajectoryDependenant_MaxOrder, TremoloParser_IncreasedPrecision, TremoloParser_MultipleTimesteps, TremoloParser_setsAtomName, Ubuntu_1604_changes, stable
Children:
7ca772
Parents:
3a1346
git-author:
Frederik Heber <heber@…> (12/11/11 17:43:13)
git-committer:
Frederik Heber <heber@…> (05/17/12 15:21:54)
Message:

Removed all those tiny relay functions in FragmentController.

  • we now use the getter/setters in the derived Operations directly.
Location:
src/Fragmentation/Automation/Controller
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • src/Fragmentation/Automation/Controller/FragmentController.hpp

    r3a1346 r50f418  
    6868  }
    6969
    70   /// place number of jobs into this controller
    71   void addJobs(const std::vector<FragmentJob> &jobs)
    72   {
    73     recjobs.addJobs(jobs);
    74   }
    75 
    76   /// get the results for the current jobs
    77   std::vector<FragmentResult> getResults()
    78   {
    79     return sendres.getResults();
    80   }
    81 
    82   /// Getter for doneJobs
    83   size_t getDoneJobs() const
    84   {
    85     return checkres.getDoneJobs();
    86   }
    87 
    88   /// Getter for number of jobs in the queue
    89   size_t getPresentJobs() const
    90   {
    91     return recjobs.getPresentJobs();
    92   }
    93 
    94 private:
    95   /// host name of server
    96   const std::string host;
    97 
    98   // service to connect to to
    99   const std::string service;
    10070};
    10171
  • src/Fragmentation/Automation/Controller/JobAdder.cpp

    r3a1346 r50f418  
    6666      jobs.push_back(testJob);
    6767    }
    68     controller.addJobs(jobs);
     68    controller.recjobs.addJobs(jobs);
    6969    controller.recjobs(argv[1], argv[2]);
    7070    {
  • src/Fragmentation/Automation/Controller/ResultChecker.cpp

    r3a1346 r50f418  
    6464      io_service.run();
    6565    }
    66     size_t doneJobs = controller.getDoneJobs();
     66    size_t doneJobs = controller.checkres.getDoneJobs();
    6767    LOG(1, "INFO: " << doneJobs << " jobs are calculated so far.");
    6868    Exitflag = controller.getExitflag();
  • src/Fragmentation/Automation/Controller/ResultGetter.cpp

    r3a1346 r50f418  
    7272      io_service.run();
    7373    }
    74     std::vector<FragmentResult> results = controller.getResults();
     74    std::vector<FragmentResult> results = controller.sendres.getResults();
    7575    for (std::vector<FragmentResult>::const_iterator iter = results.begin();
    7676        iter != results.end(); ++iter)
Note: See TracChangeset for help on using the changeset viewer.