# $SnapHashLicense:
#
# SnapLogic - Open source data services
#
# Copyright (C) 2008 - 2009, SnapLogic, Inc. All rights reserved.
#
# See http://www.snaplogic.org for more information about
# the SnapLogic project.
#
# This program is free software, distributed under the terms of
# the GNU General Public License Version 2. See the LEGAL file
# at the top of the source tree.
#
# "SnapLogic" is a trademark of SnapLogic, Inc.
#
#
# $
# $Id: MathExpressions.py 10330 2009-12-24 22:13:38Z grisha $
"""
MathExpressions module evaluates various arithmetic operations.
Base class StringMath does all the actual work.
"""
from snaplogic.common import version_info
from snaplogic.components.string_math import StringMath
class MathExpressions(StringMath):
api_version = '1.0'
component_version = '1.2'
component_description = "This component evaluates various arithmetic operations."
component_label = "Math Operations"
component_doc_uri = "https://www.snaplogic.org/trac/wiki/Documentation/%s/ComponentRef/MathOperations" % \
version_info.doc_uri_version
def create_resource_template(self):
self._create_resource_template()
def validate(self, err_obj):
self._validate(err_obj)
def execute(self, input_views, output_views):
self._execute(input_views, output_views)
|