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

freak.core.graph.HasFloatingNumberOfInPorts Maven / Gradle / Ivy

There is a newer version: 0.4.7
Show newest version
/*
 * This file is part of FrEAK. For licensing and copyright information
 * please see the file COPYING in the root directory of this
 * distribution or contact .
 */

package freak.core.graph;

/**
 * Interface for Operators that have as many InPorts as incoming connections.
 * 
 * @author Andrea, Matthias
 */
public interface HasFloatingNumberOfInPorts {

	/**
	 * Appends an InPort to the list of InPorts. 
	 */
	public void addInPort();

	/**
	 * Inserts an InPort with the specified number.
	 * Increases the number of the InPort, which currently has the number index 
	 * (if any) and any subsequent InPorts, by one.
	 * 
	 * @param index position at which the port is inserted.
	 */
	public void addInPort(int index);

	/**
	 * Removes the InPort with the specified number.
	 * Decreases the number of any subsequent InPorts by one.
	 *  
	 * @param index number of port to remove.
	 */
	public void removeInPort(int index);

	/**
	 * Exchanges the inports with index x y.
	 * @param x index of first port to exchange with second one.
	 * @param y index of second port to exchange with first one.
	 */
	public void exchangeInPorts(int x, int y);
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy