Interface UpdateMechanism
- All Known Implementing Classes:
MergerUpdateMechanism,NewestUpdateMechanism,OldestUpdateMechanism
public interface UpdateMechanism
Class for the update mechanism for the information in the corresponding lists.
-
Method Summary
Modifier and Type Method Description PropagatedInformationupdateDiscarded(PropagatedInformation oldInfo, PropagatedInformation newInfo)Updates a piece of information which was previously discarded.PropagatedInformationupdateSeen(PropagatedInformation oldInfo, PropagatedInformation newInfo)Updates a piece of information which has been newly seen.
-
Method Details
-
updateSeen
Updates a piece of information which has been newly seen.- Parameters:
oldInfo- piece of information with old info.newInfo- piece of information with new info.- Returns:
- the updated piece of information.
-
updateDiscarded
PropagatedInformation updateDiscarded(PropagatedInformation oldInfo, PropagatedInformation newInfo)Updates a piece of information which was previously discarded.- Parameters:
oldInfo- piece of information with the discarded info.newInfo- piece of information with the new info.- Returns:
- the updated piece of information.
-