Package org.ka2ddo.yaac.osm
Class GenericTaggedQueue
- All Implemented Interfaces:
Serializable
,Iterable<GenericTaggedNode>
,Collection<GenericTaggedNode>
,BlockingQueue<GenericTaggedNode>
,Queue<GenericTaggedNode>
This class extends the standard FastBlockingQueue to contain context information associated
with a particular instance of the queue.
- Author:
- Andrew Pavlin, KA2DDO
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionint
Whole number of degrees latitude for this tile.The File object for the disk file associated with this queue.int
Flag indicating whether Ways queued here are untyped (i.e., only pieces of a Relation).int
Whole number of degrees longitude for this tile.boolean
Flag indicating whether Ways queued here are untiled (i.e., spanning multiple tiles and kept only for Relation processing). -
Constructor Summary
ConstructorDescriptionGenericTaggedQueue
(int capacity, File gtnFile) Create a FastBlockingQueue with the specified maximum queue backlog. -
Method Summary
Methods inherited from class org.ka2ddo.util.FastBlockingQueue
add, clear, contains, drainTo, drainTo, drainTo, element, expandCapacity, fastOffer, fastSize, getCapacity, iterator, offer, offer, peek, poll, poll, put, putAll, remainingCapacity, remove, size, take
Methods inherited from class java.util.AbstractCollection
addAll, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.util.concurrent.BlockingQueue
remove
Methods inherited from interface java.util.Collection
addAll, containsAll, equals, hashCode, isEmpty, parallelStream, removeAll, removeIf, retainAll, spliterator, stream, toArray, toArray, toArray
-
Field Details
-
gtnFile
The File object for the disk file associated with this queue. -
isUntypedWay
public int isUntypedWayFlag indicating whether Ways queued here are untyped (i.e., only pieces of a Relation). -
bLat
public int bLatWhole number of degrees latitude for this tile. -
lLon
public int lLonWhole number of degrees longitude for this tile. -
untiled
public boolean untiledFlag indicating whether Ways queued here are untiled (i.e., spanning multiple tiles and kept only for Relation processing).
-
-
Constructor Details
-
GenericTaggedQueue
Create a FastBlockingQueue with the specified maximum queue backlog.- Parameters:
capacity
- int maximum capacity of queuegtnFile
- File representing where queued entries should be stored
-
-
Method Details
-
toString
Returns a string representation of the object.- Overrides:
toString
in classAbstractCollection<GenericTaggedNode>
- Returns:
- a string representation of the object.
-