// Path: src/com/learningmodule/association/conceptdrug/model/ConceptRow.java
// public class Cell implements Serializable {
// 	private static final long serialVersionUID = 1L;
// 
// 	// each cell contains drug Id and confidence level
// 	private String drug;
// 	private double confidence;
// 
// 	public Cell(String drug, double confidence) {
// 		this.drug = drug;
// 		this.confidence = confidence;
// 	}
// 
// 	public String getDrug() {
// 		return drug;
// 	}
// 
// 	public double getConfidence() {
// 		return confidence;
// 	}
// 		
// 	public void setConfidence(double confidence) {
// 		this.confidence = confidence;
// 	}
// 
// 	@Override
// 	public String toString() {
// 		return "Cell [drug=" + drug + ", confidence=" + confidence + "]";
// 	}
// 
// 	@Override
// 	public boolean equals(Object obj) {
// 		if (obj == null)
// 			return false;
// 		if (getClass() != obj.getClass())
// 			return false;
// 		Cell other = (Cell) obj;
// 		if (drug.equals(other.drug))
// 			return false;
// 		return true;
// 	}
// 
// }


import java.io.Serializable;
import java.util.Enumeration;
import java.util.Hashtable;
import java.util.LinkedList;
import com.learningmodule.association.conceptdrug.model.ConceptRow.Cell;
package com.learningmodule.association.conceptdrug.model;



/*
 * Class that represent he resultant matrix that will be used to predict the drug for a concept
 */
public class PredictionMatrix implements Serializable {
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	// Prediction matrix is a hastable with key as concept_id and value as
	// ConceptRow
	Hashtable<String, ConceptRow> rows;

	public PredictionMatrix(int noOfConcepts) {
		rows = new Hashtable<String, ConceptRow>();
	}

	/*
	 * method to get the list of drugs that are associated with a drugId
	 */
// Path: src/com/learningmodule/association/conceptdrug/model/ConceptRow.java
// public class Cell implements Serializable {
// 	private static final long serialVersionUID = 1L;
// 
// 	// each cell contains drug Id and confidence level
// 	private String drug;
// 	private double confidence;
// 
// 	public Cell(String drug, double confidence) {
// 		this.drug = drug;
// 		this.confidence = confidence;
// 	}
// 
// 	public String getDrug() {
// 		return drug;
// 	}
// 
// 	public double getConfidence() {
// 		return confidence;
// 	}
// 		
// 	public void setConfidence(double confidence) {
// 		this.confidence = confidence;
// 	}
// 
// 	@Override
// 	public String toString() {
// 		return "Cell [drug=" + drug + ", confidence=" + confidence + "]";
// 	}
// 
// 	@Override
// 	public boolean equals(Object obj) {
// 		if (obj == null)
// 			return false;
// 		if (getClass() != obj.getClass())
// 			return false;
// 		Cell other = (Cell) obj;
// 		if (drug.equals(other.drug))
// 			return false;
// 		return true;
// 	}
// 
// }


// Path: src/com/learningmodule/association/conceptdrug/model/PredictionMatrix.java
import java.io.Serializable;
import java.util.Enumeration;
import java.util.Hashtable;
import java.util.LinkedList;
import com.learningmodule.association.conceptdrug.model.ConceptRow.Cell;

package com.learningmodule.association.conceptdrug.model;



/*
 * Class that represent he resultant matrix that will be used to predict the drug for a concept
 */
public class PredictionMatrix implements Serializable {
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	// Prediction matrix is a hastable with key as concept_id and value as
	// ConceptRow
	Hashtable<String, ConceptRow> rows;

	public PredictionMatrix(int noOfConcepts) {
		rows = new Hashtable<String, ConceptRow>();
	}

	/*
	 * method to get the list of drugs that are associated with a drugId
	 */
	public LinkedList<Cell> getDrugs(String conceptId) {