package com.assist.dg.androidassist;

/**
 * Created by hendryjoe on 10/10/15.
 */
public class RequiredClass {

    private String formalClassName = "Default Class";
    private RequiredClass[] prerequisites = null;
    private float units = 0.0f;
    private boolean taken = false;
    private boolean qualified = true;
    private String univEquivalent = "Default Equiv";

    public void setFormalClassName(String formalClassName){
        this.formalClassName = formalClassName;
    }

    public void setPrerequisites(RequiredClass[] prerequisites){
        this.prerequisites = prerequisites;
    }

    public void setUnits(float units){
        this.units = units;
    }

    public void setTaken(boolean taken){
        this.taken = taken;
    }

    public void setQualified(boolean qualified){
        this.qualified = qualified;
    }

    public void setUnivEquivalent(String univEquivalent){
        this.univEquivalent = univEquivalent;
    }

    public RequiredClass[] getPrerequisites(){
        return prerequisites;
    }

    public float getUnits(){
        return units;
    }

    public boolean isTaken(){
        return taken;
    }

    public boolean isQualified(){
        return qualified;
    }

    public String getUnivEquivalent(){
        return univEquivalent;
    }

    public String getFormalClassName(){
        return formalClassName;
    }


}

@@ -367,16 +367,564 @@
  Equiv%22;
+%0A    public RequiredClass(String name, RequiredClass%5B%5D prereqs, float numUnits, %0A                          boolean take, String univEq)%0A    %7B %0A       formalClassName = name;%0A       prerequisites = prereqs;%0A       units = numUnits;%0A       taken = take;%0A      univEquivalent = univEq;%0A      qualif();%0A    %7D%0A   private void qualif()%0A   %7B%0A    for(int i = 0; i %3C prerequisites.length; i++)%0A     %7B%0A             if(prerequisites%5Bi%5D.isTaken() == false)%0A             %7B%0A                  qualified = false;%0A             %7D%0A      %7D%0A     qualified =  true;%0A   %7D
 %0A%0A    pu

Update RequiredClass.java