public class PredictionModifierOpt extends java.lang.Object implements NetworkModifier
Constructor and Description |
---|
PredictionModifierOpt(NetworkFileBackedWrapper wrapper,
int modifyEachTurn,
int moveEachTurn)
Constructs a new PredictionModifierOpt
|
Modifier and Type | Method and Description |
---|---|
void |
commit()
Implements the commit method of this interface.
|
PartitionFitnessFunction |
getFitnessFunction() |
java.util.HashSet<Link> |
getModified() |
int |
getModifyEachTurn() |
int |
getMoveEachTurn() |
Network |
getNetwork()
Return the current network/ranking the modifier is working on
|
boolean |
isCommited() |
boolean |
isModded() |
boolean |
isReverted() |
void |
modify()
Implements the modify action of the interface.
|
void |
revert()
Implements the revert action of the interface.
|
void |
setCommited(boolean commited) |
void |
setFitnessIncrementFunction(PartitionFitnessFunction fitnessIncrementFunction) |
void |
setModded(boolean modded) |
void |
setModified(java.util.HashSet<Link> modified) |
void |
setModifyEachTurn(int modifyEachTurn) |
void |
setMoveEachTurn(int moveEachTurn) |
void |
setNetwork(Network network) |
void |
setReverted(boolean reverted) |
public PredictionModifierOpt(NetworkFileBackedWrapper wrapper, int modifyEachTurn, int moveEachTurn)
wrapper
- ranking object to be re-ranked, with amodifyEachTurn
- maximum amount of links that can be mofidiedmoveEachTurn
- maximum amount of positions a link can move up or downpublic void modify()
modify
in interface NetworkModifier
public void revert()
revert
in interface NetworkModifier
public void commit()
commit
in interface NetworkModifier
public Network getNetwork()
NetworkModifier
getNetwork
in interface NetworkModifier
public void setNetwork(Network network)
public boolean isReverted()
public void setReverted(boolean reverted)
public PartitionFitnessFunction getFitnessFunction()
public void setFitnessIncrementFunction(PartitionFitnessFunction fitnessIncrementFunction)
public boolean isModded()
public void setModded(boolean modded)
public boolean isCommited()
public void setCommited(boolean commited)
public java.util.HashSet<Link> getModified()
public void setModified(java.util.HashSet<Link> modified)
public int getModifyEachTurn()
public void setModifyEachTurn(int modifyEachTurn)
public int getMoveEachTurn()
public void setMoveEachTurn(int moveEachTurn)