tauZaman
v0.1

tauzaman.calendricsystem.granularitylattice
Class GranularityLattice.SPElement

java.lang.Object
  |
  +--tauzaman.calendricsystem.granularitylattice.GranularityLattice.SPElement
Enclosing class:
GranularityLattice

private class GranularityLattice.SPElement
extends java.lang.Object

SPElement class is a private inner class to GranularityLattice. This class encapsulates a shortest path estimation and a predecessor object. This is used to combine the two pieces of information needed from a shortest path algorithm.

See Also:
GranularityLattice, GranularityLattice.LatticeNode
Status:
implementation complete

Field Summary
 java.lang.Integer estimate
          An estimation of the cost from the shortest path source to the node that owns this shortest path information.
 java.lang.Object predecessor
          The predecessor of the node that owns this shortest path information.
 
Constructor Summary
GranularityLattice.SPElement(java.lang.Integer estimate, java.lang.Object predecessor)
          Constructs a shortest path element.
 
Method Summary
 java.lang.String toString()
          Returns a string representation of this shortest path element.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

estimate

public java.lang.Integer estimate
An estimation of the cost from the shortest path source to the node that owns this shortest path information.


predecessor

public java.lang.Object predecessor
The predecessor of the node that owns this shortest path information.

Constructor Detail

GranularityLattice.SPElement

public GranularityLattice.SPElement(java.lang.Integer estimate,
                                    java.lang.Object predecessor)
Constructs a shortest path element.

Parameters:
estimate - the estimation of the cost from the shortest path source to the node that owns this shortest path information
predecessor - the predecessor of the node that owns this shortest path information
Method Detail

toString

public java.lang.String toString()
Returns a string representation of this shortest path element.

Overrides:
toString in class java.lang.Object

tauZaman
v0.1

Submit a bug or feature

tauZaman is an open-source, publicly avaliable project