java.lang.Object
de.grogra.xl.impl.queues.QueueDescriptor<Q>
- Direct Known Subclasses:
GraphQueue.AddEdgeDescriptor
,GraphQueue.AddNodeDescriptor
,GraphQueue.AddUndirectedEdgeDescriptor
,GraphQueue.ConnectDescriptor
,GraphQueue.DeleteEdgeDescriptor
,GraphQueue.DeleteNodeDescriptor
,GraphQueue.ExecuteDescriptor
,PropertyQueue.MakePersistentDescriptor
,PropertyQueue.PropertyQueueDescriptor
,VVQueue.Descriptor
A
QueueDescriptor
is a handle to the method
QueueCollection.getQueue(QueueDescriptor)
,
there it is used to instantiate a queue by
createQueue(QueueCollection)
. In addition, a
QueueDescriptor
describes the order processing of
queues (see QueueCollection.process(int[])
) by its
methods queuesToProcessBefore()
and queuesToProcessAfter()
.
The methods equals
and hashCode
are overriden
such that two descriptors are equal iff their classes are equal.- Author:
- Ole Kniemeyer
-
Field Summary
Modifier and TypeFieldDescriptionstatic final QueueDescriptor[]
ImmutableQueueDescriptor
array of length 0. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
addOrder
(List<? super QueueDescriptor<?>> queueOrder) abstract Q
Creates a newQueue
.final boolean
final int
hashCode()
protected abstract QueueDescriptor[]
Returns the descriptors of queues which are to be applied after the queue of this descriptor.protected abstract QueueDescriptor[]
Returns the descriptors of queues which are to be applied before the queue of this descriptor.
-
Field Details
-
DESCRIPTOR_0
ImmutableQueueDescriptor
array of length 0.
-
-
Constructor Details
-
QueueDescriptor
public QueueDescriptor()
-
-
Method Details
-
addOrder
-
equals
-
hashCode
public final int hashCode() -
queuesToProcessBefore
Returns the descriptors of queues which are to be applied before the queue of this descriptor.- Returns:
- descriptors of queues to be applied before this descriptor's queue
- See Also:
-
queuesToProcessAfter
Returns the descriptors of queues which are to be applied after the queue of this descriptor.- Returns:
- descriptors of queues to be applied after this descriptor's queue
- See Also:
-
createQueue
Creates a newQueue
. This method is invoked byQueueCollection.getQueue(QueueDescriptor)
.- Parameters:
qc
- the invokingQueueCollection
- Returns:
- a new
Queue
instance corresponding to this descriptor
-