tauZaman
v0.1

tauzaman.calendricsystem.granularitylattice
Class GranularityLattice.LatticeNode

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

private class GranularityLattice.LatticeNode
extends java.lang.Object

LatticeNode class is a private inner class to GranularityLattice. This class encapsulates a node's granularity and its edges.

See Also:
GranularityLattice, GranularityLattice.LatticeEdge
Status:
being implementation complete

Field Summary
 java.util.Hashtable coarserEdges
          A hash between [destination granularity --> edge to dest. granularity].
 java.util.Hashtable congruentEdges
          A hash between [destination granularity --> edge to dest. granularity].
 java.util.Hashtable finerEdges
          A hash between [destination granularity --> edge to dest. granularity].
 Granularity granularity
          The granularity in the calendric system that the LatticeNode is representing.
 
Constructor Summary
GranularityLattice.LatticeNode(Granularity g)
          Construct a LatticeNode by setting the node's granularity to the given granularity.
GranularityLattice.LatticeNode(Granularity g, java.util.Hashtable cEdges, java.util.Hashtable cgntEdges, java.util.Hashtable fEdges)
          Construct a LatticeNode by setting the node's granularity to the given granularity and setting the node's edges to the given lists of edges.
 
Method Summary
 boolean equals(java.lang.Object o)
          Indicates whether some other object is "equal to" this one.
 java.lang.String toString()
          Returns a string representation of the lattice node.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

granularity

public Granularity granularity
The granularity in the calendric system that the LatticeNode is representing.


coarserEdges

public java.util.Hashtable coarserEdges
A hash between [destination granularity --> edge to dest. granularity]. Represents the edges that connects this lattice node to other nodes which represent coarser granularities in the lattice.


congruentEdges

public java.util.Hashtable congruentEdges
A hash between [destination granularity --> edge to dest. granularity]. Represents the edges that connects this lattice node to other nodes which represent congruent granularities in the lattice.


finerEdges

public java.util.Hashtable finerEdges
A hash between [destination granularity --> edge to dest. granularity]. Represents the edges that connects this lattice node to other nodes which represent finer granularities in the lattice.

Constructor Detail

GranularityLattice.LatticeNode

public GranularityLattice.LatticeNode(Granularity g)
Construct a LatticeNode by setting the node's granularity to the given granularity.

Parameters:
g - the granularity this node is to represent

GranularityLattice.LatticeNode

public GranularityLattice.LatticeNode(Granularity g,
                                      java.util.Hashtable cEdges,
                                      java.util.Hashtable cgntEdges,
                                      java.util.Hashtable fEdges)
Construct a LatticeNode by setting the node's granularity to the given granularity and setting the node's edges to the given lists of edges.

Parameters:
g - the granularity this node is to represent
cEdges - the list of edges that lead to granularities coarser than this one
cgntEdges - the list of edges that lead to granularities congruent to this one
fEdges - the list of edges that lead to granularities finer than this one
Method Detail

equals

public boolean equals(java.lang.Object o)
Indicates whether some other object is "equal to" this one.

Overrides:
equals in class java.lang.Object
Parameters:
o - the object with which to compare this one
Returns:
true<\code> if this object is the same as the obj argument; false<\code> otherwise

toString

public java.lang.String toString()
Returns a string representation of the lattice node.

Overrides:
toString in class java.lang.Object
Returns:
a String representation of the lattice node.

tauZaman
v0.1

Submit a bug or feature

tauZaman is an open-source, publicly avaliable project