it.ssc.ref.OutputRefDB Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jsr331-ssc Show documentation
Show all versions of jsr331-ssc Show documentation
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.ref;
import java.sql.Connection;
import it.ssc.library.DbLibrary;
import it.ssc.library.Library;
import it.ssc.library.exception.InvalidLibraryException;
public class OutputRefDB implements OutputRefInterface {
private static final TYPE_REF type_ref=TYPE_REF.REF_DB;
private DbLibrary library;
private String name_table;
OutputRefDB(Library library, String name_ds) {
this.library =(DbLibrary) library;
this.name_table = name_ds;
}
public TYPE_REF getTypeRef() {
return type_ref;
}
public Connection getConnection() throws InvalidLibraryException {
return library.getConnection();
}
public String getNameTable() {
return name_table;
}
public String getNameLibrary() {
return library.getName();
}
public Library getLibrary() {
return this.library;
}
}