public class DefaultNeedDevelopmentScheme extends NeedDevelopmentScheme
Constructor and Description |
---|
DefaultNeedDevelopmentScheme(java.util.Map<Need,java.lang.Double> needIndicatorMap) |
Modifier and Type | Method and Description |
---|---|
java.util.List<NeedEvent> |
createNeedEvents(SimulationContainer simulationContainer,
ConsumerAgent consumerAgent)
Creates all needs not yet covered by adopted products for the consumerAgent.
|
java.util.List<NeedEvent> |
productExpiration(Product expiredProduct,
ConsumerAgent associatedConsumer,
double systemTime)
Schedules the respective need events regarding needs unfulfilled through the expiration of
the expired product immediately
|
sortNeedIndicatorMapByValue, sortNeedsByNeedIndicatorValue
public DefaultNeedDevelopmentScheme(java.util.Map<Need,java.lang.Double> needIndicatorMap)
public java.util.List<NeedEvent> createNeedEvents(SimulationContainer simulationContainer, ConsumerAgent consumerAgent)
createNeedEvents
in class NeedDevelopmentScheme
simulationContainer
- The container the consumer agent is part ofconsumerAgent
- The consumerAgent whos needs are to be createdpublic java.util.List<NeedEvent> productExpiration(Product expiredProduct, ConsumerAgent associatedConsumer, double systemTime)
productExpiration
in class NeedDevelopmentScheme
expiredProduct
- The product that expiredassociatedConsumer
- The consumer that formerly adopted the productsystemTime
- The current time (time when the product expired