EMlab-generation Documentation  1.0
Documentation of the EMLab-Generation model.
Public Member Functions | List of all members
emlab.gen.repository.LoanRepository Class Reference
Inheritance diagram for emlab.gen.repository.LoanRepository:
Inheritance graph
Collaboration diagram for emlab.gen.repository.LoanRepository:
Collaboration graph

Public Member Functions

Loan createLoan (DecarbonizationAgent from, DecarbonizationAgent to, double amount, long numberOfPayments, long loanStartTime, PowerPlant plant)
 
Iterable< LoanfindLoansFromAgent (DecarbonizationAgent agent)
 
Iterable< LoanfindLoansToAgent (DecarbonizationAgent agent)
 

Detailed Description

Repository for loans

Author
ejlchappin

Definition at line 36 of file LoanRepository.java.

Member Function Documentation

Loan emlab.gen.repository.LoanRepository.createLoan ( DecarbonizationAgent  from,
DecarbonizationAgent  to,
double  amount,
long  numberOfPayments,
long  loanStartTime,
PowerPlant  plant 
)
inline

Creates a loan

Parameters
fromthe seller of the loan
tothe buyer of the loan
amountthe total amount to be payed
numberOfPaymentsthe number of payments
loanStartTimethe time the loan starts
plantthe power plant the loan is connected to
Returns

Definition at line 49 of file LoanRepository.java.

Iterable<Loan> emlab.gen.repository.LoanRepository.findLoansFromAgent ( DecarbonizationAgent  agent)
inline

Finds all loans that the agent has been lend to by others.

Parameters
agent
Returns
the loans

Definition at line 66 of file LoanRepository.java.

Iterable<Loan> emlab.gen.repository.LoanRepository.findLoansToAgent ( DecarbonizationAgent  agent)
inline

Finds all loans that the agent has lend to others

Parameters
agent
Returns
the loans

Definition at line 76 of file LoanRepository.java.


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