Class ProductLatticeDerivedConceptFunction


  • public class ProductLatticeDerivedConceptFunction
    extends ConceptFunction
    A concept function that returns a derived concept from a given input concept for a product lattice ontology to be used for constraints generated from an ontology that is a component of the product lattice ontology. Whatever the input product lattice concept is, the output is a product lattice concept whose tuple preserves the value of the concept in the given component ontology, but sets the other concepts in the tuple to the bottom of their respective ontology lattices. This is used for constraints that are derived from the lattice ontology adapters of ontologies that comprise the product lattice ontology, so that their constraints are orthogonal to the other ontologies in the product lattice ontology.
    Since:
    Ptolemy II 10.0
    Version:
    $Id$
    Author:
    Charles Shelton
    Pt.AcceptedRating:
    Red (cshelton)
    Pt.ProposedRating:
    Red (cshelton)
    • Constructor Detail

      • ProductLatticeDerivedConceptFunction

        public ProductLatticeDerivedConceptFunction​(java.lang.String name,
                                                    ProductLatticeOntology inputOutputOntology,
                                                    Ontology originalConceptOntology)
                                             throws IllegalActionException
        Create a new ProductLatticeDerivedConceptFunction with the given name, derived from the given original component ontology.
        Parameters:
        name - The name of the derived concept function.
        inputOutputOntology - The ProductLatticeOntology for the derived function.
        originalConceptOntology - The original ontology for the original concept input.
        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. Whatever the input product lattice concept is, the output is a product lattice concept whose tuple preserves the value of the concept in the given component ontology, but sets the other concepts in the tuple to the bottom of their respective ontology lattices.
        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.