Class Selection
java.lang.Object
es.uam.eps.ir.relison.diffusion.selections.Selection
public class Selection
extends java.lang.Object
Selection of information pieces to propagate.
- 
Field SummaryFields Modifier and Type Field Description (package private) intnumPropprivate java.util.List<PropagatedInformation>ownSelectionSelection of own information pieces to propagate.private java.util.List<PropagatedInformation>propagateSelectionSelection of received information pieces to propagateprivate java.util.List<PropagatedInformation>repropagateSelectionSelection of already propagated pieces to propagate.
- 
Constructor SummaryConstructors Constructor Description Selection(java.util.List<PropagatedInformation> ownSelection, java.util.List<PropagatedInformation> propagateSelection)Constructor.Selection(java.util.List<PropagatedInformation> ownSelection, java.util.List<PropagatedInformation> propagateSelection, java.util.List<PropagatedInformation> repropagateSelection)Constructor.
- 
Method SummaryModifier and Type Method Description java.util.stream.Stream<PropagatedInformation>getAll()Returns the concatenated information of all lists.java.util.stream.Stream<PropagatedInformation>getOwnSelection()Obtains the list of selected information pieces created by the userjava.util.stream.Stream<PropagatedInformation>getPropagateSelection()Obtains the list of selected information pieces received by the userjava.util.stream.Stream<PropagatedInformation>getRepropagateSelection()Obtains the list of selected information pieces to repropagate.intnumPropagated()The total number of pieces of information to be propagated/repropagated.
- 
Field Details- 
numPropint numProp
- 
ownSelectionSelection of own information pieces to propagate.
- 
propagateSelectionSelection of received information pieces to propagate
- 
repropagateSelectionSelection of already propagated pieces to propagate.
 
- 
- 
Constructor Details- 
Selectionpublic Selection(java.util.List<PropagatedInformation> ownSelection, java.util.List<PropagatedInformation> propagateSelection)Constructor.- Parameters:
- ownSelection- selection of own information pieces to propagate.
- propagateSelection- selection of received information pieces to propagate.
 
- 
Selectionpublic Selection(java.util.List<PropagatedInformation> ownSelection, java.util.List<PropagatedInformation> propagateSelection, java.util.List<PropagatedInformation> repropagateSelection)Constructor.- Parameters:
- ownSelection- selection of own information pieces to propagate.
- propagateSelection- selection of received information pieces to propagate.
- repropagateSelection- selection of already propagated pieces to repropagate.
 
 
- 
- 
Method Details- 
getOwnSelectionObtains the list of selected information pieces created by the user- Returns:
- the list of selected information pieces created by the user.
 
- 
getPropagateSelectionObtains the list of selected information pieces received by the user- Returns:
- the list of selected information pieces received by the user.
 
- 
getRepropagateSelectionObtains the list of selected information pieces to repropagate.- Returns:
- the list of selected information pieces to repropagate.
 
- 
numPropagatedpublic int numPropagated()The total number of pieces of information to be propagated/repropagated.- Returns:
- the number of pieces of information to be propagated/repropagated
 
- 
getAllReturns the concatenated information of all lists.- Returns:
- an stream containing all the selected pieces to propagate/repropagate.
 
 
-