|
||||||||||
| 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
org.javanetworkanalyzer.data.VCentImpl
public class VCentImpl
Centrality vertex implementation.
| Field Summary | |
|---|---|
protected double |
dependency
Dependency of this node on any other vertex. |
protected long |
spCount
Number of shortest paths leading to this node starting from a certain source. |
| Constructor Summary | |
|---|---|
VCentImpl(Integer id)
Constructor: sets the id; sets the shortest paths count, dependency, betweenness and closeness to zero. |
|
| 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()
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()
Sets the shortest path count to one and the dependency to zero. |
void |
setSPCount(long newSPCount)
Resets the number of shortest paths leading to this node |
| 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 |
| Field Detail |
|---|
protected long spCount
protected double dependency
| Constructor Detail |
|---|
public VCentImpl(Integer id)
id - Node id| Method Detail |
|---|
public void reset()
VCent
reset in interface VCentpublic void setSource()
VCent
setSource in interface VCentpublic long getSPCount()
VCent
getSPCount in interface VCentpublic void accumulateSPCount(long additionalSPCount)
VCent
accumulateSPCount in interface VCentadditionalSPCount - Number of further shortest paths leading to this
nodepublic void setSPCount(long newSPCount)
VCent
setSPCount in interface VCentnewSPCount - New number shortest paths leading to this nodepublic double getDependency()
VCent
getDependency in interface VCentpublic void accumulateDependency(double additionalDependency)
VCent
accumulateDependency in interface VCentadditionalDependency - New dependency to be addedpublic double getBetweenness()
VCent
getBetweenness in interface VCentpublic void accumulateBetweenness(double additionalBetweenness)
VCent
accumulateBetweenness in interface VCentadditionalBetweenness - betweenness value from a run starting at
certain source nodepublic void setBetweenness(double betweenness)
VCent
setBetweenness in interface VCentbetweenness - The betweenness to set.public double getCloseness()
VCent
getCloseness in interface VCentpublic void setCloseness(double closeness)
VCent
setCloseness in interface VCentcloseness - The closeness to set.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||