|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
Class Manager for link objects. Since links are entirely determined by their classID and the nodes at each end, matching and searching methods are concerned with moving from a node or WtdObjSet of nodes at one end of the link to the WtdObjSet of nodes at the other end.
ClassManager,
NodeClassManager,
LinkDesc,
WtdObjSet| Fields inherited from class edu.vt.marian.search.ClassManager |
ALREADY_EXISTS,
NO_SUCH_OBJECT |
| Method Summary | |
double |
avgSinkDegree()
Return the average number of links in this class that impinge on a sinknode currently (== numLinks / numSinks). |
double |
avgSourceDegree()
Return the average number of links in this class that impinge on a source node currently (== numLinks / numSources). |
WtdObjSet |
keyNodeToTargetSet(edu.vt.marian.common.WtdObj key,
int dir)
Take a single node on one end of this link to all the nodes at the other end. |
WtdObjSet |
keySetToTargetSet(WtdObjSet keySet,
int dir)
Take a weighted object set of nodes on one end of the links in this class to all the nodes at the other end. |
WtdObjSet |
match(edu.vt.marian.common.LinkDesc description)
Create (or find in the local cache) a set of matches to description. |
long |
numLinks()
Return the number of class instances currently in the factory. |
long |
numSinks()
Return the number of unique sink nodes currently in the factory. |
long |
numSources()
Return the number of unique source nodes currently in the factory. |
WtdObjSet |
sinksToSources(WtdObjSet sinkSet)
Syntactic sugar on keySetToTargetSet(). |
WtdObjSet |
sinkToSources(edu.vt.marian.common.WtdObj sinkNode)
Syntactic sugar on keyNodeToTargetSet(). |
WtdObjSet |
sourcesToSinks(WtdObjSet sourceSet)
Syntactic sugar on keySetToTargetSet(). |
WtdObjSet |
sourceToSinks(edu.vt.marian.common.WtdObj sourceNode)
Syntactic sugar on keyNodeToTargetSet(). |
| Methods inherited from interface edu.vt.marian.search.ClassManager |
classSize |
| Method Detail |
public WtdObjSet match(edu.vt.marian.common.LinkDesc description)
description - An abstract description of the links
we're looking for: specifically, the
link class (presumably this.classID),
the direction, and a description of what
is on one end.
public WtdObjSet keyNodeToTargetSet(edu.vt.marian.common.WtdObj key,
int dir)
key - The node as a WtdObj.dir - Whether key functions as source or sink.
public WtdObjSet keySetToTargetSet(WtdObjSet keySet,
int dir)
NOTE: Where two nodes in keySet are both linked to the same "target" node, some function must be applied to compute the node's weight in the combined set. The default for links is max(), but any implementing LinkClassManager class may use any function that suits its semantics.
key - the node as a WtdObj.dir - Whether key functions as source or sink.public WtdObjSet sourceToSinks(edu.vt.marian.common.WtdObj sourceNode)
public WtdObjSet sourcesToSinks(WtdObjSet sourceSet)
public WtdObjSet sinkToSources(edu.vt.marian.common.WtdObj sinkNode)
public WtdObjSet sinksToSources(WtdObjSet sinkSet)
public long numLinks()
public long numSources()
public long numSinks()
public double avgSourceDegree()
public double avgSinkDegree()
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||