public class ProductDiscontinuationEvent extends ScriptedProductEvent
productConcernedassociatedSimulationContainer| Constructor and Description |
|---|
ProductDiscontinuationEvent(SimulationContainer simulationContainer,
Product productToBeDiscontinued,
double scheduledForTime)
A product discontinuation event removes a certain product from the simulation container at a scheduled time
|
| Modifier and Type | Method and Description |
|---|---|
void |
processEvent(double systemTime)
Processing a product discontinuation event results in the product being removed from the simulation container
|
getProductConcernedcompareTo, getScheduledForTimegetAssociatedSimulationContainerpublic ProductDiscontinuationEvent(SimulationContainer simulationContainer, Product productToBeDiscontinued, double scheduledForTime)
simulationContainer - The container of the simulation the product is to be removed fromproductToBeDiscontinued - The product that is to be removed from the simulationscheduledForTime - The simulation time the product is to be removedpublic void processEvent(double systemTime)
processEvent in class EventsystemTime - The current time of the system for execution