Package ptolemy.data.ontologies.lattice
Class ProductLatticeWrapperConceptFunction
- java.lang.Object
-
- ptolemy.data.ontologies.ConceptFunction
-
- ptolemy.data.ontologies.lattice.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)
-
-
Field Summary
-
Fields inherited from class ptolemy.data.ontologies.ConceptFunction
_argumentDomainOntologies, _name, _numArgsIsFixed, _outputRangeOntology
-
-
Constructor Summary
Constructors Constructor Description ProductLatticeWrapperConceptFunction(java.lang.String name, ProductLatticeOntology inputOutputOntology, Ontology originalFunctionOntology, ConceptFunction originalFunction)
Create a new ProductLatticeWrapperConceptFunction with the given name, derived from the given original ConceptFunction.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Concept
_evaluateFunction(java.util.List<Concept> argValues)
Return the output of the concept function based on the concept inputs.-
Methods inherited from class ptolemy.data.ontologies.ConceptFunction
evaluateFunction, getArgumentDomainOntologies, getName, getNumberOfArguments, getOutputRangeOntology, isMonotonic, isNumberOfArgumentsFixed, toString
-
-
-
-
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 classConceptFunction
- 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.
-
-