|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.javanetworkanalyzer.data.VId
org.javanetworkanalyzer.data.VPredImpl<V,E>
org.javanetworkanalyzer.data.VDijkstra<VWCent,E>
org.javanetworkanalyzer.data.VWCent<E>
public class VWCent<E>
Weighted centrality vertex.
| Field Summary |
|---|
| Fields inherited from class org.javanetworkanalyzer.data.VDijkstra |
|---|
DEFAULT_DISTANCE |
| Constructor Summary | |
|---|---|
VWCent(Integer id)
Constructor: sets the id and initializes a local VCentImpl. |
|
| Method Summary | |
|---|---|
void |
accumulateBetweenness(double additionalBetweenness)
Accumulates the betweenness value in each run by adding the new betweenness value to the old |
void |
accumulateDependency(double additionalDependency)
Accumulates the dependency of this node |
void |
accumulateSPCount(long additionalSPCount)
Accumulates the number of shortest paths leading to this node |
double |
getBetweenness()
Gets the betweenness value for this node. |
double |
getCloseness()
Returns the closeness. |
double |
getDependency()
Gets the dependency of this node to any other vertex |
long |
getSPCount()
Gets the number of shortest paths to this node |
void |
reset()
Clears the predecessor list, resets the distance to the default value and resets the shortest path count and dependency to zero. |
void |
setBetweenness(double betweenness)
Sets the betweenness. |
void |
setCloseness(double closeness)
Sets the closeness. |
void |
setSource()
Clears the predecessor list, sets the distance and dependency to zero and the shortest path count to one. |
void |
setSPCount(long newSPCount)
Resets the number of shortest paths leading to this node |
| Methods inherited from class org.javanetworkanalyzer.data.VDijkstra |
|---|
getDistance, setDistance |
| Methods inherited from class org.javanetworkanalyzer.data.VPredImpl |
|---|
addPredecessor, addPredecessorEdge, clear, getPredecessorEdges, getPredecessors |
| Methods inherited from class org.javanetworkanalyzer.data.VId |
|---|
getID, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.javanetworkanalyzer.data.VCent |
|---|
getID, getPredecessors |
| Methods inherited from interface org.javanetworkanalyzer.data.VPred |
|---|
addPredecessor, addPredecessorEdge, clear, getPredecessorEdges |
| Constructor Detail |
|---|
public VWCent(Integer id)
VCentImpl.
id - Id| Method Detail |
|---|
public void reset()
reset in interface VCent<VWCent,E>reset in interface VDist<Double>reset in class VDijkstra<VWCent,E>public void setSource()
setSource in interface VCent<VWCent,E>setSource in interface VDist<Double>setSource in class VDijkstra<VWCent,E>public long getSPCount()
VCent
getSPCount in interface VCent<VWCent,E>public void accumulateSPCount(long additionalSPCount)
VCent
accumulateSPCount in interface VCent<VWCent,E>additionalSPCount - Number of further shortest paths leading to this
nodepublic void setSPCount(long newSPCount)
VCent
setSPCount in interface VCent<VWCent,E>newSPCount - New number shortest paths leading to this nodepublic double getDependency()
VCent
getDependency in interface VCent<VWCent,E>public void accumulateDependency(double additionalDependency)
VCent
accumulateDependency in interface VCent<VWCent,E>additionalDependency - New dependency to be addedpublic double getBetweenness()
VCent
getBetweenness in interface VCent<VWCent,E>public void accumulateBetweenness(double additionalBetweenness)
VCent
accumulateBetweenness in interface VCent<VWCent,E>additionalBetweenness - betweenness value from a run starting at
certain source nodepublic void setBetweenness(double betweenness)
VCent
setBetweenness in interface VCent<VWCent,E>betweenness - The betweenness to set.public double getCloseness()
VCent
getCloseness in interface VCent<VWCent,E>public void setCloseness(double closeness)
VCent
setCloseness in interface VCent<VWCent,E>closeness - The closeness to set.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||