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

it.ssc.ref.OutputRefDB 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.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;
	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy