Package org.openstreetmap.osmosis.core.task.common

Examples of org.openstreetmap.osmosis.core.task.common.Task


   * @param requiredTaskType
   *            The required type of the input task.
   * @return The matching task.
   */
  public Task retrieveTask(String taskId, String pipeName, Class<? extends Task> requiredTaskType) {
    Task task;
   
    if (!namedTasks.containsKey(pipeName)) {
      throw new OsmosisRuntimeException(
          "No pipe named " + pipeName + " is available as input for task " + taskId + ".");
    }
View Full Code Here


   * @param requiredTaskType
   *            The required type of the input task.
   * @return The matching task.
   */
  public Task retrieveTask(String taskId, Class<? extends Task> requiredTaskType) {
    Task task;
    int defaultTaskCount;
   
    defaultTaskCount = defaultTasks.size();
   
    if (defaultTaskCount == 0) {
View Full Code Here

   * @param requiredTaskType
   *            The required type of the input task.
   * @return The task to be used as input at the specified index.
   */
  protected Task getInputTask(PipeTasks pipeTasks, int pipeIndex, Class<? extends Task> requiredTaskType) {
    Task inputTask;
    Integer pipeIndexO = new Integer(pipeIndex);
   
    // We use the specified pipe name if it exists, otherwise we get the
    // next available default pipe.
    if (inputPipeNames.containsKey(pipeIndexO)) {
View Full Code Here

TOP

Related Classes of org.openstreetmap.osmosis.core.task.common.Task

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.