public class MemoryLessProductAttributePerceptionScheme extends java.lang.Object implements ProductAttributePerceptionScheme
Constructor and Description |
---|
MemoryLessProductAttributePerceptionScheme(ProductAttribute associatedProductAttribute,
double initialPerception)
The perception of this scheme is initialized with the ProductAttribute it is to describe
and the perception it starts out with.
|
Modifier and Type | Method and Description |
---|---|
double |
calculateProductAttributePerception(double systemTime)
Since the perception described through this scheme is implemented by a single value,
ignoring the history of perceptions of the agent,
the calculation of the value is trivial (and is just that value).
|
ProductAttribute |
getAssociatedProductAttribute() |
void |
modifyValue(double productAttributeValuePerception,
double informationWeight,
double timestamp)
Since in this scheme, no history is taken into account, the modification of the perception
consists through replacing the old perception described through this scheme with the new perception,
irrespective of the information weight and the time of the new perception.
|
public MemoryLessProductAttributePerceptionScheme(ProductAttribute associatedProductAttribute, double initialPerception)
associatedProductAttribute
- The PA associated with this schemeinitialPerception
- The perception of the respective agent at the beginning of the simulationpublic double calculateProductAttributePerception(double systemTime)
calculateProductAttributePerception
in interface ProductAttributePerceptionScheme
systemTime
- the time point the productAttributePerception is to be calculated forpublic ProductAttribute getAssociatedProductAttribute()
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 envionment 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