org.aspsimon.termcomp.infrastructure.utility
Class ComplexityResult
java.lang.Object
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>
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ComplexityResult
public ComplexityResult(java.lang.String tool)
ComplexityResult
public ComplexityResult(java.lang.String tool,
java.lang.String result)
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)