public abstract class ProcessModel
extends java.lang.Object
Constructor and Description |
---|
ProcessModel(AdoptionReplacementScheme adoptionReplacementScheme) |
Modifier and Type | Method and Description |
---|---|
void |
checkForProductExpiration(SimulationContainer simulationContainer)
Helper method that checks if any consumer agent has a product adopted whose
expiration date past.
|
AdoptionReplacementScheme |
getAdoptionReplacementScheme() |
abstract void |
processCompanyAgents(java.util.Set<CompanyAgent> agentsToProcess,
SimulationContainer simulationContainer,
double simulationTime)
Method to describe the processes governing the behavior of CompanyAgents.
|
abstract void |
processConsumerAgents(java.util.Set<ConsumerAgent> consumerAgentsToProcess,
SimulationContainer simulationContainer,
double simulationTime)
Method to describe the processes governing the behavior of ConsumerAgents.
|
abstract void |
processPolicyAgent(SimulationContainer simulationContainer,
double simulationTime)
Method to describe the processes governing the behavior of the PolicyAgent of the simulation.
|
abstract void |
processPOSAgents(java.util.Set<POSAgent> pOSAgentsToProcess,
SimulationContainer simulationContainer,
double simulationTime)
Method to describe the processes governing the behavior of POSAgents.
|
void |
readoptAfterDiscontinuation(ConsumerAgent consumerAgentConcerned,
Product productConcerned,
double simulationTime)
Method to describe how consumer agents react after
a product they adopted is discontinued.
|
public ProcessModel(AdoptionReplacementScheme adoptionReplacementScheme)
public AdoptionReplacementScheme getAdoptionReplacementScheme()
public abstract void processConsumerAgents(java.util.Set<ConsumerAgent> consumerAgentsToProcess, SimulationContainer simulationContainer, double simulationTime)
consumerAgentsToProcess
- The consumer agents to processsimulationContainer
- The container the simulation runs insimulationTime
- The current system timepublic abstract void processCompanyAgents(java.util.Set<CompanyAgent> agentsToProcess, SimulationContainer simulationContainer, double simulationTime)
agentsToProcess
- The company agents to processsimulationContainer
- The container the simulation runs insimulationTime
- The current system timepublic abstract void processPolicyAgent(SimulationContainer simulationContainer, double simulationTime)
simulationContainer
- The container the simulation runs insimulationTime
- The current system timepublic abstract void processPOSAgents(java.util.Set<POSAgent> pOSAgentsToProcess, SimulationContainer simulationContainer, double simulationTime)
pOSAgentsToProcess
- The consumer agents to processsimulationContainer
- The container the simulation runs insimulationTime
- The current system timepublic void readoptAfterDiscontinuation(ConsumerAgent consumerAgentConcerned, Product productConcerned, double simulationTime)
consumerAgentConcerned
- The consumer agent that needs to readoptproductConcerned
- The product that is discontinuedsimulationTime
- The current simulation timepublic void checkForProductExpiration(SimulationContainer simulationContainer)
simulationContainer
- The container the simulation runs in