2 * Copyright (c) 2013 Cisco Systems, Inc. and others. All rights reserved.
\r
4 * This program and the accompanying materials are made available under the
\r
5 * terms of the Eclipse Public License v1.0 which accompanies this distribution,
\r
6 * and is available at http://www.eclipse.org/legal/epl-v10.html
\r
9 package org.opendaylight.controller.concepts.tranform;
\r
11 import java.util.Set;
\r
14 * Transformer with set of acceptance rules
\r
16 * The transformer provides a set of {@link Acceptor}s, which could be used to
\r
17 * verify if the input will produce result using the transformer.
\r
19 * The transormer is able to produce result if ANY of associated
\r
20 * {@link Acceptor}s accepted result.
\r
22 * @author Tony Tkacik
\r
25 * Input class for transformation
\r
27 * Product of transformation
\r
29 public interface RuleBasedTransformer<I, P> extends Transformer<I, P> {
\r
32 * Set of {@link Acceptor}, which could be used to verify if the input is
\r
33 * usable by transformer.
\r
35 * The transformer is able to produce result if ANY of associated
\r
36 * {@link Acceptor}s accepted result.
\r
38 * @return Set of input acceptance rules associated to this transformer.
\r
40 Set<Acceptor<I>> getRules();
\r