Logo Search packages:      
Sourcecode: uimaj version File versions  Download package

FixedFlow.java

/*
 * Licensed to the Apache Software Foundation (ASF) under one
 * or more contributor license agreements.  See the NOTICE file
 * distributed with this work for additional information
 * regarding copyright ownership.  The ASF licenses this file
 * to you under the Apache License, Version 2.0 (the
 * "License"); you may not use this file except in compliance
 * with the License.  You may obtain a copy of the License at
 * 
 *   http://www.apache.org/licenses/LICENSE-2.0
 * 
 * Unless required by applicable law or agreed to in writing,
 * software distributed under the License is distributed on an
 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
 * KIND, either express or implied.  See the License for the
 * specific language governing permissions and limitations
 * under the License.
 */

package org.apache.uima.analysis_engine.metadata;

/**
 * A <code>FixedFlow</code> is a simple type of {@link FlowConstraints} that specifies the
 * complete flow as a fixed sequence.
 * <p>
 * Each element in the sequence is specified as a String identifier. The <code>FixedFlow</code>
 * object does not assign any particular meaning to these Strings - it is the user of the
 * <code>FixedFlow</code> object that must understand how to map them to AnalysisEngines
 * themselves.
 * 
 * 
 */
00033 public interface FixedFlow extends FlowConstraints {

  /**
   * The type identifier for this class of <code>FlowConstraints</code>. This is the return value
   * of {@link #getFlowConstraintsType()}.
   */
00039   public static final String FLOW_CONSTRAINTS_TYPE = "FIXED";

  /**
   * Gets the type of this <code>FlowConstraints</code> object. Each sub-interface of
   * <code>FlowConstraints</code> has its own standard type identifier String. These identifier
   * Strings are used instead of Java class names in order to ease portability of metadata to other
   * languages.
   * 
   * @return {@link #FLOW_CONSTRAINTS_TYPE}
   */
  public String getFlowConstraintsType();

  /**
   * Returns the flow as an array. Each element of the array is a String that identifies the
   * AnalysisEngine to invoke at that position in the flow.
   * 
   * @return an array of AE identifiers.
   */
  public String[] getFixedFlow();

  /**
   * Sets the fixed flow.
   * 
   * @param aFlow
   *          an array of Strings, each of which identifies the AnalysisEngine to invoke at that
   *          position in the flow.
   * 
   * @throws org.apache.uima.UIMA_UnsupportedOperationException
   *           if this <code>MetaDataObject</code> is not modifiable.
   */
  public void setFixedFlow(String[] aFlow);
}

Generated by  Doxygen 1.6.0   Back to index