Package com.datalogics.PDFL
Class NamedFunction
java.lang.Object
com.datalogics.PDFL.Function
com.datalogics.PDFL.NamedFunction
Defines a function currently in use. A Function is a process; it takes input values and manipulates them to create output values.
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionApply the function to supplied input values.voiddelete()booleanThe domain of the function.getName()The name of the function.intThe number of inputs to the function. Throws a 'not implemented' exception for named functions.intThe number of outputs from the function. Throws a 'not implemented' exception for named functions.getRange()The range of the function.voidThe domain of the function.voidThe range of the function.toString()Convert the function to a displayable string.
-
Method Details
-
delete
public void delete() -
equals
-
toString
Convert the function to a displayable string. -
getName
The name of the function. -
getDomain
The domain of the function. 2 * m elements, where m is the number of inputs to the function.Throws a 'not implemented' exception for named functions.
-
setDomain
The domain of the function. 2 * m elements, where m is the number of inputs to the function.Throws a 'not implemented' exception for named functions.
-
getRange
The range of the function. 2 * n elements, where n is the number of outputs from the function.Throws a 'not implemented' exception for named functions.
-
setRange
The range of the function. 2 * n elements, where n is the number of outputs from the function.Throws a 'not implemented' exception for named functions.
-
getNInputs
public int getNInputs()The number of inputs to the function. Throws a 'not implemented' exception for named functions.- Overrides:
getNInputsin classFunction
-
getNOutputs
public int getNOutputs()The number of outputs from the function. Throws a 'not implemented' exception for named functions.- Overrides:
getNOutputsin classFunction
-
apply
Apply the function to supplied input values.For Identity functions, this returns the same inputs. Not defined for any other kinds of named functions.
-