Class 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)
    • 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 class ConceptFunction
        Parameters:
        argValues - The Concept input arguments.
        Returns:
        The RecordConcept output concept.
        Throws:
        IllegalActionException - Thrown if there is a problem creating the output RecordConcept.