protected static class OptimalScheduleFinder._SortedSetOfStates
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
(package private) OptimalScheduleFinder._StateComparator |
_comparator
The comparator to use for sorting
|
(package private) java.util.TreeSet |
_treeSet
A tree set to store the sorted list.
|
Constructor and Description |
---|
_SortedSetOfStates()
Construct an instance of SortedSetOfStates.
|
_SortedSetOfStates(OptimalScheduleFinder._StateComparator comparator)
Construct an instance with an explicitly specified comparator.
|
Modifier and Type | Method and Description |
---|---|
(package private) void |
add(OptimalScheduleFinder._State state)
Adds a state to the sorted list.
|
(package private) boolean |
isEmpty()
Test if list is empty.
|
(package private) OptimalScheduleFinder._State |
removeFirstState()
Removes the first state from the sorted list.
|
OptimalScheduleFinder._StateComparator _comparator
java.util.TreeSet _treeSet
_SortedSetOfStates()
_SortedSetOfStates(OptimalScheduleFinder._StateComparator comparator)
comparator
- comparatorOptimalScheduleFinder._State removeFirstState()
void add(OptimalScheduleFinder._State state)
state
- to addboolean isEmpty()