package hu.bme.mit.incquery.cep.casestudy.transaction.incquery.patterns.sample;
import hu.bme.mit.incquery.cep.casestudy.transaction.incquery.patterns.sample.ComponentAMatcher;
import hu.bme.mit.incquery.cep.casestudy.transaction.incquery.patterns.sample.ComponentBMatcher;
import hu.bme.mit.incquery.cep.casestudy.transaction.incquery.patterns.sample.ComponentCMatcher;
import hu.bme.mit.incquery.cep.casestudy.transaction.incquery.patterns.sample.CompoundEventMatcher;
import org.eclipse.incquery.runtime.api.impl.BaseGeneratedPatternGroup;
import org.eclipse.incquery.runtime.exception.IncQueryException;
/**
* A pattern group formed of all patterns defined in samplepatterns.eiq.
*
* <p>Use the static instance as any {@link org.eclipse.incquery.runtime.api.IPatternGroup}, to conveniently prepare
* an EMF-IncQuery engine for matching all patterns originally defined in file samplepatterns.eiq,
* in order to achieve better performance than one-by-one on-demand matcher initialization.
*
* <p> From package hu.bme.mit.incquery.cep.casestudy.transaction.incquery.patterns.sample, the group contains the definition of the following patterns: <ul>
* <li>componentA</li>
* <li>componentB</li>
* <li>componentC</li>
* <li>compoundEvent</li>
* </ul>
*
* @see IPatternGroup
*
*/
@SuppressWarnings("all")
public final class Samplepatterns extends BaseGeneratedPatternGroup {
/**
* Access the pattern group.
*
* @return the singleton instance of the group
* @throws IncQueryException if there was an error loading the generated code of pattern specifications
*
*/
public static Samplepatterns instance() throws IncQueryException {
if (INSTANCE == null) {
INSTANCE = new Samplepatterns();
}
return INSTANCE;
}
private static Samplepatterns INSTANCE;
private Samplepatterns() throws IncQueryException {
querySpecifications.add(ComponentAMatcher.querySpecification());
querySpecifications.add(ComponentBMatcher.querySpecification());
querySpecifications.add(CompoundEventMatcher.querySpecification());
querySpecifications.add(ComponentCMatcher.querySpecification());
}
}