|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectparseq.RequirementList
Defines a list of requirements.
Field Summary | |
static int |
DOLLAR
|
private int |
lastSortColumn
|
static int |
PAIR_WISE
|
static int |
PLANNING_GAME
|
private java.lang.String |
prioCriteria1
|
private java.lang.String |
prioCriteria2
|
private int |
prioMethod
|
private boolean |
sortInvert
|
private java.util.LinkedList |
theList
|
Constructor Summary | |
RequirementList()
Constructs an empty requirement list |
Method Summary | |
void |
addRequirement(Requirement req)
Adds a requirement to the last posistion in the list |
private boolean |
aSmallerThanB(double a,
double b)
Checks if a shall be considered smaller than b depending on the sort order |
private boolean |
aSmallerThanB(int a,
int b)
Checks if a shall be considered smaller than b depending on the sort order |
private boolean |
aSmallerThanB(java.lang.String a,
java.lang.String b)
Checks if a shall be considered smaller than b depending on the sort order |
RequirementList |
getClampedCopy()
Returns a copy of the list where requirements that miss requirement numbers are removed |
int |
getIndexOf(Requirement req)
Returns the position whithin the list where the specified requirement can be found |
int |
getLength()
Returns the number of requirements in the list |
java.lang.String |
getPrioCriteria1()
Returns the first prioritization criteria |
java.lang.String |
getPrioCriteria2()
Returns the second prioritization criteria |
int |
getPrioMethod()
Returns the prioritization method used |
Requirement |
getReq(int i)
Returns the requirement at the specified position in the list |
Requirement |
getReq(java.lang.String reqNbr)
Returns the requirement, if any, with the given requirement number |
java.lang.String[][] |
getReqList(boolean complete)
Returns the list in a matrix format where each row defines a requirement as: {requirement number, requirement description, release number, (first priority, second priority) } |
RequirementList |
getSortedList(int k)
Sorts and returns the list |
void |
printList()
|
void |
removeReq(Requirement req)
Removes the specified requirement from the list |
void |
setPrioCriteria1(java.lang.String prioCriteria1)
Sets the first prioritization criteria |
void |
setPrioCriteria2(java.lang.String prioCriteria2)
Sets the second prioritization criteria |
void |
setPrioMethod(int prioMethod)
Sets the prioritization method |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int PLANNING_GAME
public static final int PAIR_WISE
public static final int DOLLAR
private java.util.LinkedList theList
private int prioMethod
private boolean sortInvert
private int lastSortColumn
private java.lang.String prioCriteria1
private java.lang.String prioCriteria2
Constructor Detail |
public RequirementList()
Method Detail |
public void addRequirement(Requirement req)
req
- the requirement to addpublic Requirement getReq(java.lang.String reqNbr)
reqNbr
- the requirement number to find in the list
public Requirement getReq(int i)
i
- the position in the list with i=0 as the first position
public int getIndexOf(Requirement req)
req
- a reference to the requirement to find
public java.lang.String[][] getReqList(boolean complete)
complete
- true if priorities shall be included
public void removeReq(Requirement req)
req
- a reference to the requirement to removepublic RequirementList getClampedCopy()
public int getLength()
public java.lang.String getPrioCriteria1()
public void setPrioCriteria1(java.lang.String prioCriteria1)
prioCriteria1
- the first prioritization criteria to set.public java.lang.String getPrioCriteria2()
public void setPrioCriteria2(java.lang.String prioCriteria2)
prioCriteria2
- the second prioritization criteria to set.public int getPrioMethod()
public void setPrioMethod(int prioMethod)
prioMethod
- prioritization method to set.public RequirementList getSortedList(int k)
k
- decides the sort criteria:private boolean aSmallerThanB(int a, int b)
a
- first intb
- second int
private boolean aSmallerThanB(double a, double b)
a
- first doubleb
- secod double
private boolean aSmallerThanB(java.lang.String a, java.lang.String b)
a
- first Stringb
- second String
public void printList()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |