public abstract class ConceptFunction
extends java.lang.Object
Red (cshelton) |
Green (cshelton) |
Modifier and Type | Field and Description |
---|---|
protected java.util.List<Ontology> |
_argumentDomainOntologies
The list of ontologies that specify the domain for
each input argument to the concept function.
|
protected java.lang.String |
_name
The name of the concept function.
|
protected boolean |
_numArgsIsFixed
Flag that indicates whether or not the number of arguments for this
concept function is fixed or variable.
|
protected Ontology |
_outputRangeOntology
The ontology that specifies the range of concepts that can be output
by this concept function.
|
Constructor and Description |
---|
ConceptFunction(java.lang.String name,
boolean numArgsIsFixed,
java.util.List<Ontology> argumentDomainOntologies,
Ontology outputRangeOntology)
Create the concept function with the number of arguments it takes
and the ontologies from which input and output concepts can be taken.
|
ConceptFunction(java.lang.String name,
int numArgs,
Ontology inputOutputOntology)
Create the concept function where all arguments and
output values are drawn from the same ontology.
|
Modifier and Type | Method and Description |
---|---|
protected abstract Concept |
_evaluateFunction(java.util.List<Concept> argValues)
Return the output of the concept function based on the concept
inputs.
|
Concept |
evaluateFunction(java.util.List<Concept> argValues)
Return the output of the concept function based on the concept inputs.
|
java.util.List<Ontology> |
getArgumentDomainOntologies()
Return the array of ontologies that represent the domains for
the input arguments to the concept function.
|
java.lang.String |
getName()
Return the name of the concept function.
|
int |
getNumberOfArguments()
Return the number of input arguments for this concept function,
or -1 if the concept function can take a variable number of
arguments.
|
Ontology |
getOutputRangeOntology()
Return the ontology that represents the range of concepts that can be
output by this concept function.
|
boolean |
isMonotonic()
Determine whether the concept function is monotonic over the
ontology for the output range and all the inputs that are also
in that same ontology.
|
boolean |
isNumberOfArgumentsFixed()
Return true if this concept function has a fixed number of
arguments, false otherwise.
|
java.lang.String |
toString()
Return a string representing the name of this concept function.
|
protected java.util.List<Ontology> _argumentDomainOntologies
protected java.lang.String _name
protected boolean _numArgsIsFixed
protected Ontology _outputRangeOntology
public ConceptFunction(java.lang.String name, boolean numArgsIsFixed, java.util.List<Ontology> argumentDomainOntologies, Ontology outputRangeOntology) throws IllegalActionException
name
- The name of the concept function.numArgsIsFixed
- True if the number of arguments for this function
is fixed and cannot change, false otherwise.argumentDomainOntologies
- The list of ontologies that
represent the concept domain for each input concept argument.outputRangeOntology
- The ontology that represents the
range of output concepts for this concept function.IllegalActionException
- If the output ontology is null.public ConceptFunction(java.lang.String name, int numArgs, Ontology inputOutputOntology) throws IllegalActionException
name
- The name of the concept function.numArgs
- The number of arguments for this function, if
this number is fixed, and -1 otherwise.inputOutputOntology
- The ontology that represents the
domain and range for this concept function.IllegalActionException
- If the output ontology is null,
or numArgs is invalid.public Concept evaluateFunction(java.util.List<Concept> argValues) throws IllegalActionException
argValues
- The list of concept inputs to the function.IllegalActionException
- If there is an error with
the input argument array or evaluating the function.public java.util.List<Ontology> getArgumentDomainOntologies()
public java.lang.String getName()
public int getNumberOfArguments()
public Ontology getOutputRangeOntology()
public boolean isMonotonic()
public boolean isNumberOfArgumentsFixed()
public java.lang.String toString()
toString
in class java.lang.Object
protected abstract Concept _evaluateFunction(java.util.List<Concept> argValues) throws IllegalActionException
argValues
- The list of concept inputs to the function.IllegalActionException
- If there is an error evaluating the function.