public class BetterProductReadoptionScheme extends AdoptionReplacementScheme
Constructor and Description |
---|
BetterProductReadoptionScheme() |
Modifier and Type | Method and Description |
---|---|
void |
readopt(ConsumerAgent consumerAgentConcerned,
Product productConcerned,
double simulationTime)
Readopting a product means to find out all needs (now) unsatisfied
(all that could be satisfied by the product lost), and to schedule
a number of need events straight away for these needs.
|
void |
removeProductFromAgents(SimulationContainer simulationContainer,
Product productToBeRemoved)
Removing the product from the agents means that each agent forgets about the product.
|
public void readopt(ConsumerAgent consumerAgentConcerned, Product productConcerned, double simulationTime)
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 productToBeRemoved)
removeProductFromAgents
in class AdoptionReplacementScheme
simulationContainer
- The container the simulation runs inproductToBeRemoved
- The product that gets removed from the simulation