public class EvaluableExpressionComplexityAnalyser extends Object
EvaluableExpression
.
determineComplexity(EvaluableExpression)
must be called before
getComputationalComplexitySum()
or
getHumanComprehensibilityComplexitySum()
are called.
Constructor and Description |
---|
EvaluableExpressionComplexityAnalyser() |
Modifier and Type | Method and Description |
---|---|
void |
determineComplexity(EvaluableExpression expression)
Determines the computational and human-readability complexity of
expression
. |
double |
getComputationalComplexitySum()
Returns the computational complexity.
|
double |
getHumanComprehensibilityComplexitySum()
Returns the human-comprehensibility complexity.
|
public EvaluableExpressionComplexityAnalyser()
public void determineComplexity(EvaluableExpression expression)
expression
.expression
- The EvaluableExpression
to determine the complexity
values for.public double getComputationalComplexitySum()
determineComplexity(EvaluableExpression)
must be called before this
method or an IllegalStateException
will be thrown.
public double getHumanComprehensibilityComplexitySum()
determineComplexity(EvaluableExpression)
must be called before this
method or an IllegalStateException
will be thrown.