org.deri.iris.builtins.date
Class YearMonthDurationDivideBuiltin
java.lang.Object
org.deri.iris.builtins.AbstractBuiltin
org.deri.iris.builtins.ArithmeticBuiltin
org.deri.iris.builtins.DivideBuiltin
org.deri.iris.builtins.date.YearMonthDurationDivideBuiltin
- All Implemented Interfaces:
- Comparable<IAtom>, IAtom, IBuiltinAtom
public class YearMonthDurationDivideBuiltin
- extends DivideBuiltin
Represents the RIF built-in function func:divide-yearMonthDuration.
|
Method Summary |
protected ITerm |
computeMissingTerm(int missingTermIndex,
ITerm[] terms)
Compute the missing term when the other two are known. |
YearMonthDurationDivideBuiltin
public YearMonthDurationDivideBuiltin(ITerm... terms)
- Creates the built-in for the specified terms.
- Parameters:
terms - The terms.
- Throws:
NullPointerException - If one of the terms is null.
IllegalArgumentException - If the number of terms submitted is not
3.
computeMissingTerm
protected ITerm computeMissingTerm(int missingTermIndex,
ITerm[] terms)
throws EvaluationException
- Description copied from class:
ArithmeticBuiltin
- Compute the missing term when the other two are known.
- Overrides:
computeMissingTerm in class DivideBuiltin
terms - The collection of all terms.
- Returns:
- The computed value.
- Throws:
EvaluationException