tauZaman
v0.1

tauzaman.calendricsystem.granularitylattice
Class GranularityLattice.LatticeEdge

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

private class GranularityLattice.LatticeEdge
extends java.lang.Object

LatticeEdge class is a private inner class to GranularityLattice. This class encapsulates a reference to a node to which an edge connects as well as mapping between the node (granularity) whose edge this is and the node (granularity) that is given.

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

Field Summary
static int INDUCED_WEIGHT
           
static int IRREGULAR_WEIGHT
           
 Mapping mapping
          The mapping that is a label of this edge and can be used to convert from the owning granularity (LatticeNode) to the granularity of the node to which this edge connects.
 GranularityLattice.LatticeNode node
          The node to which this edge connects (the node from which this edge connects will be the node that has this edge in its list of edges).
static int REGULAR_WEIGHT
           
private  int weight
          The weight of this edge.
 
Constructor Summary
GranularityLattice.LatticeEdge(GranularityLattice.LatticeNode n, Mapping m)
          Construct a LatticeEdge given a "to" node and a mapping.
GranularityLattice.LatticeEdge(GranularityLattice.LatticeNode n, Mapping m, int w)
          Construct a LatticeEdge.
 
Method Summary
 java.lang.String toString()
          Returns a string representation of the lattice edge.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

INDUCED_WEIGHT

public static final int INDUCED_WEIGHT
See Also:
Constant Field Values

IRREGULAR_WEIGHT

public static final int IRREGULAR_WEIGHT
See Also:
Constant Field Values

REGULAR_WEIGHT

public static final int REGULAR_WEIGHT
See Also:
Constant Field Values

node

public GranularityLattice.LatticeNode node
The node to which this edge connects (the node from which this edge connects will be the node that has this edge in its list of edges).


mapping

public Mapping mapping
The mapping that is a label of this edge and can be used to convert from the owning granularity (LatticeNode) to the granularity of the node to which this edge connects.


weight

private int weight
The weight of this edge.

Constructor Detail

GranularityLattice.LatticeEdge

public GranularityLattice.LatticeEdge(GranularityLattice.LatticeNode n,
                                      Mapping m)
Construct a LatticeEdge given a "to" node and a mapping.

Parameters:
n - the node to which the edge connects
m - the label which is the mapping between the owning node and the given node

GranularityLattice.LatticeEdge

public GranularityLattice.LatticeEdge(GranularityLattice.LatticeNode n,
                                      Mapping m,
                                      int w)
Construct a LatticeEdge.

Parameters:
n - the node to which the edge connects
m - the label which is the mapping between the owning node and the given node
w - the weight of the edge
Method Detail

toString

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

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

tauZaman
v0.1

Submit a bug or feature

tauZaman is an open-source, publicly avaliable project