/Users/martina/NetbeansProjects/Ercolino Workolino/src/dossier/pkgfor/ercolino/VagetableOrFruit.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 dossier.pkgfor.ercolino;
  7 
  8 /**
  9  *
 10  * @author martina
 11  */
 12 public class VagetableOrFruit {
 13 
 14     //These are attributes: 
 15 //Attributes for "Spring" list
 16     private String vegetable = "not set yet";
 17     private String fruit = "not set yet";
 18     private String dateOfPlanting = "not set yet";
 19     private boolean frost = true;
 20     private String dateOfFrost = "not set yet";
 21     private int amountOfYield = -999;
 22     private boolean isIndoor = true;
 23     private String comment = "not set yet";
 24     private String locationIndoor = "not sey yet";
 25 
 26     //Attributes for "Other" list
 27     private String otherVegetable = "not set yet";
 28     private String otherFruit = "not set yet";
 29     private String otherDateOfPlanting = "not set yet";
 30     private int otherAmountOfYield = -999;
 31     private boolean otherIsIndoor = true;
 32     private String otherLocationIndoor = "not set yet";
 33 
 34     /**
 35      *
 36      * @param args the command line arguments
 37      */
 38     public VagetableOrFruit() {
 39 
 40     }
 41 
 42     //These are constructors:
 43     public VagetableOrFruit(String vegetable, String fruit, String dateOfPlanting, boolean frost, String dateOfFrost, int amountOfSeeds, boolean isIndoor, String comment, String locationIndoor) {
 44         //These constuctors are for the "Spring" List
 45         this.fruit = fruit;
 46         this.vegetable = vegetable;
 47         this.frost = frost;
 48         this.dateOfPlanting = dateOfPlanting;
 49         this.dateOfFrost = dateOfFrost;
 50         this.amountOfYield = amountOfSeeds;
 51         this.isIndoor = isIndoor;
 52         this.comment = comment;
 53         this.locationIndoor = locationIndoor;
 54 
 55     }
 56 
 57     public VagetableOrFruit(String otherVegetable, String otherFruit, String otherDateOfPlanting, int otherAmountOfSeeds, boolean otherIsIndoor, String otherLocationIndoor) {
 58         //These constuctors are for the "Other" List
 59         this.otherVegetable = otherVegetable;
 60         this.otherFruit = otherFruit;
 61         this.otherDateOfPlanting = otherDateOfPlanting;
 62         this.otherAmountOfYield = otherAmountOfSeeds;
 63         this.otherIsIndoor = otherIsIndoor;
 64         this.otherLocationIndoor = otherLocationIndoor;
 65     }
 66 
 67     //gets for the "Spring" list
 68     public String getVegetable() {
 69         return vegetable;
 70     }
 71 
 72     public String getFruit() {
 73         return fruit;
 74     }
 75 
 76     public String getDateOfPlanting() {
 77         return dateOfPlanting;
 78     }
 79 
 80     public String getDateOfFrost() {
 81         return dateOfFrost;
 82     }
 83 
 84     public boolean getFrost() {
 85         return frost;
 86     }
 87 
 88     public int getAmountOfYield() {
 89         return amountOfYield;
 90     }
 91 
 92     public boolean getIsIndoor() {
 93         return isIndoor;
 94     }
 95 
 96     public String getcomment() {
 97         return comment;
 98     }
 99 
100     public String getLocationIndoor() {
101         return locationIndoor;
102     }
103 
104     //gets for the "Other" List
105     public String getOtherVegetable() {
106         return otherVegetable;
107     }
108 
109     public String getOtherFruit() {
110         return otherFruit;
111     }
112 
113     public String getOtherDateOfPlanting() {
114         return otherDateOfPlanting;
115     }
116 
117     public int getOtherAmountOfYield() {
118         return otherAmountOfYield;
119     }
120 
121     public boolean getOtherIsIndoor() {
122         return otherIsIndoor;
123     }
124 
125     public String getotherLocationIndoor() {
126         return otherLocationIndoor;
127     }
128 
129     //sets for the "Spring" list
130     public void setVegetable(String vegetable) {
131         this.vegetable = vegetable;
132     }
133 
134     public void setFruit(String fruit) {
135         this.fruit = fruit;
136     }
137 
138     public void setDateOfPlanting(String dateOfPlanting) {
139         this.dateOfPlanting = dateOfPlanting;
140     }
141 
142     public void setFrost(boolean frost) {
143         this.frost = frost;
144     }
145 
146     public void setDateOfFrost(String dateOfFrost) {
147         this.dateOfFrost = dateOfFrost;
148     }
149 
150     public void setAmountOfYield(int amountOfYield) {
151         this.amountOfYield = amountOfYield;
152     }
153 
154     public void setIsIndoor(boolean isIndoor) {
155         this.isIndoor = isIndoor;
156     }
157 
158     public void setComment(String comment) {
159         this.comment = comment;
160     }
161 
162     public void setLocationIndoor(String locationIndoor) {
163         this.locationIndoor = locationIndoor;
164     }
165 //sets for the "Other" list
166 
167     public void setOtherVegetable(String otherVegetable) {
168         this.otherVegetable = otherVegetable;
169 
170     }
171 
172     public void setOtherFruit(String otherFruit) {
173         this.otherFruit = otherFruit;
174     }
175 
176     public void setOtherDateOfPlanting(String otherDateOfPlanting) {
177         this.otherDateOfPlanting = otherDateOfPlanting;
178     }
179 
180     public void setOtherAmountOfYield(int otherAmountOfYield) {
181         this.otherAmountOfYield = otherAmountOfYield;
182     }
183 
184     public void setOtherIsIndoor(boolean otherIsIndoor) {
185         this.otherIsIndoor = otherIsIndoor;
186     }
187 
188     public void setOtherLocationIndoor(String otherLocationIndoor) {
189         this.otherLocationIndoor = otherLocationIndoor;
190     }
191 }
192