############################################################################## # Copyright (c) 2016 ZTE Corp and others. # # All rights reserved. This program and the accompanying materials # are made available under the terms of the Apache License, Version 2.0 # which accompanies this distribution, and is available at # http://www.apache.org/licenses/LICENSE-2.0 ############################################################################## class FormulaName(object): """formula names""" ARITHMETIC_MEAN = 'arithmetic mean' WEIGHTED_ARITHMETIC_MEAN = 'weighted arithmetic mean' GEOMETRIC_MEAN = 'geometric mean' WEIGHTED_GEOMETRIC_MEAN = 'weighted geometric mean' class PkgName(object): """QTIP package names""" COLLECTOR = 'collector' DRIVER = 'driver' REPORTER = 'reporter' RUNNER = 'runner' SPEC = 'spec' class BaseProp(object): """property names""" # list NAME = 'name' CONTENT = 'content' ABSPATH = 'abspath' # content DESCRIPTION = 'description' WORKLOADS = 'workloads' TYPE = 'type' class SpecProp(BaseProp): # spec SECTIONS = 'sections' WEIGHT = 'weight' FORMULA = 'formula' METRICS = 'metrics' WORKLOADS = 'workloads' class ReporterBaseProp(BaseProp): TRANSFORMER = 'transformer'