public class DominatingExtractor
extends java.lang.Object
Constructor and Description |
---|
DominatingExtractor()
Constructs a DominatingExtractor without an associated network.
|
DominatingExtractor(Network network)
Constructs a DominatingExtractor with an associated network and already calculates the metric from scratch.
|
Modifier and Type | Method and Description |
---|---|
double |
getDominatorPercentage()
Returns the current anti-dominating metric associated with the network state.
|
Network |
getNetwork()
Returns the network associated with this extractor.
|
void |
incrementalUpdate(java.util.ArrayList<Link> nonCommittalDeleted,
java.util.ArrayList<Link> nonCommitalAdded)
Calculates and sets the anti-dominating metric in an incremental way given lists of links added and deleted.
|
void |
revert()
Reverts back to the current state of the network associated with this extractor.
|
void |
setNetwork(Network network)
Sets the network associated with this extractor.
|
void |
update()
Calculates the anti-dominating metric from scratch for the currently associated network
|
public DominatingExtractor()
public DominatingExtractor(Network network)
network
- the associated networkpublic double getDominatorPercentage()
public Network getNetwork()
public void setNetwork(Network network)
network
- the network which should be associated with this extractorpublic void update()
public void incrementalUpdate(java.util.ArrayList<Link> nonCommittalDeleted, java.util.ArrayList<Link> nonCommitalAdded)
nonCommittalDeleted
- a list of links deleted from the current networknonCommitalAdded
- a list of links added to the networkpublic void revert()