Class AllNotDiscardedNorPropagatedSightMechanism<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.AllNotDiscardedNorPropagatedSightMechanism<U,I,P>
- Type Parameters:
U
- type of the users.I
- type of the information pieces.P
- type of the parameters.
- All Implemented Interfaces:
SightMechanism<U,I,P>
public class AllNotDiscardedNorPropagatedSightMechanism<U extends java.io.Serializable,I extends java.io.Serializable,P> extends IndividualSightMechanism<U,I,P>
This mechanism sees all the pieces of information who have not been previously discarded nor propagated.
-
Constructor Summary
Constructors Constructor Description AllNotDiscardedNorPropagatedSightMechanism()
-
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
-
AllNotDiscardedNorPropagatedSightMechanism
public AllNotDiscardedNorPropagatedSightMechanism()
-
-
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.
-