/Users/johnr/Desktop/IA_14_-_Stage_P_Upload_all_2021-04-08/IBCompSciInternalAssessment Lara April 6th/src/ibcompsciinternalassessment/EarmarkedContribution.java
 1 /*
 2  * To change this license header, choose License Headers in Project Properties.
 3  * To change this template file, choose Tools | Templates
 4  * and open the template in the editor.
 5  */
 6 package ibcompsciinternalassessment;
 7 
 8 /**
 9  *
10  * @author 21258
11  */
12 public class EarmarkedContribution extends Contribution{
13     
14     private String thematicInterest = "unknown";
15     private Country geoInterest = new Country();
16     private String geoComments = "unknown";
17 
18     public EarmarkedContribution() {
19     }
20 
21     public EarmarkedContribution(String donorName, String amountEstimated, DateSelfMade dueDiligence, String dDComments, DateSelfMade budgetYear, String bYComments,
22             boolean isRetroactivityAccepted, String retroComments, Country geoInterest, String geoComments, String thematicInterest, String reportingRequirements, String visibilityRequirements, String otherComments) {
23         super(donorName, amountEstimated, dueDiligence, dDComments, budgetYear, bYComments, isRetroactivityAccepted, retroComments, reportingRequirements, visibilityRequirements, otherComments);
24         this.geoInterest = geoInterest;
25         this.thematicInterest = thematicInterest;
26         this.geoComments = geoComments;
27     }
28     
29     @Override
30     public Country getGeoInterest(){
31         return geoInterest;
32     }
33     @Override
34     public String getThematicInterest() {
35         return thematicInterest;
36     }
37     @Override
38     public String getGeoInterestName(){
39         return geoInterest.getName();
40     }
41     @Override
42     public String getGeoComments(){
43         return geoComments;
44     }
45     @Override
46     public void setGeoInterestName(String geoName){
47         this.geoInterest.setName(geoName);
48     }
49     @Override
50     public void setGeoComments(String geoComments){
51         this.geoComments = geoComments;
52     }
53     @Override
54     public void setThematicInterest(String thematicInterest) {
55         this.thematicInterest = thematicInterest;
56     }
57     @Override
58     public void setGeoInterest(Country geoInterest) {
59         this.geoInterest = geoInterest;
60     }
61     
62     
63     
64     
65     
66 }
67