BrightSide Workbench Full Report + Source Code
org.turro.financials.product.Movement Class Reference

Public Member Functions

 Movement (Contract contract, Date date, double coefficient, double quantity, double price, String concept)
 
 Movement (String concept, double quantity, double price)
 
double getCoefficient ()
 
String getConcept ()
 
Contract getContract ()
 
Date getDate ()
 
double getPrice ()
 
double getQuantity ()
 
double getAmount ()
 
void setCoefficient (double coefficient)
 
void setConcept (String concept)
 
void setContract (Contract contract)
 
void setDate (Date date)
 
void setPrice (double price)
 
void setQuantity (double quantity)
 

Detailed Description

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

Definition at line 28 of file Movement.java.

Constructor & Destructor Documentation

◆ Movement() [1/2]

org.turro.financials.product.Movement.Movement ( Contract  contract,
Date  date,
double  coefficient,
double  quantity,
double  price,
String  concept 
)

Definition at line 35 of file Movement.java.

35  {
36  this.contract = contract;
37  this.date = date;
38  this.coefficient = coefficient;
39  this.quantity = quantity;
40  this.price = price;
41  this.concept = concept;
42  }

◆ Movement() [2/2]

org.turro.financials.product.Movement.Movement ( String  concept,
double  quantity,
double  price 
)

Definition at line 44 of file Movement.java.

44  {
45  this.quantity = quantity;
46  this.price = price;
47  this.concept = concept;
48  }

Member Function Documentation

◆ getAmount()

double org.turro.financials.product.Movement.getAmount ( )

Definition at line 78 of file Movement.java.

78  {
79  if(contract == null) {
80  return getPrice() * -1;
81  } else {
82  return getQuantity() * getPrice() * -1;
83  }
84  }
Here is the call graph for this function:

◆ getCoefficient()

double org.turro.financials.product.Movement.getCoefficient ( )

Definition at line 50 of file Movement.java.

50  {
51  return coefficient;
52  }

◆ getConcept()

String org.turro.financials.product.Movement.getConcept ( )

Definition at line 54 of file Movement.java.

54  {
55  return concept;
56  }

◆ getContract()

Contract org.turro.financials.product.Movement.getContract ( )

Definition at line 58 of file Movement.java.

58  {
59  return contract;
60  }

◆ getDate()

Date org.turro.financials.product.Movement.getDate ( )

Definition at line 62 of file Movement.java.

62  {
63  return date;
64  }

◆ getPrice()

double org.turro.financials.product.Movement.getPrice ( )

Definition at line 66 of file Movement.java.

66  {
67  return price;
68  }
Here is the caller graph for this function:

◆ getQuantity()

double org.turro.financials.product.Movement.getQuantity ( )

Definition at line 70 of file Movement.java.

70  {
71  if(contract == null) {
72  return quantity;
73  } else {
74  return quantity * coefficient;
75  }
76  }
Here is the caller graph for this function:

◆ setCoefficient()

void org.turro.financials.product.Movement.setCoefficient ( double  coefficient)

Definition at line 86 of file Movement.java.

86  {
87  this.coefficient = coefficient;
88  }

◆ setConcept()

void org.turro.financials.product.Movement.setConcept ( String  concept)

Definition at line 90 of file Movement.java.

90  {
91  this.concept = concept;
92  }

◆ setContract()

void org.turro.financials.product.Movement.setContract ( Contract  contract)

Definition at line 94 of file Movement.java.

94  {
95  this.contract = contract;
96  }

◆ setDate()

void org.turro.financials.product.Movement.setDate ( Date  date)

Definition at line 98 of file Movement.java.

98  {
99  this.date = date;
100  }

◆ setPrice()

void org.turro.financials.product.Movement.setPrice ( double  price)

Definition at line 102 of file Movement.java.

102  {
103  this.price = price;
104  }

◆ setQuantity()

void org.turro.financials.product.Movement.setQuantity ( double  quantity)

Definition at line 106 of file Movement.java.

106  {
107  this.quantity = quantity;
108  }

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