public abstract class DIVIDEBYPER extends RelationalOperator
Constructor and Description |
---|
DIVIDEBYPER() |
Modifier and Type | Method and Description |
---|---|
static Relation |
computeDividebyper(Relation dividend,
Relation divisor,
Relation per)
Computes the division of 'dividend' by 'divisor' per 'per'
|
int |
getMaximumArgumentCount()
Gets the maximum argument count for this operator.
|
int |
getMinimumArgumentCount()
Gets the minimum argument count for this operator.
|
java.lang.String |
getName()
Gets the operator name
|
boolean |
isMonoRelationOperator()
Checks if the operator takes only one Relation as input
|
static DIVIDEBYPERInvocationResultDetails |
validateExpressionDetails(Heading dividendHeading,
Heading divisorHeading,
Heading perHeading) |
toString
public static Relation computeDividebyper(Relation dividend, Relation divisor, Relation per) throws ValidationException, EvaluationException
dividend
- The dividenddivisor
- the divisorper
- The per relationValidationException
- if the given relation arguments do not satisfy the compatibility rules for DIVIDEBYPEREvaluationException
- If the evaluation failed for any reasonpublic static DIVIDEBYPERInvocationResultDetails validateExpressionDetails(Heading dividendHeading, Heading divisorHeading, Heading perHeading) throws DivideByPerIncompatibleDividendPerHeadings, DivideByPerIncompatibleDivisorPerHeadings
dividendHeading
- The heading of the dividenddivisorHeading
- The heading of the divisorperHeading
- The heading of the 'per' relationDivideByPerIncompatibleDividendPerHeadings
- If any of the common attributes between dividend and per do not share a common supertypeDivideByPerIncompatibleDivisorPerHeadings
- If any of the common attributes between divisor and per do not share a common supertypepublic final int getMaximumArgumentCount()
RelationalOperator
getMaximumArgumentCount
in class RelationalOperator
public final int getMinimumArgumentCount()
RelationalOperator
getMinimumArgumentCount
in class RelationalOperator
public final java.lang.String getName()
RelationalOperator
getName
in class RelationalOperator
public final boolean isMonoRelationOperator()
RelationalOperator
isMonoRelationOperator
in class RelationalOperator