note description: "Object that represents a quantity scope" legal: "See notice at end of class." status: "See notice at end of class." date: "$Date$" revision: "$Revision$" class QL_QUANTITY_SCOPE inherit QL_SCOPE create make feature{QL_SHARED_SCOPES} -- Initialization make -- Initialize. do index := quantity_scope_index ensure scope_index_set: index = quantity_scope_index end feature -- Metric support basic_scope (a_calculate_function: FUNCTION [QL_QUANTITY, DOUBLE]; a_criterion: QL_QUANTITY_CRITERION): QL_METRIC_QUANTITY_BASIC_SCOPE_INFO -- Metric basic scope information that uses `a_calculate_function' and `a_criterion' to calculate metric. -- If `a_calculate_function' or `a_criterion' is Void, default value will be used. -- Default value for `a_calculate_function' is to do counting simply, and for `a_criterion' is a tautology criterion. do create Result.make (a_calculate_function) end feature -- Access domain_generator: QL_QUANTITY_DOMAIN_GENERATOR -- Domain generator for current scope do create Result end path_domain_generator (a_item: QL_QUANTITY; a_path: READABLE_STRING_GENERAL): QL_DOMAIN_GENERATOR -- Domain generator for current scope do end empty_domain: QL_QUANTITY_DOMAIN -- An empty domain whose scope is quantity do create Result.make end delayed_domain: QL_DELAYED_QUANTITY_DOMAIN -- An empty delayed domain whose scope is same as current scope do create Result.make end feature{NONE} -- Implementation criterion_factory: QL_QUANTITY_CRITERION_FACTORY; -- Factory to produce criteria note copyright: "Copyright (c) 1984-2018, 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