BrightSide Workbench Full Report + Source Code
org.turro.financials.operating.ParticipantSet Class Reference
Inheritance diagram for org.turro.financials.operating.ParticipantSet:
Collaboration diagram for org.turro.financials.operating.ParticipantSet:

Public Member Functions

ValueItem getItem (String major)
 
double getAmount ()
 
TreeSet< ValueItemgetProviders ()
 
TreeSet< ValueItemgetCustomers ()
 
double getProvidersAmount ()
 
double getCustomersAmount ()
 

Detailed Description

Member Function Documentation

◆ getAmount()

double org.turro.financials.operating.ParticipantSet.getAmount ( )

Definition at line 40 of file bsfinancials-core/src/main/java/org/turro/financials/operating/ParticipantSet.java.

40  {
41  double amount = 0;
42  for(ValueItem vi : this) {
43  amount += vi.getValue();
44  }
45  return amount;
46  }
Here is the call graph for this function:

◆ getCustomers()

TreeSet<ValueItem> org.turro.financials.operating.ParticipantSet.getCustomers ( )

Definition at line 58 of file bsfinancials-core/src/main/java/org/turro/financials/operating/ParticipantSet.java.

58  {
59  TreeSet<ValueItem> sub = new TreeSet<>();
60  for(ValueItem vi : this) {
61  if(vi.getMajor().startsWith("43") || vi.getMajor().startsWith("44")) {
62  sub.add(vi);
63  }
64  }
65  return sub;
66  }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getCustomersAmount()

double org.turro.financials.operating.ParticipantSet.getCustomersAmount ( )

Definition at line 76 of file bsfinancials-core/src/main/java/org/turro/financials/operating/ParticipantSet.java.

76  {
77  double amount = 0;
78  for(ValueItem vi : getCustomers()) {
79  amount += vi.getValue();
80  }
81  return amount;
82  }
Here is the call graph for this function:

◆ getItem()

ValueItem org.turro.financials.operating.ParticipantSet.getItem ( String  major)

Definition at line 29 of file bsfinancials-core/src/main/java/org/turro/financials/operating/ParticipantSet.java.

29  {
30  ValueItem vi = ceiling(new ValueItem(major));
31  if(vi != null && vi.getMajor().equals(major)) {
32  return vi;
33  } else {
34  vi = new ValueItem(major);
35  add(vi);
36  return vi;
37  }
38  }
Here is the call graph for this function:

◆ getProviders()

TreeSet<ValueItem> org.turro.financials.operating.ParticipantSet.getProviders ( )

Definition at line 48 of file bsfinancials-core/src/main/java/org/turro/financials/operating/ParticipantSet.java.

48  {
49  TreeSet<ValueItem> sub = new TreeSet<>();
50  for(ValueItem vi : this) {
51  if(vi.getMajor().startsWith("40") || vi.getMajor().startsWith("41")) {
52  sub.add(vi);
53  }
54  }
55  return sub;
56  }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getProvidersAmount()

double org.turro.financials.operating.ParticipantSet.getProvidersAmount ( )

Definition at line 68 of file bsfinancials-core/src/main/java/org/turro/financials/operating/ParticipantSet.java.

68  {
69  double amount = 0;
70  for(ValueItem vi : getProviders()) {
71  amount += vi.getValue();
72  }
73  return amount;
74  }
Here is the call graph for this function:

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