public class TrueValueProductAttributePerception extends java.lang.Object implements ProductAttributePerceptionScheme
Constructor and Description |
---|
TrueValueProductAttributePerception(ProductAttribute associatedProductAttribute)
The TrueValueProductAttributePerception is associated with a product attribute whose value it uses
for 'calculating' the 'perception' by using its value.
|
Modifier and Type | Method and Description |
---|---|
double |
calculateProductAttributePerception(double systemTime)
'calculates' the product perception at system time (returns the true value of the product attribute)
|
ProductAttribute |
getAssociatedProductAttribute() |
void |
modifyValue(double productAttributeValuePerception,
double informationWeight,
double timestamp)
Since the perception of a product attribute with this scheme shouldn't change
without the attribute value changing, this method just ignores all perceptions.
|
public TrueValueProductAttributePerception(ProductAttribute associatedProductAttribute)
associatedProductAttribute
- The product attribute associated with this perception schemepublic ProductAttribute getAssociatedProductAttribute()
public double calculateProductAttributePerception(double systemTime)
calculateProductAttributePerception
in interface ProductAttributePerceptionScheme
systemTime
- the time point the productAttributePerception is to be calculated for (ignored for this scheme)public void modifyValue(double productAttributeValuePerception, double informationWeight, double timestamp)
modifyValue
in interface ProductAttributePerceptionScheme
productAttributeValuePerception
- The relevant productAttributeValuePerception. It's semantics depend on the implementation, but it's generally intended to be a 'new' perception based on the environment of the actorinformationWeight
- Value on how strongly the new information is taken into accounttimestamp
- The simulation time the product attribute value perception is to take place