Class ConstPropagationAbsIntLessThan
- java.lang.Object
-
- ptolemy.data.ontologies.ConceptFunction
-
- ptolemy.data.ontologies.lattice.adapters.constPropagationAbsInt.ConstPropagationAbsIntLessThan
-
public class ConstPropagationAbsIntLessThan extends ConceptFunction
A concept function that returns the BooleanTrue or BooleanFalse Concept result of a less than comparison between two FlatScalarTokenInfiniteConcepts in the constPropagationAbsInt ontology.- 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 ConstPropagationAbsIntLessThan(Ontology ontology)
Create a new ConstPropagationAbsIntLessThan concept function.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Concept
_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
-
ConstPropagationAbsIntLessThan
public ConstPropagationAbsIntLessThan(Ontology ontology) throws IllegalActionException
Create a new ConstPropagationAbsIntLessThan concept function.- Parameters:
ontology
- The domain and range unit system ontology for this concept function.- Throws:
IllegalActionException
- Thrown if the concept function cannot be created.
-
-
Method Detail
-
_evaluateFunction
protected Concept _evaluateFunction(java.util.List<Concept> argValues) throws IllegalActionException
Return the function output from the given input arguments. The output concept is a UnitConcept that is the result of multiplication or division of the two input UnitConcepts, or the top of the ontology lattice if there is no UnitConcept in the ontology that represents the product or quotient of the two input concepts.- Specified by:
_evaluateFunction
in classConceptFunction
- Parameters:
argValues
- The 2 UnitConcept input arguments.- Returns:
- The output UnitConcept.
- Throws:
IllegalActionException
- Thrown if there is a problem creating the output RecordConcept.
-
-