All Downloads are FREE. Search and download functionalities are using the official Maven repository.

it.ssc.datasource.DataSource Maven / Gradle / Ivy

Go to download

This is a JSR331 interface for SSC (Software for the Calculation of the Simplex) is a java library for solving linear programming problems v. 3.0.1. SSC was designed and developed by Stefano Scarioli.

The newest version!
package it.ssc.datasource;

import java.util.GregorianCalendar;
import java.util.function.Function;



public interface DataSource {
	
	public int getNumColunm();
	
	public String getNameColunm(int column_index);
	
	public boolean next() throws Exception;

	public void close() throws Exception; 
	
	public Object getObject(String name) throws DataSourceException;
	
	public Object getObject(int column_index) ;
	
	public Byte getByte(String name) throws DataSourceException ;
	
	public Byte getByte(int column_index) ;
	
	public Short getShort(String name)  throws DataSourceException;
	
	public Short getShort(int column_index) ;
	
	public Integer getInteger(String name) throws DataSourceException;
	
	public Integer getInteger(int column_index) ;
	
	public Long getLong(String name) throws DataSourceException;
	
	public Long getLong(int column_index) ;
	
	public Float getFloat(String name) throws DataSourceException;
	
	public Float getFloat(int column_index) ;
	
	public Double getDouble(String name) throws DataSourceException;
	
	public Double getDouble(int column_index) ;
	
	public Character getCharacter(String name) throws DataSourceException;
	
	public Character getCharacter(int column_index) ;
	
	public String getString(String name) throws DataSourceException;
	
	public String getString(int column_index) ;
	
	public Boolean getBoolean(String name) throws DataSourceException;
	
	public Boolean getBoolean(int column_index); 
	
	public GregorianCalendar getGregorianCalendar(String name) throws DataSourceException;
	
	public GregorianCalendar getGregorianCalendar(int column_index) ;
	
	public  R getValueReduce(Function remapping,String name) throws DataSourceException; 


}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy