public class ConsumerConsumerPerceptionManipulationMessage extends Message
Constructor and Description |
---|
ConsumerConsumerPerceptionManipulationMessage(ConsumerAgent sender,
ConsumerAgent receiver,
ProductAttribute productAttributeConcerned,
Product productConcerned,
double edgeWeightConsumerEdge)
A ConsumerConsumerPerceptionManipulationMessage changes (manipulates) the perception
of a ProductAttribute of a receiving consumer by the perception
of it by the sending consumer, with the strength of the message given by the edgeWeightConsumerEdge.
|
Modifier and Type | Method and Description |
---|---|
double |
getEdgeWeightConsumerEdge() |
ProductAttribute |
getProductAttributeConcerned() |
Product |
getProductConcerned() |
void |
processMessage(double systemTime)
The effect of the message is that a perception of a ProductAttribute is added to the the
perception of the receiving agent.
|
getReceiver, getSender
public ConsumerConsumerPerceptionManipulationMessage(ConsumerAgent sender, ConsumerAgent receiver, ProductAttribute productAttributeConcerned, Product productConcerned, double edgeWeightConsumerEdge)
sender
- The ConsumerAgent sending the messagereceiver
- The ConsumerAgent receiving the messageproductAttributeConcerned
- The ProductAttribute the message is aboutproductConcerned
- The product the product attribute belongs toedgeWeightConsumerEdge
- The strength of the transmitted perceptionpublic ProductAttribute getProductAttributeConcerned()
public double getEdgeWeightConsumerEdge()
public Product getProductConcerned()
public void processMessage(double systemTime)
processMessage
in class Message
systemTime
- The time at which the message is processed / evaluated