MATSIM
core
utils
collections
RouterPriorityQueue.java
Go to the documentation of this file.
1
/* *********************************************************************** *
2
* project: org.matsim.*
3
* RouterPriorityQueue.java
4
* *
5
* *********************************************************************** *
6
* *
7
* copyright : (C) 2012 by the members listed in the COPYING, *
8
* LICENSE and WARRANTY file. *
9
* email : info at matsim dot org *
10
* *
11
* *********************************************************************** *
12
* *
13
* This program is free software; you can redistribute it and/or modify *
14
* it under the terms of the GNU General Public License as published by *
15
* the Free Software Foundation; either version 2 of the License, or *
16
* (at your option) any later version. *
17
* See also COPYING, LICENSE and WARRANTY file *
18
* *
19
* *********************************************************************** */
20
21
package
org.matsim.core.utils.collections;
22
23
import
java.util.Iterator;
24
37
public
interface
RouterPriorityQueue
<E>
extends
Iterable
<E> {
38
47
public
boolean
add
(
final
E o,
final
double
priority);
48
56
public
E
poll
();
57
65
public
boolean
remove
(
final
E o);
66
74
public
E
peek
();
75
83
public
int
size
();
84
90
public
boolean
isEmpty
();
91
99
public
Iterator<E>
iterator
();
100
108
public
boolean
decreaseKey
(E value,
double
priority);
109
113
public
void
reset
();
114
}
org.matsim.core.utils.collections.RouterPriorityQueue.iterator
Iterator< E > iterator()
org.matsim.core.utils.collections.RouterPriorityQueue.peek
E peek()
org.matsim.core.utils.collections.RouterPriorityQueue.decreaseKey
boolean decreaseKey(E value, double priority)
org.matsim.core.utils.collections.RouterPriorityQueue.reset
void reset()
org.matsim.core.utils.collections.RouterPriorityQueue.isEmpty
boolean isEmpty()
Iterable
org.matsim.core.utils.collections.RouterPriorityQueue
Definition:
RouterPriorityQueue.java:37
org.matsim.core.utils.collections.RouterPriorityQueue.add
boolean add(final E o, final double priority)
org.matsim.core.utils.collections.RouterPriorityQueue.size
int size()
org.matsim.core.utils.collections.RouterPriorityQueue.poll
E poll()
Generated by
1.8.13