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

org.biopax.paxtools.pattern.constraint.MultiPathConstraint Maven / Gradle / Ivy

package org.biopax.paxtools.pattern.constraint;

import org.biopax.paxtools.pattern.MappedConst;

/**
 * Logical OR of several PathConstraints.
 *
 * @author Ozgun Babur
 */
public class MultiPathConstraint extends OR
{
	/**
	 * Constructor with specifier string of the path constraints.
	 * @param paths constructor strings for the path constraints
	 */
	public MultiPathConstraint(String ... paths)
	{
		con = new MappedConst[paths.length];

		for (int i = 0; i < con.length; i++)
		{
			con[i] = new MappedConst(new PathConstraint(paths[i]), 0, 1);
		}
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy