/Users/18812/Desktop/Computer Science IA/Chun - IA/src/recipeOrganizer/RecipeClass.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 recipeOrganizer;
  7 
  8 /**
  9  *
 10  * @author 18812
 11  */
 12 
 13 public class RecipeClass {
 14     // list of Strings
 15     private String recipeName = "not set yet";
 16     private String [] category = {"", "", "", "", "", "", "", "", "", ""};
 17     private String ingredient = "not set yet";
 18     private String instruction = "not set yet";
 19     
 20     private String recordedDate = "not set yet";
 21     
 22     private int timeRequired = 999999999;
 23 
 24     public RecipeClass() {
 25         
 26     }
 27 
 28     public RecipeClass(String recipeName, String [] category, String ingredient,
 29             String instruction, String recordedDate, int timeRequired) { 
 30 
 31         this.recipeName = recipeName;
 32         this.category = category;
 33         this.ingredient = ingredient;
 34         this.instruction = instruction;
 35         this.recordedDate = recordedDate;
 36         this.timeRequired = timeRequired;
 37        
 38 
 39     }
 40     
 41     /*public void Recipe(String [] category) {
 42         this.category = category;
 43     }*/
 44   
 45     // get method
 46     public String getRecipeName() {
 47         return recipeName;
 48     }
 49    
 50     public String [] getCategory() {
 51         return category;
 52     }
 53 
 54     public String getIngredient() {
 55         return ingredient;
 56     }
 57 
 58     public String getInstruction() {
 59         return instruction;
 60     }
 61     
 62     public String getRecordedDate() {
 63         return recordedDate;
 64     }
 65     
 66     public int getTimeRequired() { 
 67         return timeRequired;
 68     }
 69 
 70     // set method    
 71     public void setrecipeName(String newRecipeName) {
 72         this.recipeName = newRecipeName;
 73     }
 74     
 75     public void setcategory(String [] newCategory) {
 76         this.category = newCategory;
 77     }
 78 
 79     public void setingredient(String newIngredient) {
 80         this.ingredient = newIngredient;
 81     }
 82 
 83     public void setinstruction(String newInstruction) {
 84         this.instruction = newInstruction;
 85     }
 86     
 87     public void setrecordedDate(String newRecordedDate) {
 88         this.recordedDate = newRecordedDate;
 89     }
 90     
 91     public void settimeRequired(int newTimeRequired) {
 92         this.timeRequired = newTimeRequired;
 93     }
 94 
 95 }
 96 
 97 
 98     
 99