| Modifier and Type | Field and Description |
|---|---|
| protected int | |
| protected Vector | |
| protected Vector | |
| protected AbstractSession |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected void | |
| public void | |
| public void | |
| public void | |
| public void | |
| private static int | |
| public int | |
| public Vector | |
| public Vector | |
| public Vector | |
| public CommitOrderDependencyNode | |
| public CommitOrderDependencyNode | |
| public void | |
| private static void | |
| private static void | |
| private static void |
| currentTime | back to summary |
|---|---|
| protected int currentTime | |
| nodes | back to summary |
|---|---|
| protected Vector<CommitOrderDependencyNode> nodes | |
| orderedDescriptors | back to summary |
|---|---|
| protected Vector<E> orderedDescriptors | |
| session | back to summary |
|---|---|
| protected AbstractSession session | |
| CommitOrderCalculator | back to summary |
|---|---|
| public CommitOrderCalculator(AbstractSession session) | |
| addNode | back to summary |
|---|---|
| protected void addNode(ClassDescriptor d) | |
| addNodes | back to summary |
|---|---|
| public void addNodes(Vector<E> descriptors) | |
| calculateMappingDependencies | back to summary |
|---|---|
| public void calculateMappingDependencies() Add to each node the dependent nodes | |
| calculateSpecifiedDependencies | back to summary |
|---|---|
| public void calculateSpecifiedDependencies() Add to each node the dependent nodes | |
| depthFirstSearch | back to summary |
|---|---|
| public void depthFirstSearch() | |
| doCompare | back to summary |
|---|---|
| private static int doCompare(Object o1, Object o2) | |
| getNextTime | back to summary |
|---|---|
| public int getNextTime() | |
| getNodes | back to summary |
|---|---|
| public Vector | |
| getOrderedClasses | back to summary |
|---|---|
| public Vector Return the constraint ordered classes. | |
| getOrderedDescriptors | back to summary |
|---|---|
| public Vector Return the constraint ordered descriptors. | |
| nodeFor | back to summary |
|---|---|
| public CommitOrderDependencyNode nodeFor(Class<?> c) | |
| nodeFor | back to summary |
|---|---|
| public CommitOrderDependencyNode nodeFor(ClassDescriptor d) | |
| orderCommits | back to summary |
|---|---|
| public void orderCommits() Calculate the commit order. Do a depth first search on the graph, skipping nodes that we have already visited or are in the process of visiting. Keep a counter and note when we first encounter a node and when we finish visiting it. Once we've visited everything, sort nodes by finishing time | |
| quicksort | back to summary |
|---|---|
| private static void quicksort(Object[] arr) Perform a sort using the specified comparator object. | |
| quicksort | back to summary |
|---|---|
| private static void quicksort(Object[] arr, int left, int right) quicksort the array of objects.
| |
| swap | back to summary |
|---|---|
| private static void swap(Object[] arr, int i, int j) | |