Class Protocol<U extends java.io.Serializable,I extends java.io.Serializable,F>
java.lang.Object
es.uam.eps.ir.relison.diffusion.protocols.Protocol<U,I,F>
- Type Parameters:
U
- type of the users.I
- type of the information pieces.F
- type of the user and information pieces features.
- Direct Known Subclasses:
BidirectionalRumorSpreadingModelProtocol
,CountThresholdModelProtocol
,CustomProtocol
,IndependentCascadeModelProtocol
,ProportionThresholdModelProtocol
,PullModelProtocol
,PushModelProtocol
,RumorSpreadingModelProtocol
,SimpleProtocol
,TemporalProtocol
public abstract class Protocol<U extends java.io.Serializable,I extends java.io.Serializable,F>
extends java.lang.Object
Information propagation protocol.
-
Field Summary
Fields Modifier and Type Field Description private ExpirationMechanism<U,I,F>
expiration
Mechanism for discarding information pieces over time.private PropagationMechanism<U,I,F>
prop
Mechanism for selecting the users we want to propagate the information.private SelectionMechanism<U,I,F>
selection
Mechanism for selecting the information the user propagates.private SightMechanism<U,I,F>
sight
Mechanism for selecting which information users actually seeprivate UpdateMechanism
update
Mechanism for updating the list of information to propagate. -
Constructor Summary
Constructors Constructor Description Protocol(SelectionMechanism<U,I,F> selection, ExpirationMechanism<U,I,F> expiration, UpdateMechanism update, PropagationMechanism<U,I,F> prop, SightMechanism<U,I,F> sight)
Constructor. -
Method Summary
Modifier and Type Method Description ExpirationMechanism<U,I,F>
getExpiration()
Obtains the expiration mechanism.PropagationMechanism<U,I,F>
getProp()
Obtains the propagation mechanism.SelectionMechanism<U,I,F>
getSelection()
Obtains the selection mechanism.SightMechanism<U,I,F>
getSight()
Obtains the sight mechanism.UpdateMechanism
getUpdate()
Obtains the update mechanism.
-
Field Details
-
selection
private final SelectionMechanism<U extends java.io.Serializable,I extends java.io.Serializable,F> selectionMechanism for selecting the information the user propagates. -
expiration
private final ExpirationMechanism<U extends java.io.Serializable,I extends java.io.Serializable,F> expirationMechanism for discarding information pieces over time. -
update
Mechanism for updating the list of information to propagate. -
prop
private final PropagationMechanism<U extends java.io.Serializable,I extends java.io.Serializable,F> propMechanism for selecting the users we want to propagate the information. -
sight
private final SightMechanism<U extends java.io.Serializable,I extends java.io.Serializable,F> sightMechanism for selecting which information users actually see
-
-
Constructor Details
-
Protocol
public Protocol(SelectionMechanism<U,I,F> selection, ExpirationMechanism<U,I,F> expiration, UpdateMechanism update, PropagationMechanism<U,I,F> prop, SightMechanism<U,I,F> sight)Constructor.- Parameters:
selection
- mechanism for selecting the information the user propagates.expiration
- mechanism for discarding information pieces over time.update
- mechanism for updating the list of information to propagate.prop
- mechanism for selecting the users towards whom propagate the information.sight
- mechanism for selecting the information pieces that a user sees.
-
-
Method Details
-
getSelection
Obtains the selection mechanism.- Returns:
- the selection mechanism.
-
getExpiration
Obtains the expiration mechanism.- Returns:
- the expiration mechanism.
-
getUpdate
Obtains the update mechanism.- Returns:
- the update mechanism.
-
getProp
Obtains the propagation mechanism.- Returns:
- the propagation mechanism.
-
getSight
Obtains the sight mechanism.- Returns:
- the sight mechanism.
-