org.aspsimon.termcomp.infrastructure.utility
Class ComplexityResult

java.lang.Object
  extended by org.aspsimon.termcomp.infrastructure.utility.ComplexityResult
All Implemented Interfaces:
java.lang.Comparable<ComplexityResult>

public class ComplexityResult
extends java.lang.Object
implements java.lang.Comparable<ComplexityResult>


Constructor Summary
ComplexityResult(java.lang.String tool)
           
ComplexityResult(java.lang.String tool, java.lang.String result)
           
 
Method Summary
 int compareTo(ComplexityResult o)
           
 boolean equalsOnUpperBound(ComplexityResult o)
           
 int getExponent(java.lang.String bigO)
           
 int getLowerBound()
          The lower bound of this complexity result is of the following: -1:POLY 0:? 1:O(1) k:O(n^k)
 int getScore()
           
 java.lang.String getTool()
           
 int getUpperBound()
           
 boolean isMaybe()
           
 boolean isNo()
           
 void parseResult(java.lang.String result)
           
 void setLowerBound(int lowerBound)
           
 void setMaybe(boolean maybe)
           
 void setNo(boolean no)
           
 void setScore(int score)
           
 void setTool(java.lang.String tool)
           
 void setUpperBound(int upperBound)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ComplexityResult

public ComplexityResult(java.lang.String tool)

ComplexityResult

public ComplexityResult(java.lang.String tool,
                        java.lang.String result)
Method Detail

isNo

public boolean isNo()
Returns:
the no

isMaybe

public boolean isMaybe()
Returns:
the maybe

getUpperBound

public int getUpperBound()
Returns:
the upperBound

getLowerBound

public int getLowerBound()
The lower bound of this complexity result is of the following:
-1:
POLY
0:
?
1:
O(1)
k:
O(n^k)

Returns:
the lower bound of this complexity result;

getTool

public java.lang.String getTool()
Returns:
the tool

getScore

public int getScore()
Returns:
the score

setNo

public void setNo(boolean no)
Parameters:
no - the no to set

setMaybe

public void setMaybe(boolean maybe)
Parameters:
maybe - the maybe to set

setUpperBound

public void setUpperBound(int upperBound)
Parameters:
upperBound - the upperBound to set

setLowerBound

public void setLowerBound(int lowerBound)
Parameters:
lowerBound - the lower bound to set:
See Also:
getLowerBound()

setTool

public void setTool(java.lang.String tool)
Parameters:
tool - the tool to set

setScore

public void setScore(int score)
Parameters:
score - the score to set

parseResult

public void parseResult(java.lang.String result)

compareTo

public int compareTo(ComplexityResult o)
Specified by:
compareTo in interface java.lang.Comparable<ComplexityResult>

equalsOnUpperBound

public boolean equalsOnUpperBound(ComplexityResult o)

getExponent

public int getExponent(java.lang.String bigO)