Package ptolemy.data.ontologies
Class RecordFromIndividualConcepts
- java.lang.Object
-
- ptolemy.data.ontologies.ConceptFunction
-
- ptolemy.data.ontologies.RecordFromIndividualConcepts
-
public class RecordFromIndividualConcepts extends ConceptFunction
A concept function that returns a record concept with specified field names from a list of concept inputs.- Since:
- Ptolemy II 10.0
- Version:
- $Id$
- Author:
- Charles Shelton
- Pt.AcceptedRating:
- Red (cshelton)
- Pt.ProposedRating:
- Green (cshelton)
-
-
Field Summary
-
Fields inherited from class ptolemy.data.ontologies.ConceptFunction
_argumentDomainOntologies, _name, _numArgsIsFixed, _outputRangeOntology
-
-
Constructor Summary
Constructors Constructor Description RecordFromIndividualConcepts(java.lang.String name, java.util.SortedSet<java.lang.String> fieldLabels, Ontology ontology)
Create a new RecordFromIndividualConcepts concept function with the specified set of field labels.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected RecordConcept
_evaluateFunction(java.util.List<Concept> argValues)
Return the function output from the given input arguments.-
Methods inherited from class ptolemy.data.ontologies.ConceptFunction
evaluateFunction, getArgumentDomainOntologies, getName, getNumberOfArguments, getOutputRangeOntology, isMonotonic, isNumberOfArgumentsFixed, toString
-
-
-
-
Constructor Detail
-
RecordFromIndividualConcepts
public RecordFromIndividualConcepts(java.lang.String name, java.util.SortedSet<java.lang.String> fieldLabels, Ontology ontology) throws IllegalActionException
Create a new RecordFromIndividualConcepts concept function with the specified set of field labels.- Parameters:
name
- The name of the concept function.fieldLabels
- The set of field labels for the output record concept.ontology
- The domain and range ontology for this concept function.- Throws:
IllegalActionException
- Thrown if the concept function cannot be created.
-
-
Method Detail
-
_evaluateFunction
protected RecordConcept _evaluateFunction(java.util.List<Concept> argValues) throws IllegalActionException
Return the function output from the given input arguments. The output concept is a RecordConcept with the given Concept input arguments as values for the fields. The concept input arguments are assumed to be in the same order that the fields are specified in the fieldLabels set argument in the constructor.- Specified by:
_evaluateFunction
in classConceptFunction
- Parameters:
argValues
- The Concept input arguments.- Returns:
- The RecordConcept output concept.
- Throws:
IllegalActionException
- Thrown if there is a problem creating the output RecordConcept.
-
-