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

org.parallelj.launching.inout.InOutManagement.aj Maven / Gradle / Ivy

package org.parallelj.launching.inout;

import java.util.ArrayList;
import java.util.List;

public aspect InOutManagement {

	/*
	 * Add the interface IProgramArguments to the KProgram
	*/
	declare parents: org.parallelj.internal.kernel.KProgram implements IProgramInputOutputs;

	public List IProgramInputOutputs.arguments = new ArrayList();
	public List IProgramInputOutputs.outputs = new ArrayList();
	
	public List IProgramInputOutputs.getArguments() {
		return this.arguments;
	}
	
	public void IProgramInputOutputs.addArgument(Argument argument) {
		this.arguments.add(argument);
	}
	
	public Argument IProgramInputOutputs.getArgument(String name) {
		for (Argument argument : this.arguments) {
			if (argument.getName().equals(name)) {
				return argument;
			}
		}
		return null;
	}
	
	public List IProgramInputOutputs.getOutputs() {
		return this.outputs;
	}
	
	public void IProgramInputOutputs.addOutput(Output output) {
		this.outputs.add(output);
	}
	
	public Output IProgramInputOutputs.getOutput(String name) {
		for (Output output : this.outputs) {
			if (output.getName().equals(name)) {
				return output;
			}
		}
		return null;
	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy