note description: "Command line options for semantic search facilities" author: "" date: "$Date$" revision: "$Revision$" class EWB_SEMANTIC_SEARCH inherit EWB_CMD create make_with_arguments feature {NONE} -- Initialization make_with_arguments (a_arguments: LINKED_LIST [STRING]) -- Initialize `auto_test_arguments' with `a_arguments'. require a_arguments_attached: a_arguments /= Void do create {LINKED_LIST [STRING]} semantic_search_arguments.make a_arguments.do_all (agent semantic_search_arguments.extend) ensure arguments_set: semantic_search_arguments /= Void and then semantic_search_arguments.count = a_arguments.count end feature -- Access semantic_search_arguments: LINKED_LIST [STRING]; -- Arguments to semantic search feature -- Properties name: STRING do Result := "Sementic search" end help_message: STRING_GENERAL do Result := "Semantic search" end abbreviation: CHARACTER do Result := 's' end execute -- Action performed when invoked from the -- command line. local l_parser: SEM_COMMAND_LINE_PARSER l_config: SEM_CONFIG l_add_doc_cmd: SEM_ADD_DOCUMENT_TO_MYSQL_CMD l_update_ranking_cmd: SEM_UPDATE_RANKING_CMD l_generate_arff_cmd: SEM_GENERATE_ARFF_CMD l_generate_inv_cmd: SEM_GENERATE_DAIKON_INVARIANT_CMD l_generate_decision_tree_cmd: SEM_GENERATE_DECISION_TREE_CMD l_check_bp_cmd: SEM_CHECK_UNVISITED_BREAKPOINTS_CMD l_analysize_implication_cmd: SEM_ANALYZE_IMPLICATION_CMD do create l_parser.make_with_arguments (semantic_search_arguments, system) l_parser.parse l_config := l_parser.config if l_config.should_add_sql_document then create l_add_doc_cmd.make (l_config) l_add_doc_cmd.execute elseif l_config.should_update_ranking then create l_update_ranking_cmd.make (l_config) l_update_ranking_cmd.execute elseif l_config.should_generate_arff then create l_generate_arff_cmd.make (l_config) l_generate_arff_cmd.execute elseif l_config.should_generate_invariant then create l_generate_inv_cmd.make (l_config) l_generate_inv_cmd.execute elseif l_config.should_generate_decision_tree then create l_generate_decision_tree_cmd.make (l_config) l_generate_decision_tree_cmd.execute elseif l_config.should_check_unvisited_breakpoint then create l_check_bp_cmd.make (l_config) l_check_bp_cmd.execute elseif l_config.should_analyze_implications then create l_analysize_implication_cmd.make (l_config) l_analysize_implication_cmd.execute end end note copyright: "Copyright (c) 1984-2011, Eiffel Software" license: "GPL version 2 (see http://www.eiffel.com/licensing/gpl.txt)" licensing_options: "http://www.eiffel.com/licensing" copying: "[ This file is part of Eiffel Software's Eiffel Development Environment. Eiffel Software's Eiffel Development Environment is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, version 2 of the License (available at the URL listed under "license" above). Eiffel Software's Eiffel Development Environment is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with Eiffel Software's Eiffel Development Environment; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA ]" source: "[ Eiffel Software 5949 Hollister Ave., Goleta, CA 93117 USA Telephone 805-685-1006, Fax 805-685-6869 Website http://www.eiffel.com Customer support http://support.eiffel.com ]" end