BrightSide Workbench Full Report + Source Code
org.turro.dossier.dossier.DossierData Class Reference
Collaboration diagram for org.turro.dossier.dossier.DossierData:

Public Member Functions

 DossierData (DossierValues prevision, DossierValues reality)
 
boolean hasData ()
 
boolean isExpenses ()
 
boolean isHours ()
 
boolean isPrice ()
 
DossierValues getPrevision ()
 
DossierValues getReality ()
 
double getExpensesDifference ()
 
double getHoursDifference ()
 
double getPriceDifference ()
 
String getExpensesString ()
 
String getHoursString ()
 
String getPriceString ()
 

Detailed Description

Author
Lluis TurrĂ³ Cutiller lluis.nosp@m.@tur.nosp@m.ro.or.nosp@m.g

Definition at line 26 of file DossierData.java.

Constructor & Destructor Documentation

◆ DossierData()

org.turro.dossier.dossier.DossierData.DossierData ( DossierValues  prevision,
DossierValues  reality 
)

Definition at line 30 of file DossierData.java.

30  {
31  this.prevision = prevision;
32  this.reality = reality;
33  }

Member Function Documentation

◆ getExpensesDifference()

double org.turro.dossier.dossier.DossierData.getExpensesDifference ( )

Definition at line 59 of file DossierData.java.

59  {
60  return prevision.expenses - reality.expenses;
61  }
Here is the caller graph for this function:

◆ getExpensesString()

String org.turro.dossier.dossier.DossierData.getExpensesString ( )

Definition at line 71 of file DossierData.java.

71  {
72  return DecimalFormats.format(prevision.expenses) +
73  " - " +
74  DecimalFormats.format(reality.expenses) +
75  " = " +
76  DecimalFormats.format(getExpensesDifference());
77  }
Here is the call graph for this function:

◆ getHoursDifference()

double org.turro.dossier.dossier.DossierData.getHoursDifference ( )

Definition at line 63 of file DossierData.java.

63  {
64  return prevision.hours - reality.hours;
65  }
Here is the caller graph for this function:

◆ getHoursString()

String org.turro.dossier.dossier.DossierData.getHoursString ( )

Definition at line 79 of file DossierData.java.

79  {
80  return DecimalFormats.format(prevision.hours) +
81  " - " +
82  DecimalFormats.format(reality.hours) +
83  " = " +
84  DecimalFormats.format(getHoursDifference());
85  }
Here is the call graph for this function:

◆ getPrevision()

DossierValues org.turro.dossier.dossier.DossierData.getPrevision ( )

Definition at line 51 of file DossierData.java.

51  {
52  return prevision;
53  }

◆ getPriceDifference()

double org.turro.dossier.dossier.DossierData.getPriceDifference ( )

Definition at line 67 of file DossierData.java.

67  {
68  return prevision.price - reality.price;
69  }
Here is the caller graph for this function:

◆ getPriceString()

String org.turro.dossier.dossier.DossierData.getPriceString ( )

Definition at line 87 of file DossierData.java.

87  {
88  return DecimalFormats.format(prevision.price) +
89  " - " +
90  DecimalFormats.format(reality.price) +
91  " = " +
92  DecimalFormats.format(getPriceDifference());
93  }
Here is the call graph for this function:

◆ getReality()

DossierValues org.turro.dossier.dossier.DossierData.getReality ( )

Definition at line 55 of file DossierData.java.

55  {
56  return reality;
57  }

◆ hasData()

boolean org.turro.dossier.dossier.DossierData.hasData ( )

Definition at line 35 of file DossierData.java.

Here is the call graph for this function:

◆ isExpenses()

boolean org.turro.dossier.dossier.DossierData.isExpenses ( )

Definition at line 39 of file DossierData.java.

39  {
40  return prevision.expenses != 0 || reality.expenses != 0;
41  }
Here is the caller graph for this function:

◆ isHours()

boolean org.turro.dossier.dossier.DossierData.isHours ( )

Definition at line 43 of file DossierData.java.

43  {
44  return prevision.hours != 0 || reality.hours != 0;
45  }
Here is the caller graph for this function:

◆ isPrice()

boolean org.turro.dossier.dossier.DossierData.isPrice ( )

Definition at line 47 of file DossierData.java.

47  {
48  return prevision.price != 0 || reality.price != 0;
49  }
Here is the caller graph for this function:

The documentation for this class was generated from the following file: