public class ConsumerConsumerProductAttributePerceptionManipulationMessage extends Message
Constructor and Description |
---|
ConsumerConsumerProductAttributePerceptionManipulationMessage(ConsumerAgent sender,
ConsumerAgent receiver,
ProductAttribute productAttributeConcerned,
Product productConcerned,
double edgeWeightConsumerEdge)
A ConsumerConsumerProductAttributePerceptionManipulationMessage is a message
from the sending agent to the receiving agent about communicating their
perception of the productAttributeConcerned of the productConcerned,
with the strength of the message effect depending on the edgeWeightConsumerEdge
at the time of message creation.
|
Modifier and Type | Method and Description |
---|---|
double |
getEdgeWeightConsumerEdge() |
ProductAttribute |
getProductAttributeConcerned() |
Product |
getProductConcerned() |
void |
processMessage(double systemTime)
Processing this message leads to making the receiver of the message aware of the product
(if they are not already) and to add the perception of the sending agent at the current time
with the strength of the connection between the two agents
|
getReceiver, getSender
public ConsumerConsumerProductAttributePerceptionManipulationMessage(ConsumerAgent sender, ConsumerAgent receiver, ProductAttribute productAttributeConcerned, Product productConcerned, double edgeWeightConsumerEdge)
sender
- The agent sending the respective messagereceiver
- The agent receiving the messageproductAttributeConcerned
- The productAttribute the message is aboutproductConcerned
- The product the message communicates aboutedgeWeightConsumerEdge
- The strength of the connection between the sender and the receiverpublic 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