// Path: src/main/java/smile/wide/data/Instance.java
// public class Instance<ID,Value> {
// 	
// 	    private ID _id;
// 	    private Value[] _val;
// 	    
// 	    public Instance(ID id, Value[] v){
// 	        this._id = id;
// 	        this._val = v;
// 	    }
// 	    
// 	    public ID getID()
// 	    { 
// 	    	return _id; 
// 	    }
// 	    	    
// 	    public Value[] getValue()
// 	    { 
// 	    	return _val; 
// 	    }
// 	    
// 	    public void setID(ID id)
// 	    { 
// 	    	this._id = id; 
// 	    }
// 	    
// 	    public void setValue(Value[] v)
// 	    { 
// 	    	this._val = v; 
// 	    }
// 
// }


import smile.Network;
import smile.wide.data.Instance;
import java.io.BufferedReader;
import java.io.FileReader;
import java.util.ArrayList;
import java.util.List;
/*
             Licensed to the DARPA XDATA project.
       DARPA XDATA licenses this file to you under the 
         Apache License, Version 2.0 (the "License");
 you may not use this file except in compliance with the License.
           You may obtain a copy of the License at

         http://www.apache.org/licenses/LICENSE-2.0

  Unless required by applicable law or agreed to in writing,
 software distributed under the License is distributed on an
 "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
                 either express or implied.                    
   See the License for the specific language governing
     permissions and limitations under the License.
*/

package smile.wide.obsolete;





@Deprecated
public class GenieFileReader
	{

	/**
	 * Reads in the file produced by Genie - pretty straightforward
	 * comma/tab-separated format. Expects the first column to be the unique ID
	 * and checks uniqueness. Can generate the unique ID if told so. Outputs for
	 * each row its unique ID and the attribute value indices (wants to access
	 * the network to translate strings to indices per the network definition
	 * 
	 * @param net- the Bayesian network
	 * @param file - the file from which to read data
	 * @param makeIDs
	 *            - whether to make unique instance IDs true - assumes the first
	 *            entry on a line is a data value, not an ID false - assumes the
	 *            first entry is an ID
	 * @param separator: ",", "\t", or other separator character
	 * @return
	 * 
	 */
// Path: src/main/java/smile/wide/data/Instance.java
// public class Instance<ID,Value> {
// 	
// 	    private ID _id;
// 	    private Value[] _val;
// 	    
// 	    public Instance(ID id, Value[] v){
// 	        this._id = id;
// 	        this._val = v;
// 	    }
// 	    
// 	    public ID getID()
// 	    { 
// 	    	return _id; 
// 	    }
// 	    	    
// 	    public Value[] getValue()
// 	    { 
// 	    	return _val; 
// 	    }
// 	    
// 	    public void setID(ID id)
// 	    { 
// 	    	this._id = id; 
// 	    }
// 	    
// 	    public void setValue(Value[] v)
// 	    { 
// 	    	this._val = v; 
// 	    }
// 
// }


// Path: src/main/java/smile/wide/obsolete/GenieFileReader.java
import smile.Network;
import smile.wide.data.Instance;
import java.io.BufferedReader;
import java.io.FileReader;
import java.util.ArrayList;
import java.util.List;

/*
             Licensed to the DARPA XDATA project.
       DARPA XDATA licenses this file to you under the 
         Apache License, Version 2.0 (the "License");
 you may not use this file except in compliance with the License.
           You may obtain a copy of the License at

         http://www.apache.org/licenses/LICENSE-2.0

  Unless required by applicable law or agreed to in writing,
 software distributed under the License is distributed on an
 "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
                 either express or implied.                    
   See the License for the specific language governing
     permissions and limitations under the License.
*/

package smile.wide.obsolete;





@Deprecated
public class GenieFileReader
	{

	/**
	 * Reads in the file produced by Genie - pretty straightforward
	 * comma/tab-separated format. Expects the first column to be the unique ID
	 * and checks uniqueness. Can generate the unique ID if told so. Outputs for
	 * each row its unique ID and the attribute value indices (wants to access
	 * the network to translate strings to indices per the network definition
	 * 
	 * @param net- the Bayesian network
	 * @param file - the file from which to read data
	 * @param makeIDs
	 *            - whether to make unique instance IDs true - assumes the first
	 *            entry on a line is a data value, not an ID false - assumes the
	 *            first entry is an ID
	 * @param separator: ",", "\t", or other separator character
	 * @return
	 * 
	 */
	public List<Instance<Integer, Integer>> readFile(Network net, String fileName, boolean makeIDs, String separator)