public class NoAdoptionReplacementScheme extends AdoptionReplacementScheme
Constructor and Description |
---|
NoAdoptionReplacementScheme() |
Modifier and Type | Method and Description |
---|---|
void |
readopt(ConsumerAgent consumerAgentConcerned,
Product productConcerned,
double simulationTime)
This method describes how ConsumerAgents behave when they
readopt a product (or how they choose a similar product,
one that satisfies the needs).
|
void |
removeProductFromAgents(SimulationContainer simulationContainer,
Product productToRemove)
Method to describe what happens when a product gets 'removed' from the agents.
|
public void readopt(ConsumerAgent consumerAgentConcerned, Product productConcerned, double simulationTime)
AdoptionReplacementScheme
readopt
in class AdoptionReplacementScheme
consumerAgentConcerned
- The ConsumerAgent readoptingproductConcerned
- The Product being replaced, causing the readoptionsimulationTime
- The current time of the simulationpublic void removeProductFromAgents(SimulationContainer simulationContainer, Product productToRemove)
AdoptionReplacementScheme
removeProductFromAgents
in class AdoptionReplacementScheme
simulationContainer
- The container the simulation runs inproductToRemove
- The product that is being removed from the agent