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 Details

  • Constructor Details

    • Selection

      public 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.
    • Selection

      public 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

    • getOwnSelection

      public java.util.stream.Stream<PropagatedInformation> getOwnSelection()
      Obtains the list of selected information pieces created by the user
      Returns:
      the list of selected information pieces created by the user.
    • getPropagateSelection

      public java.util.stream.Stream<PropagatedInformation> getPropagateSelection()
      Obtains the list of selected information pieces received by the user
      Returns:
      the list of selected information pieces received by the user.
    • getRepropagateSelection

      public java.util.stream.Stream<PropagatedInformation> getRepropagateSelection()
      Obtains the list of selected information pieces to repropagate.
      Returns:
      the list of selected information pieces to repropagate.
    • numPropagated

      public int numPropagated()
      The total number of pieces of information to be propagated/repropagated.
      Returns:
      the number of pieces of information to be propagated/repropagated
    • getAll

      public java.util.stream.Stream<PropagatedInformation> getAll()
      Returns the concatenated information of all lists.
      Returns:
      an stream containing all the selected pieces to propagate/repropagate.