watch
Class Revision

java.lang.Object
  extended by watch.Commentable
      extended by watch.Revision

 class Revision
extends Commentable

Revision model class.


Constructor Summary
Revision(Task W_Task, Date W_Date, double D_Remaining, double D_Risks, double D_Opportunities, double D_Earned)
          Constructor.
 
Method Summary
 Date getDate()
          Date of revision accessor.
 double getEarned()
          Earned value accessor.
 double getOpportunities()
          Opportunities value accessor.
 double getRemaining()
          Remaining value accessor.
 double getRisks()
          Risks value accessor.
 Task getTask()
          Revised task accessor.
 boolean hasEarned()
          Earned value validity predicate.
 boolean hasOpportunities()
          Opportunities value validity predicate.
 boolean hasRemaining()
          Remaining value validity predicate.
 boolean hasRisks()
          Risks value validity predicate.
 boolean merge(Revision W_Contrib)
          Revision merge operation.
 java.lang.String toString()
          String representation of the revision.
 
Methods inherited from class watch.Commentable
getComments
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Revision

public Revision(Task W_Task,
                Date W_Date,
                double D_Remaining,
                double D_Risks,
                double D_Opportunities,
                double D_Earned)
Constructor.

Parameters:
W_Task - Task being revised.
W_Date - Date of the revision.
D_Remaining - Revision of the remaining value. Applicable only if positive or nul.
D_Risks - Revision of the risks value. Applicable only if positive or nul.
D_Opportunities - Revision of the opportunities value. Applicable only if positive or nul.
D_Earned - Earned value. Applicable only if positive or nul.
Method Detail

toString

public java.lang.String toString()
String representation of the revision.

Overrides:
toString in class java.lang.Object
Returns:
The string representation of the revision.

merge

public boolean merge(Revision W_Contrib)
Revision merge operation.

Parameters:
W_Contrib - Revision contribution.

getTask

public Task getTask()
Revised task accessor.

Returns:
The revised task.

getDate

public Date getDate()
Date of revision accessor.

Returns:
The date of the revision.

hasRemaining

public boolean hasRemaining()
Remaining value validity predicate.

Returns:
true if the remain value should be taken in account, false if not.

getRemaining

public double getRemaining()
Remaining value accessor.

Returns:
The remaining value revision.

hasRisks

public boolean hasRisks()
Risks value validity predicate.

Returns:
true if the risks value should be taken in account, false if not.

getRisks

public double getRisks()
Risks value accessor.

Returns:
The risks value revision.

hasOpportunities

public boolean hasOpportunities()
Opportunities value validity predicate.

Returns:
true if the opportunities value should be taken in account, false if not.

getOpportunities

public double getOpportunities()
Opportunities value accessor.

Returns:
The opportunities value revision.

hasEarned

public boolean hasEarned()
Earned value validity predicate.

Returns:
true if the earned value should be taken in account, false if not.

getEarned

public double getEarned()
Earned value accessor.

Returns:
The earned value revision.