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

it.ssc.step.RSortProcess 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.step;

import it.ssc.context.SessionIPRIV;
import it.ssc.ref.Input;
import it.ssc.ref.OutputRefInterface;
import it.ssc.step.exception.InvalidDichiarationOptions;
import it.ssc.step.readdata.OptionsRead;
import it.ssc.step.trasformation.OptionsTrasformationSort;
import it.ssc.step.writedata.OptionsWrite;

class RSortProcess extends CoreDataSortStep implements SortStep {
	
	RSortProcess(OutputRefInterface new_dataset_output,	Input input_ref, SessionIPRIV parent_session) {
		this.output_ref = new_dataset_output;
		this.parent_session = parent_session;
		this.input_ref = input_ref;
		this.opt_read = new OptionsRead();
		this.opt_trasf = new OptionsTrasformationSort();
		this.opt_write = new OptionsWrite();
	}
	
	public void setDropVarOutput(String... name_field) {
		opt_write.setDropOutput(name_field);
	}

	public void setKeepVarOutput(String... name_field) {
		opt_write.setKeepOutput(name_field);
	}

	public void setMaxObsRead(long obs_read) throws InvalidDichiarationOptions {
		opt_read.setMaxObsRead(obs_read);
	}

	public void setVariablesToSort(String variables_to_order) {
		this.opt_trasf.setVariablesToSort(variables_to_order);
	}

	public void setMaxNumberRecordLoadInMemoryForSort(int max_dim_array) {
		this.opt_trasf.setDimensionArrayForSort(max_dim_array);
	}
	
	public void run() throws Exception {
		this.execute();
	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy