public class LinkProperties
extends java.lang.Object
Constructor and Description |
---|
LinkProperties(boolean trueLink,
int predictionRank)
Constructs a LinkProperties with a certain position in the ranking and indicates if this is a true positive link
|
Modifier and Type | Method and Description |
---|---|
void |
commit()
This method confirms the latest changes to this link and makes them permanent, such that a revert is no longer possible.
|
int |
getCurrentSet() |
int |
getLowerBoundSet() |
int |
getOriginalPredictionRank() |
int |
getPredictionRank() |
int |
getPreviousLowerBound() |
int |
getPreviousPredictionRank() |
int |
getPreviousSet() |
int |
getPreviousUpperBound() |
int |
getUpperBoundSet() |
boolean |
isTrueLink() |
void |
revert()
This method reverts the last changes made to this link and goes back to the previous state.
|
void |
setCurrentSet(int currentSet) |
void |
setLowerBoundSet(int lowerBoundSet) |
void |
setOriginalPredictionRank(int originalPredictionRank) |
void |
setPredictionRank(int predictionRank) |
void |
setPreviousLowerBound(int previousLowerBound) |
void |
setPreviousPredictionRank(int previousPredictionRank) |
void |
setPreviousSet(int previousSet) |
void |
setPreviousUpperBound(int previousUpperBound) |
void |
setTrueLink(boolean trueLink) |
void |
setUpperBoundSet(int upperBoundSet) |
public LinkProperties(boolean trueLink, int predictionRank)
trueLink
- if this a true positive linkpredictionRank
- the position in the rankingpublic void revert()
public void commit()
public int getPreviousUpperBound()
public void setPreviousUpperBound(int previousUpperBound)
public int getPreviousLowerBound()
public void setPreviousLowerBound(int previousLowerBound)
public int getPreviousSet()
public void setPreviousSet(int previousSet)
public int getUpperBoundSet()
public void setUpperBoundSet(int upperBoundSet)
public int getCurrentSet()
public void setCurrentSet(int currentSet)
public int getLowerBoundSet()
public void setLowerBoundSet(int lowerBoundSet)
public int getOriginalPredictionRank()
public void setOriginalPredictionRank(int originalPredictionRank)
public int getPreviousPredictionRank()
public void setPreviousPredictionRank(int previousPredictionRank)
public boolean isTrueLink()
public void setTrueLink(boolean trueLink)
public int getPredictionRank()
public void setPredictionRank(int predictionRank)