Interface SightMechanism<U extends java.io.Serializable,I extends java.io.Serializable,P>
- Type Parameters:
U
- type of the users.I
- type of the information pieces.P
- type of the parameters.
- All Known Implementing Classes:
AllNotDiscardedNorPropagatedSightMechanism
,AllNotDiscardedSightMechanism
,AllNotPropagatedSightMechanism
,AllRecommendedSightMechanism
,AllSightMechanism
,AllTrainSightMechanism
,CountSightMechanism
,IndividualSightMechanism
,RecommendedSightMechanism
public interface SightMechanism<U extends java.io.Serializable,I extends java.io.Serializable,P>
Mechanism that decides which of the information pieces that a user has received are actually seen (payed attention to)
by each of the users in the network.
-
Method Summary
Modifier and Type Method Description void
resetSelections(Data<U,I,P> data)
For each user, this method preconfigures the sight mechanism (for example, selecting a fixed set of users whom each user pays attention to).java.util.List<PropagatedInformation>
seesInformation(UserState<U> user, Data<U,I,P> data, java.util.List<PropagatedInformation> prop)
Given a list of propagated information, it identifies which pieces the user has seen.
-
Method Details
-
resetSelections
For each user, this method preconfigures the sight mechanism (for example, selecting a fixed set of users whom each user pays attention to).- Parameters:
data
- the simulation data.
-
seesInformation
java.util.List<PropagatedInformation> seesInformation(UserState<U> user, Data<U,I,P> data, java.util.List<PropagatedInformation> prop)Given a list of propagated information, it identifies which pieces the user has seen.- Parameters:
user
- the current state of the user.data
- the simulation data.prop
- the list of propagated information.- Returns:
- a list containing all the information that the user pays attention to from the list of received pieces.
-