001package org.biopax.paxtools.pattern.constraint; 002 003import org.biopax.paxtools.pattern.MappedConst; 004 005/** 006 * Logical OR of several PathConstraints. 007 * 008 * @author Ozgun Babur 009 */ 010public class MultiPathConstraint extends OR 011{ 012 /** 013 * Constructor with specifier string of the path constraints. 014 * @param paths constructor strings for the path constraints 015 */ 016 public MultiPathConstraint(String ... paths) 017 { 018 con = new MappedConst[paths.length]; 019 020 for (int i = 0; i < con.length; i++) 021 { 022 con[i] = new MappedConst(new PathConstraint(paths[i]), 0, 1); 023 } 024 } 025}