Class AllSightMechanism<U extends java.io.Serializable,I extends java.io.Serializable,P>
java.lang.Object
es.uam.eps.ir.relison.diffusion.sight.IndividualSightMechanism<U,I,P>
es.uam.eps.ir.relison.diffusion.sight.AllSightMechanism<U,I,P>
- Type Parameters:
U
- type of the usersI
- type of the information piecesP
- type of the parameters
- All Implemented Interfaces:
SightMechanism<U,I,P>
public class AllSightMechanism<U extends java.io.Serializable,I extends java.io.Serializable,P> extends IndividualSightMechanism<U,I,P>
Sight mechanism that selects every piece of information that has arrived to the user.
-
Constructor Summary
Constructors Constructor Description AllSightMechanism()
-
Method Summary
Modifier and Type Method Description boolean
seesInformation(UserState<U> user, Data<U,I,P> data, PropagatedInformation prop)
Checks if a user sees or not a piece of information.Methods inherited from class es.uam.eps.ir.relison.diffusion.sight.IndividualSightMechanism
resetSelections, seesInformation
-
Constructor Details
-
AllSightMechanism
public AllSightMechanism()
-
-
Method Details
-
seesInformation
Description copied from class:IndividualSightMechanism
Checks if a user sees or not a piece of information.- Specified by:
seesInformation
in classIndividualSightMechanism<U extends java.io.Serializable,I extends java.io.Serializable,P>
- Parameters:
user
- the user.data
- the full data.prop
- the information piece received by a user.- Returns:
- true if the user sees the piece, false if it does not.
-