Changeset c4afd1


Ignore:
Timestamp:
Oct 17, 2011, 4:52:20 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:
39fa96
Parents:
498ddd
git-author:
Frederik Heber <heber@…> (09/30/11 12:29:13)
git-committer:
Frederik Heber <heber@…> (10/17/11 16:52:20)
Message:

Added Continuous- and DiscreteParameter classes.

  • new interface class Parameter which is a clonable ValueInterface.
  • Continuous- and DiscreteParameter implement the clone() function for Continuous- and DiscreteValue respectively.
  • also added unit tests on each clone function.
Location:
src/Parser/Parameters
Files:
9 added
1 edited

Legend:

Unmodified
Added
Removed
  • src/Parser/Parameters/unittests/Makefile.am

    r498ddd rc4afd1  
    55PARSERPARAMETERSTESTSSOURCES = \
    66        ../Parser/Parameters/unittests/ContinuousValueUnitTest.cpp \
    7         ../Parser/Parameters/unittests/DiscreteValueUnitTest.cpp
     7        ../Parser/Parameters/unittests/ContinuousParameterUnitTest.cpp \
     8        ../Parser/Parameters/unittests/DiscreteValueUnitTest.cpp \
     9        ../Parser/Parameters/unittests/DiscreteParameterUnitTest.cpp
    810
    911PARSERPARAMETERSTESTSHEADERS = \
    1012        ../Parser/Parameters/unittests/ContinuousValueUnitTest.hpp \
    11         ../Parser/Parameters/unittests/DiscreteValueUnitTest.hpp
     13        ../Parser/Parameters/unittests/ContinuousParameterUnitTest.hpp \
     14        ../Parser/Parameters/unittests/DiscreteValueUnitTest.hpp \
     15        ../Parser/Parameters/unittests/DiscreteParameterUnitTest.hpp
    1216
    1317PARSERPARAMETERSTESTS = \
    1418        ContinuousValueUnitTest \
    15         DiscreteValueUnitTest
     19        ContinuousParameterUnitTest \
     20        DiscreteValueUnitTest \
     21        DiscreteParameterUnitTest
    1622
    1723TESTS += $(PARSERPARAMETERSTESTS)
     
    2632        ../Parser/Parameters/unittests/ContinuousValueUnitTest.hpp \
    2733        ../Parser/Parameters/ContinuousValue.hpp \
    28         ../Parser/Parameters/ContinuousValue_impl.hpp
     34        ../Parser/Parameters/ContinuousValue_impl.hpp \
     35        ../Parser/Parameters/ValueInterface.hpp
    2936ContinuousValueUnitTest_LDADD = \
     37        $(PARSERPARAMETERSLIBS)
     38 
     39ContinuousParameterUnitTest_SOURCES = $(top_srcdir)/src/unittests/UnitTestMain.cpp \
     40        ../Parser/Parameters/unittests/ContinuousParameterUnitTest.cpp \
     41        ../Parser/Parameters/unittests/ContinuousParameterUnitTest.hpp \
     42        ../Parser/Parameters/ContinuousValue.hpp \
     43        ../Parser/Parameters/ContinuousValue_impl.hpp \
     44        ../Parser/Parameters/ContinuousParameter.hpp \
     45        ../Parser/Parameters/ContinuousParameter_impl.hpp \
     46        ../Parser/Parameters/Parameter.hpp \
     47        ../Parser/Parameters/ValueInterface.hpp
     48ContinuousParameterUnitTest_LDADD = \
    3049        $(PARSERPARAMETERSLIBS)
    3150 
     
    3453        ../Parser/Parameters/unittests/DiscreteValueUnitTest.hpp \
    3554        ../Parser/Parameters/DiscreteValue.hpp \
    36         ../Parser/Parameters/DiscreteValue_impl.hpp
     55        ../Parser/Parameters/DiscreteValue_impl.hpp \
     56        ../Parser/Parameters/ValueInterface.hpp
    3757DiscreteValueUnitTest_LDADD = \
     58        $(PARSERPARAMETERSLIBS)
     59
     60DiscreteParameterUnitTest_SOURCES = $(top_srcdir)/src/unittests/UnitTestMain.cpp \
     61        ../Parser/Parameters/unittests/DiscreteParameterUnitTest.cpp \
     62        ../Parser/Parameters/unittests/DiscreteParameterUnitTest.hpp \
     63        ../Parser/Parameters/DiscreteValue.hpp \
     64        ../Parser/Parameters/DiscreteValue_impl.hpp \
     65        ../Parser/Parameters/DiscreteParameter.hpp \
     66        ../Parser/Parameters/DiscreteParameter_impl.hpp \
     67        ../Parser/Parameters/Parameter.hpp \
     68        ../Parser/Parameters/ValueInterface.hpp
     69DiscreteParameterUnitTest_LDADD = \
    3870        $(PARSERPARAMETERSLIBS)
    3971 
Note: See TracChangeset for help on using the changeset viewer.