Class ProductLatticeWrapperConceptFunction


  • public class ProductLatticeWrapperConceptFunction
    extends ConceptFunction
    A wrapper concept function to create a new derived concept function for a product lattice ontology from one of its component ontologies.
    Since:
    Ptolemy II 10.0
    Version:
    $Id$
    Author:
    Charles Shelton
    Pt.AcceptedRating:
    Red (cshelton)
    Pt.ProposedRating:
    Red (cshelton)
    • Constructor Detail

      • ProductLatticeWrapperConceptFunction

        public ProductLatticeWrapperConceptFunction​(java.lang.String name,
                                                    ProductLatticeOntology inputOutputOntology,
                                                    Ontology originalFunctionOntology,
                                                    ConceptFunction originalFunction)
                                             throws IllegalActionException
        Create a new ProductLatticeWrapperConceptFunction with the given name, derived from the given original ConceptFunction.
        Parameters:
        name - The name of the wrapper concept function.
        inputOutputOntology - The ProductLatticeOntology for the wrapper function.
        originalFunctionOntology - The original ontology for the original concept function.
        originalFunction - The original concept function.
        Throws:
        IllegalActionException - Thrown if the wrapper concept function cannot be created.
    • Method Detail

      • _evaluateFunction

        protected Concept _evaluateFunction​(java.util.List<Concept> argValues)
                                     throws IllegalActionException
        Return the output of the concept function based on the concept inputs. Since the inputs and outputs to this function must be in the ProductLatticeOntology, the inputs must be shifted to the original concept function's domain, call the original concept function to get the output value, then shift that output concept back to the product lattice ontology domain.
        Specified by:
        _evaluateFunction in class ConceptFunction
        Parameters:
        argValues - The list of concept inputs to the function.
        Returns:
        The concept output result of the function.
        Throws:
        IllegalActionException - If there is an error evaluating the function.