- AbstractGraph - Class in fi.uef.cs.tra
-
- AbstractGraph.EdgeIteratorWrapper - Class in fi.uef.cs.tra
-
- AbstractGraph.VertexIteratorWrapper - Class in fi.uef.cs.tra
-
- add(float, E) - Method in class fi.uef.cs.tra.AssignablePriorityQueue
-
- add(E, float) - Method in class fi.uef.cs.tra.AssignablePriorityQueue
-
Inserts a specified element to the priority queue with the specified
priority.
- add(E) - Method in class fi.uef.cs.tra.PriorityQueue
-
- add(E) - Method in class fi.uef.cs.tra.TraSet
-
- addAll(Collection<? extends E>) - Method in class fi.uef.cs.tra.TraSet
-
- addEdge(Vertex, String, int, float) - Method in class fi.uef.cs.tra.Vertex
-
Attaches a new
Edge
between this
Vertex and the specified one.
- addEdge(Vertex, String, int) - Method in class fi.uef.cs.tra.Vertex
-
Attaches a new
Edge
between this
Vertex and the specified one.
- addEdge(Vertex, String) - Method in class fi.uef.cs.tra.Vertex
-
Attaches a new
Edge
between this
Vertex and the specified one.
- addEdge(Vertex) - Method in class fi.uef.cs.tra.Vertex
-
Attaches a new
Edge
between this
Vertex and the specified one.
- addEdge(Vertex, int, float) - Method in class fi.uef.cs.tra.Vertex
-
Attaches a new
Edge
between this
Vertex and the specified one.
- addEdge(Vertex, int) - Method in class fi.uef.cs.tra.Vertex
-
Attaches a new
Edge
between this
Vertex and the specified one.
- addEdge(Vertex, float) - Method in class fi.uef.cs.tra.Vertex
-
Attaches a new
Edge
between this
Vertex and the specified one.
- addFirst(E) - Method in class fi.uef.cs.tra.LinkedDeque
-
Inserts the given element to the front of this deque.
- addLast(E) - Method in class fi.uef.cs.tra.LinkedDeque
-
Inserts the given element to the rear of this deque.
- addVertex(String, int, float, int) - Method in class fi.uef.cs.tra.AbstractGraph
-
Adds a Vertex to this graph with the specified
attributes.
- addVertex(String, int, int) - Method in class fi.uef.cs.tra.AbstractGraph
-
Adds a Vertex to this graph with the specified
attributes.
- addVertex(String, int) - Method in class fi.uef.cs.tra.AbstractGraph
-
Adds a Vertex to this graph with the specified
attributes.
- addVertex(int) - Method in class fi.uef.cs.tra.AbstractGraph
-
Adds a Vertex to this graph with the specified
attributes.
- addVertex(int, float, int) - Method in class fi.uef.cs.tra.AbstractGraph
-
Adds a Vertex to this graph with the specified
attributes.
- addVertex(int, int) - Method in class fi.uef.cs.tra.AbstractGraph
-
Adds a Vertex to this graph with the specified
attributes.
- addVertex(float, int) - Method in class fi.uef.cs.tra.AbstractGraph
-
Adds a Vertex to this graph with the specified
attributes.
- addVertex(String, int, float) - Method in class fi.uef.cs.tra.AbstractGraph
-
Adds a Vertex to this graph with the specified
attributes.
- addVertex(String) - Method in class fi.uef.cs.tra.AbstractGraph
-
Adds a Vertex to this graph with the specified
attributes.
- addVertex() - Method in class fi.uef.cs.tra.AbstractGraph
-
Adds a Vertex to this graph with the specified
attributes.
- addVertex(int, float) - Method in class fi.uef.cs.tra.AbstractGraph
-
Adds a Vertex to this graph with the specified
attributes.
- addVertex(float) - Method in class fi.uef.cs.tra.AbstractGraph
-
Adds a Vertex to this graph with the specified
attributes.
- AdjustablePriorityQueue<E extends java.lang.Comparable> - Class in fi.uef.cs.tra
-
Priority queue with operation to improve/demote the priority of an element (node).
- AdjustablePriorityQueue() - Constructor for class fi.uef.cs.tra.AdjustablePriorityQueue
-
Default constructor.
- AssignablePriorityQueue<E> - Class in fi.uef.cs.tra
-
AssignablePriorityQueue is a wrapper for
java.util.PriorityQueue that
allows specifying an float priority for each element.
- AssignablePriorityQueue() - Constructor for class fi.uef.cs.tra.AssignablePriorityQueue
-
Creates an AssignablePriorityQueue with the default initial
capacity (11) that orders its elements according to the natural
ordering of their assigned priorities.
- AssignablePriorityQueue(int) - Constructor for class fi.uef.cs.tra.AssignablePriorityQueue
-
Creates an AssignablePriorityQueue with the specified initial
capacity (11) that orders its elements according to the natural
ordering of their assigned priorities.
- getBalance() - Method in class fi.uef.cs.tra.BTreeNode
-
Returns this node's balance.
- getBalance() - Method in class fi.uef.cs.tra.TreeNode
-
Returns this node's balance.
- getColor() - Method in class fi.uef.cs.tra.Edge
-
Gets the color of this Edge.
- getColor() - Method in class fi.uef.cs.tra.Vertex
-
Gets this Vertex's color.
- getEdge(Vertex) - Method in class fi.uef.cs.tra.Vertex
-
Returns the edge from this Vertex to the specified one
or null if one doesn't exist.
- getElement() - Method in class fi.uef.cs.tra.BTreeNode
-
Returns this node's element.
- getElement() - Method in class fi.uef.cs.tra.EOL
-
Always throws an TraLinkedListException.
- getElement() - Method in class fi.uef.cs.tra.ListNode
-
Returns this ListNode's element.
- getElement() - Method in class fi.uef.cs.tra.TreeNode
-
Returns this node's element.
- getEndPoint(Vertex) - Method in class fi.uef.cs.tra.Edge
-
Returns the
Vertex
on the other end
of the specified
Edge.
- getEndPoint() - Method in class fi.uef.cs.tra.Edge
-
Returns the end point of this Edge.
- getFirst() - Method in class fi.uef.cs.tra.LinkedDeque
-
Returns but does not remove the element at the front of this deque.
- getIndex() - Method in class fi.uef.cs.tra.Vertex
-
Gets this Vertex's index.
- getLabel() - Method in class fi.uef.cs.tra.Edge
-
Gets the label of this Edge.
- getLabel() - Method in class fi.uef.cs.tra.Vertex
-
Gets this Vertex's label.
- getLast() - Method in class fi.uef.cs.tra.LinkedDeque
-
Returns but does not remove the element at the rear of this deque.
- getLeftChild() - Method in class fi.uef.cs.tra.BTreeNode
-
Returns this node's leftmost child.
- getLeftChild() - Method in class fi.uef.cs.tra.TreeNode
-
Returns this node's leftmost child.
- getParent() - Method in class fi.uef.cs.tra.BTreeNode
-
Returns this node's parent node.
- getParent() - Method in class fi.uef.cs.tra.TreeNode
-
Returns this node's parent node.
- getRightChild() - Method in class fi.uef.cs.tra.BTreeNode
-
Returns this node's right child.
- getRightSibling() - Method in class fi.uef.cs.tra.TreeNode
-
Returns this node's right sibling.
- getRoot() - Method in class fi.uef.cs.tra.BTree
-
Returns the root of this BTree.
- getRoot() - Method in class fi.uef.cs.tra.Tree
-
Returns the root of this Tree.
- getStartPoint() - Method in class fi.uef.cs.tra.Edge
-
Returns the starting point of this Edge.
- getWeight() - Method in class fi.uef.cs.tra.Edge
-
Gets the weight of this Edge.
- getWeight() - Method in class fi.uef.cs.tra.Vertex
-
Gets this Vertex's weight.
- goesOut(Vertex) - Method in class fi.uef.cs.tra.Edge
-
Determines whether this Edge goes out from the specified
Vertex.
- Graph - Class in fi.uef.cs.tra
-
A
Graph or an undirected graph is an ordered pair
G := (V, E) with
V, a set of
vertices and
E, a set of undirected
edges.
- Graph() - Constructor for class fi.uef.cs.tra.Graph
-
- GraphException - Exception in fi.uef.cs.tra
-
GraphException is a generic
RuntimeException
for
Graph
and
DiGraph
-related problems.
- GRAY - Static variable in class fi.uef.cs.tra.AbstractGraph
-
Named constant (2)
- GREEN - Static variable in class fi.uef.cs.tra.AbstractGraph
-
Named constant (4)
- GREY - Static variable in class fi.uef.cs.tra.AbstractGraph
-
Named constant (2)
- peek() - Method in class fi.uef.cs.tra.AssignablePriorityQueue
-
Retrieves, but does not remove, the head of this queue,
returning null if this queue is empty.
- peek() - Method in class fi.uef.cs.tra.LinkedQueue
-
Retrieves, but does not remove, the head of this queue,
returning null if this queue is empty.
- peek() - Method in class fi.uef.cs.tra.LinkedStack
-
Returns but does not remove the element at the top of this stack.
- poll() - Method in class fi.uef.cs.tra.AdjustablePriorityQueue
-
Remove and return the most important element of the priority queue.
- poll() - Method in class fi.uef.cs.tra.AssignablePriorityQueue
-
Removes and returns the head of this queue, or null
if this queue is empty.
- poll() - Method in class fi.uef.cs.tra.LinkedQueue
-
Retrieves and removes the head of this queue, or null
if this queue is empty.
- poll() - Method in class fi.uef.cs.tra.PriorityQueue
-
- pop() - Method in class fi.uef.cs.tra.LinkedStack
-
Removes and returns the element at the top of this stack.
- previous() - Method in class fi.uef.cs.tra.EOL
-
Always throws an TraLinkedListException.
- previous() - Method in class fi.uef.cs.tra.ListNode
-
Returns this ListNode's previous node.
- previous(ListNode<E>) - Method in class fi.uef.cs.tra.TraLinkedList
-
- PriorityQueue<E> - Class in fi.uef.cs.tra
-
PriorityQueue is a convenience extension of
java.util.PriorityQueue for relocation.
- PriorityQueue() - Constructor for class fi.uef.cs.tra.PriorityQueue
-
Creates a PriorityQueue with the default initial capacity
(11) that orders its elements according to their natural
ordering (using java.util.Comparable
).
- PriorityQueue(int) - Constructor for class fi.uef.cs.tra.PriorityQueue
-
Creates a PriorityQueue with the specified initial capacity
that orders its elements according to their natural ordering
(using java.util.Comparable
).
- PriorityQueue(int, Comparator<? super E>) - Constructor for class fi.uef.cs.tra.PriorityQueue
-
Creates a PriorityQueue with the specified initial capacity
that orders its elements according to the specified comparator.
- PriorityQueue(Collection<? extends E>) - Constructor for class fi.uef.cs.tra.PriorityQueue
-
Creates a PriorityQueue containing the elements in the
specified collection.
- PriorityQueue(PriorityQueue<? extends E>) - Constructor for class fi.uef.cs.tra.PriorityQueue
-
Creates a PriorityQueue containing the elements in the
specified collection.
- PriorityQueue(SortedSet<? extends E>) - Constructor for class fi.uef.cs.tra.PriorityQueue
-
Creates a PriorityQueue containing the elements in the
specified collection.
- push(E) - Method in class fi.uef.cs.tra.LinkedStack
-
Pushes an element onto the top of this stack.
- setBalance(int) - Method in class fi.uef.cs.tra.BTreeNode
-
Sets this node's balance.
- setBalance(int) - Method in class fi.uef.cs.tra.TreeNode
-
Sets this node's balance.
- setColor(int) - Method in class fi.uef.cs.tra.Edge
-
Sets the color of this Edge.
- setColor(int) - Method in class fi.uef.cs.tra.Vertex
-
Sets this Vertex's color.
- setElement(E) - Method in class fi.uef.cs.tra.BTreeNode
-
Sets this node's element.
- setElement(E) - Method in class fi.uef.cs.tra.TreeNode
-
Sets this node's element.
- setIndex(int) - Method in class fi.uef.cs.tra.Vertex
-
Sets this Vertex's index.
- setLabel(String) - Method in class fi.uef.cs.tra.Edge
-
Sets the label of this Edge.
- setLabel(String) - Method in class fi.uef.cs.tra.Vertex
-
Sets this Vertex's label.
- setLeftChild(BTreeNode<E>) - Method in class fi.uef.cs.tra.BTreeNode
-
Sets this node's left child.
- setLeftChild(BTree<E>) - Method in class fi.uef.cs.tra.BTreeNode
-
Sets this node's left child to be the root node of the specified
BTree.
- setLeftChild(TreeNode<E>) - Method in class fi.uef.cs.tra.TreeNode
-
Sets this node's left child.
- setLeftChild(Tree<E>) - Method in class fi.uef.cs.tra.TreeNode
-
Sets this node's left child to be the root node of the specified
Tree.
- setParent(TreeComponent<E>) - Method in class fi.uef.cs.tra.BTreeNode
-
Sets this node's parent.
- setRightChild(BTreeNode<E>) - Method in class fi.uef.cs.tra.BTreeNode
-
Sets this node's right child.
- setRightChild(BTree<E>) - Method in class fi.uef.cs.tra.BTreeNode
-
Sets this node's right child to be the root node of the specified
BTree
.
- setRightSibling(TreeNode<E>) - Method in class fi.uef.cs.tra.TreeNode
-
Sets this node's right sibling.
- setRightSibling(Tree<E>) - Method in class fi.uef.cs.tra.TreeNode
-
Sets this node's right sibling to be the root node of the specified
Tree
.
- setRoot(BTreeNode<E>) - Method in class fi.uef.cs.tra.BTree
-
Sets the root of this BTree.
- setRoot(TreeNode<E>) - Method in class fi.uef.cs.tra.Tree
-
Sets the root of this Tree.
- setWeight(float) - Method in class fi.uef.cs.tra.Edge
-
Sets the weight of this Edge.
- setWeight(float) - Method in class fi.uef.cs.tra.Vertex
-
Sets this Vertex's weight.
- size() - Method in class fi.uef.cs.tra.AbstractGraph
-
Returns the number of vertices in this graph.
- size() - Method in class fi.uef.cs.tra.AssignablePriorityQueue
-
Returns the number of elements in this queue.
- size() - Method in class fi.uef.cs.tra.PriorityQueue
-
- size() - Method in class fi.uef.cs.tra.TraSet
-
- subSet(E, E) - Method in class fi.uef.cs.tra.TraSet
-
- tailSet(E) - Method in class fi.uef.cs.tra.TraSet
-
- toString() - Method in class fi.uef.cs.tra.AbstractGraph
-
Returns the string representation of this graph.
- toString() - Method in class fi.uef.cs.tra.AdjustablePriorityQueue
-
String representation of priority queue.
- toString() - Method in class fi.uef.cs.tra.BTreeNode
-
Returns (element) as String.
- toString() - Method in class fi.uef.cs.tra.Edge
-
Produces a String representation of this Edge.
- toString() - Method in class fi.uef.cs.tra.EOL
-
- toString() - Method in class fi.uef.cs.tra.ListNode
-
Returns the element's toString().
- toString() - Method in class fi.uef.cs.tra.Vertex
-
Returns a String representation of this Vertex.
- toString(boolean) - Method in class fi.uef.cs.tra.Vertex
-
Returns a String representation of this Vertex and optionally
its neighbors and their connecting Edges.
- TraLinkedList<E> - Class in fi.uef.cs.tra
-
- TraLinkedList() - Constructor for class fi.uef.cs.tra.TraLinkedList
-
Creates an empty list.
- TraLinkedList(String) - Constructor for class fi.uef.cs.tra.TraLinkedList
-
Creates an empty list and uses elements instead of
"nodes" in iterator exceptions.
- TraLinkedList.ElementIteratorWrapper - Class in fi.uef.cs.tra
-
- TraLinkedList.NodeIteratorWrapper - Class in fi.uef.cs.tra
-
- TraLinkedListException - Exception in fi.uef.cs.tra
-
TraLinkedListExceeption is a generic
RuntimeException
for
TraLinkedList
-related problems.
- TraSet<E> - Class in fi.uef.cs.tra
-
fi.uef.cs.tra.TraSet extends
java.util.TreeSet
with comparison methods.
- TraSet() - Constructor for class fi.uef.cs.tra.TraSet
-
Constructs a new, empty set, sorted according to the elements'
natural order.
- TraSet(Collection<? extends E>) - Constructor for class fi.uef.cs.tra.TraSet
-
Constructs a new set containing the elements in the specified collection,
sorted according to the elements'
natural order.
- TraSet(Comparator<? super E>) - Constructor for class fi.uef.cs.tra.TraSet
-
Constructs a new, empty set, sorted according to the specified
comparator.
- TraSet(SortedSet<E>) - Constructor for class fi.uef.cs.tra.TraSet
-
Constructs a new set containing the same elements as the specified sorted
set, sorted according to the same ordering.
- Tree<E> - Class in fi.uef.cs.tra
-
Tree is a wrapper class for a root
TreeNode
.
- Tree() - Constructor for class fi.uef.cs.tra.Tree
-
Creates an empty Tree.
- Tree(TreeNode<E>) - Constructor for class fi.uef.cs.tra.Tree
-
Creates a
Tree with the specified
TreeNode
as the root node.
- TreeException - Exception in fi.uef.cs.tra
-
TreeException is a generic
RuntimeException
for
Tree
-related problems.
- TreeNode<E> - Class in fi.uef.cs.tra
-
TreeNode is a building block for basic
Tree
s.
- TreeNode(E) - Constructor for class fi.uef.cs.tra.TreeNode
-
Creates a new TreeNode with the specified element.