Candidate_v1.7.0
        stable
      
      
        
          | 
            Last change
 on this file since cd79d0 was             f5ea10, checked in by Frederik Heber <frederik.heber@…>, 7 years ago           | 
        
        
          | 
             
Added Graph6Reader, extended BoostGraphCreator, added ChemicalSpaceEvaluatorAction. 
 
- added visible generateAllInducedSubgraphs to Extractors.
 - TESTS: due to new option "graph6" containing a digit we needed to modify
moltest_check.py to also scan for digits and not just letters.
 - DOCU: Added evaluate-chemical-space to userguide.
  
           | 
        
        
          
            
              - 
Property                 mode
 set to                 
100644
               
             
           | 
        
        
          | 
            File size:
            1.5 KB
           | 
        
      
      
| Rev | Line |   | 
|---|
| [f5ea10] | 1 | /*
 | 
|---|
 | 2 |  * ChemicalSpaceEvaluatorAction.def
 | 
|---|
 | 3 |  *
 | 
|---|
 | 4 |  *  Created on: Sep 26, 2017
 | 
|---|
 | 5 |  *      Author: heber
 | 
|---|
 | 6 |  */
 | 
|---|
 | 7 | 
 | 
|---|
 | 8 | // all includes and forward declarations necessary for non-integral types below
 | 
|---|
 | 9 | 
 | 
|---|
 | 10 | #include "Parameters/Validators/DummyValidator.hpp"
 | 
|---|
 | 11 | #include "Parameters/Validators/STLVectorValidator.hpp"
 | 
|---|
 | 12 | #include "Parameters/Validators/Specific/ElementValidator.hpp"
 | 
|---|
 | 13 | 
 | 
|---|
 | 14 | // i.e. there is an integer with variable name Z that can be found in
 | 
|---|
 | 15 | // ValueStorage by the token "Z" -> first column: int, Z, "Z"
 | 
|---|
 | 16 | // "undefine" if no parameters are required, use (NOPARAM_DEFAULT) for each (undefined) default value
 | 
|---|
 | 17 | #define paramtypes (std::string)(std::vector<const element*>)
 | 
|---|
 | 18 | #define paramtokens ("graph6")("elements")
 | 
|---|
 | 19 | #define paramdescriptions ("graph6 string representing a graph")("set of chemical elements for each node")
 | 
|---|
 | 20 | #define paramdefaults (NOPARAM_DEFAULT)(NOPARAM_DEFAULT)
 | 
|---|
 | 21 | #define paramreferences (graph_string)(graph_elements)
 | 
|---|
 | 22 | #define paramvalids \
 | 
|---|
 | 23 | (DummyValidator<std::string>()) \
 | 
|---|
 | 24 | (STLVectorValidator< std::vector<const element *> >(1,100, ElementValidator()))
 | 
|---|
 | 25 | 
 | 
|---|
 | 26 | #undef statetypes
 | 
|---|
 | 27 | #undef statereferences
 | 
|---|
 | 28 | 
 | 
|---|
 | 29 | // some defines for all the names, you may use ACTION, STATE and PARAMS
 | 
|---|
 | 30 | #define CATEGORY Graph
 | 
|---|
 | 31 | #define MENUNAME "graph"
 | 
|---|
 | 32 | #define MENUPOSITION 7
 | 
|---|
 | 33 | #define ACTIONNAME ChemicalSpaceEvaluator
 | 
|---|
 | 34 | #define TOKEN "evaluate-chemical-space"
 | 
|---|
 | 35 | 
 | 
|---|
 | 36 | 
 | 
|---|
 | 37 | // finally the information stored in the ActionTrait specialization
 | 
|---|
 | 38 | #define DESCRIPTION "construct all possible chemical molecules for a given graph6 string and gives their energy."
 | 
|---|
 | 39 | #undef SHORTFORM
 | 
|---|
       
      
  Note:
 See   
TracBrowser
 for help on using the repository browser.