Package org.openstreetmap.osmosis.set.v0_6

Examples of org.openstreetmap.osmosis.set.v0_6.MergeBoundTest$BoundSource


    basePostbox = new DataPostbox<EntityContainer>(inputBufferCapacity);
    sortedEntityValidator = new SortedEntityPipeValidator();
    sortedEntityValidator.setSink(new DataPostboxSink(basePostbox));
    changePostbox = new DataPostbox<ChangeContainer>(inputBufferCapacity);
    sortedChangeValidator = new SortedDeltaChangePipeValidator();
    sortedChangeValidator.setChangeSink(new DataPostboxChangeSink(changePostbox));
  }
View Full Code Here


  public ChangeSink getChangeSink(int instance) {
    if (instance < 0 || instance >= sources.size()) {
      throw new OsmosisRuntimeException("Sink instance " + instance + " is not valid.");
    }
   
    return new DataPostboxChangeSink(sources.get(instance));
  }
View Full Code Here

  public ChangeMerger(ConflictResolutionMethod conflictResolutionMethod, int inputBufferCapacity) {
    this.conflictResolutionMethod = conflictResolutionMethod;
   
    postbox0 = new DataPostbox<ChangeContainer>(inputBufferCapacity);
    sortedChangeValidator0 = new SortedHistoryChangePipeValidator();
    sortedChangeValidator0.setChangeSink(new DataPostboxChangeSink(postbox0));
   
    postbox1 = new DataPostbox<ChangeContainer>(inputBufferCapacity);
    sortedChangeValidator1 = new SortedHistoryChangePipeValidator();
    sortedChangeValidator1.setChangeSink(new DataPostboxChangeSink(postbox1));
  }
View Full Code Here

   *            The size of the buffers to use for input sources.
   */
  public ChangeApplier(int inputBufferCapacity) {
    basePostbox = new DataPostbox<EntityContainer>(inputBufferCapacity);
    sortedEntityValidator = new SortedEntityPipeValidator();
    sortedEntityValidator.setSink(new DataPostboxSink(basePostbox));
    changePostbox = new DataPostbox<ChangeContainer>(inputBufferCapacity);
    sortedChangeValidator = new SortedDeltaChangePipeValidator();
    sortedChangeValidator.setChangeSink(new DataPostboxChangeSink(changePostbox));
  }
View Full Code Here

   
    this.conflictResolutionMethod = conflictResolutionMethod;
   
    postbox0 = new DataPostbox<EntityContainer>(inputBufferCapacity);
    sortedEntityValidator0 = new SortedEntityPipeValidator();
    sortedEntityValidator0.setSink(new DataPostboxSink(postbox0));
   
    postbox1 = new DataPostbox<EntityContainer>(inputBufferCapacity);
    sortedEntityValidator1 = new SortedEntityPipeValidator();
    sortedEntityValidator1.setSink(new DataPostboxSink(postbox1));
  }
View Full Code Here

   * @param inputBufferCapacity
   *            The size of the buffers to use for input sources.
   */
  public ChangeDeriver(int inputBufferCapacity) {
    fromPostbox = new DataPostbox<EntityContainer>(inputBufferCapacity);
    fromSink = new DataPostboxSink(fromPostbox);
    toPostbox = new DataPostbox<EntityContainer>(inputBufferCapacity);
    toSink = new DataPostboxSink(toPostbox);
  }
View Full Code Here

TOP

Related Classes of org.openstreetmap.osmosis.set.v0_6.MergeBoundTest$BoundSource

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.