net.walend.measured.test
Class CEPathsFromShortestDistancesTest.TestTieBreaker

java.lang.Object
  |
  +--net.walend.measured.test.CEPathsFromShortestDistancesTest.TestTieBreaker
All Implemented Interfaces:
java.io.Serializable, TieBreaker
Enclosing class:
CEPathsFromShortestDistancesTest

private static class CEPathsFromShortestDistancesTest.TestTieBreaker
extends java.lang.Object
implements TieBreaker, java.io.Serializable


Field Summary
static CEPathsFromShortestDistancesTest.TestTieBreaker IT
           
 
Constructor Summary
private CEPathsFromShortestDistancesTest.TestTieBreaker()
           
 
Method Summary
 int breakTie(java.lang.Object node1, int index1, java.lang.Object node2, int index2, java.lang.Object toNode)
          Determine which node should be the winner.
 void clear()
          Clear any caches of values.
private  java.lang.Object readResolve()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

IT

public static CEPathsFromShortestDistancesTest.TestTieBreaker IT
Constructor Detail

CEPathsFromShortestDistancesTest.TestTieBreaker

private CEPathsFromShortestDistancesTest.TestTieBreaker()
Method Detail

readResolve

private java.lang.Object readResolve()
                              throws java.io.ObjectStreamException
java.io.ObjectStreamException

breakTie

public int breakTie(java.lang.Object node1,
                    int index1,
                    java.lang.Object node2,
                    int index2,
                    java.lang.Object toNode)
Determine which node should be the winner.

Specified by:
breakTie in interface TieBreaker
Returns:
index1 if node1 is better, index2 if node2 is better.

clear

public void clear()
Clear any caches of values. Called at the beginning of any series of breakTie calls for the same step in the path.

Specified by:
clear in interface TieBreaker


Copyright (c) 2001, 2002, David Walend