
freak.core.graph.AbstractFork Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of freak-core Show documentation
Show all versions of freak-core Show documentation
Core library of the Free Evolutionary Algorithm Toolkit
/*
* 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;
/**
* An abstract superclass for all operators with one inport and an arbitrary number
* of outports.
*
* @author Dirk
*/
abstract public class AbstractFork extends AbstractOperator {
/**
* Creates a new AbstractFork
operator.
*
* @param graph a link back to the operator graph.
*/
public AbstractFork(OperatorGraph graph) {
super(graph);
super.addInPort(0);
}
/**
* Adding inports is not supported and therefore throws an
* UnsupportedOperationException.
* Note that void addInPort() is based on this function and
* isn't supported either.
*/
public void addInPort(int index) {
throw new UnsupportedOperationException("Can't add inPort to this type of operator");
}
/**
* Removing inports is not supported and therefore throws an
* UnsupportedOperationException.
*/
public void removeInPort(int index) {
throw new UnsupportedOperationException("Can't remove inPort from this type of operator");
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy