|
tauZaman v0.1 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--tauzaman.calendricsystem.granularitylattice.GranularityLattice.LatticeEdge
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.
GranularityLattice
,
GranularityLattice.LatticeNode
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 |
public static final int INDUCED_WEIGHT
public static final int IRREGULAR_WEIGHT
public static final int REGULAR_WEIGHT
public GranularityLattice.LatticeNode node
public Mapping mapping
LatticeNode
) to the
granularity of the node to which this edge connects.
private int weight
Constructor Detail |
public GranularityLattice.LatticeEdge(GranularityLattice.LatticeNode n, Mapping m)
LatticeEdge
given a "to" node and a mapping.
n
- the node to which the edge connectsm
- the label which is the mapping between the owning node and
the given nodepublic GranularityLattice.LatticeEdge(GranularityLattice.LatticeNode n, Mapping m, int w)
LatticeEdge
.
n
- the node to which the edge connectsm
- the label which is the mapping between the owning node and
the given nodew
- the weight of the edgeMethod Detail |
public java.lang.String toString()
toString
in class java.lang.Object
|
tauZaman v0.1 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |