public class NeedEvent extends Event
associatedSimulationContainer
Constructor and Description |
---|
NeedEvent(double scheduledForTime,
ConsumerAgent consumerAgentConcerned,
Need need,
SimulationContainer simulationContainer)
Event that associates a need with a consumer agent that will be fulfilled at the specified time of the simulation
taking place in the specified container
|
Modifier and Type | Method and Description |
---|---|
ConsumerAgent |
getConsumerAgentConcerned() |
Need |
getNeed() |
void |
processEvent(double systemTime)
Processing a need event results is compiling a list of relevant products for the decision and selecting the decision process used for product adoption.
|
compareTo, getScheduledForTime
getAssociatedSimulationContainer
public NeedEvent(double scheduledForTime, ConsumerAgent consumerAgentConcerned, Need need, SimulationContainer simulationContainer) throws java.lang.IllegalArgumentException
scheduledForTime
- Scheduled time of the execution of the eventconsumerAgentConcerned
- Consumer agent developing the need to be satisfied through this eventneed
- Need that is to be satisfied through processing this need eventsimulationContainer
- Container in which this simulation takes placejava.lang.IllegalArgumentException
- Will be thrown if the consumer agent is not part of the simulation or the need is already satisfiedpublic Need getNeed()
public ConsumerAgent getConsumerAgentConcerned()
public void processEvent(double systemTime) throws java.lang.IllegalStateException, java.lang.IllegalArgumentException
processEvent
in class Event
systemTime
- The current time of the system for executionjava.lang.IllegalStateException
java.lang.IllegalArgumentException