rainbowie
Class Requirement

java.lang.Object
  extended byrainbowie.Requirement

public class Requirement
extends java.lang.Object

Defines a requirement in the program

Author:
Mikael Jönsson & Per Klingnäs

Field Summary
private  double priority1
           
private  double priority2
           
private  java.lang.String relNbr
           
private  java.lang.String req
           
private  java.lang.String reqNbr
           
 
Constructor Summary
Requirement()
          Constructs an "empty" requirment
 
Method Summary
 Requirement getCopy()
          Returns a new requirement with the same attributes and values as this.
 double getPriority1()
          Returns the priority according to the first criteria.
 double getPriority2()
          Returns the priority according to the second criteria.
 java.lang.String getRelNbr()
          Returns the release number of the requirement
 java.lang.String getReq()
          Returns the description of the requirement
 java.lang.String getReqNbr()
          Returns the requirment number of the requirement
 void setPriority1(double priority1)
          Sets the priority according to the first criteria.
 void setPriority2(double priority2)
          Sets the priority according to the second criteria.
 void setRelNbr(java.lang.String relNbr)
          Sets the release number of the requirement
 void setReq(java.lang.String req)
          Sets the description of the requirement
 void setReqNbr(java.lang.String reqNbr)
          Sets the requirment number of the requirement
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

reqNbr

private java.lang.String reqNbr

req

private java.lang.String req

relNbr

private java.lang.String relNbr

priority1

private double priority1

priority2

private double priority2
Constructor Detail

Requirement

public Requirement()
Constructs an "empty" requirment

Method Detail

getReqNbr

public java.lang.String getReqNbr()
Returns the requirment number of the requirement

Returns:
the requirement number.

setReqNbr

public void setReqNbr(java.lang.String reqNbr)
Sets the requirment number of the requirement

Parameters:
reqNbr - the requirement number to set.

getReq

public java.lang.String getReq()
Returns the description of the requirement

Returns:
the requirement description

setReq

public void setReq(java.lang.String req)
Sets the description of the requirement

Parameters:
req - the requirement description to set.

getRelNbr

public java.lang.String getRelNbr()
Returns the release number of the requirement

Returns:
the release number.

setRelNbr

public void setRelNbr(java.lang.String relNbr)
Sets the release number of the requirement

Parameters:
relNbr - the release number to set.

getPriority1

public double getPriority1()
Returns the priority according to the first criteria.

Returns:
the first priority.

setPriority1

public void setPriority1(double priority1)
Sets the priority according to the first criteria.

Parameters:
priority1 - the first priority to set.

getPriority2

public double getPriority2()
Returns the priority according to the second criteria.

Returns:
the second priority.

setPriority2

public void setPriority2(double priority2)
Sets the priority according to the second criteria.

Parameters:
priority2 - the second priority to set.

getCopy

public Requirement getCopy()
Returns a new requirement with the same attributes and values as this.

Returns:
a copy of this requirement