|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectprioritizer.Pairwise
Defines the Pair Wise comparisons technique used.
Nested Class Summary | |
(package private) class |
Pairwise.ComparisonList
Represents the list containing the comparisons. |
(package private) class |
Pairwise.Graph
Defines a graph used for estimating missig comparisons when using incomplete pairwise prioritization |
Field Summary | |
private int |
allowedPaths
|
private Pairwise.ComparisonList |
comparisonList
|
private double |
CR
|
private int |
currentRow
|
private Pairwise.Graph |
graph
|
private int |
maxPathsBeforeRandom
|
private double[] |
riValues
|
private RequirementList |
rList
|
private double[] |
rowSums
|
private double[][] |
valueMatrix
|
Constructor Summary | |
Pairwise(RequirementList rList)
Constructor for the Pair Wise comparisons technique. |
Method Summary | |
int |
backOneStep()
Backs the list one step and returns the value found there. |
int |
getAllowedPaths()
Gets the number of paths to use when using a random sample of paths |
double |
getCR()
Gets the current consistency ratio |
java.lang.Object[] |
getCurrentComparisonRow()
Returns the current row in the matrix as an array. |
int |
getCurrentRowIndex()
Gets the index of the current row. |
int |
getCurrentValue()
Gets the value of the current comparison. |
int |
getMaxPathsBeforeRandom()
Gets the threshold where no longer all possible paths shall be used, instead the random sample is used. |
private double[] |
matrixMultiply(double[][] matrix,
double[] vector)
Specialized method for matrix-vector multiplication. |
void |
prioDone(java.lang.String currentCriteria)
Sets the values for the current criteria and calculates the priorities using to AHP. |
void |
reset()
Resets/restarts the Pair Wise method by clearing all (needed) values. |
void |
setAllowedPaths(int paths)
Sets the number of paths to use when using a random sample of paths. |
private void |
setMatrix()
Creates an identity matrix. |
void |
setMaxPathsBeforeRandom(int paths)
Sets the threshold where no longer all possible paths shall be used, instead the random sample is used. |
private void |
setupComparisonList()
Sets up the comparisons and adds them to a list in a random order. |
boolean |
setValue(double val)
Sets the value for the current prioritization and checks if there are more comparisons to be done. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private Pairwise.ComparisonList comparisonList
private RequirementList rList
private Pairwise.Graph graph
private int currentRow
private double[] riValues
private double[] rowSums
private double[][] valueMatrix
private double CR
private int allowedPaths
private int maxPathsBeforeRandom
Constructor Detail |
public Pairwise(RequirementList rList)
rList
- the RequirementList containing the Requirements to be
prioritizedMethod Detail |
public void setAllowedPaths(int paths)
paths
- the number of paths to allowpublic int getAllowedPaths()
public void setMaxPathsBeforeRandom(int paths)
paths
- the number of paths to allowpublic int getMaxPathsBeforeRandom()
private double[] matrixMultiply(double[][] matrix, double[] vector)
matrix
- the matrixvector
- the vector
private void setMatrix()
private void setupComparisonList()
public int backOneStep()
public java.lang.Object[] getCurrentComparisonRow()
public int getCurrentRowIndex()
public int getCurrentValue()
public double getCR()
public void prioDone(java.lang.String currentCriteria)
currentCriteria
- the current criteriapublic void reset()
public boolean setValue(double val)
val
- the value to set
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |