public class POSAgent extends SpatialInformationAgent
associatedSimulationContainer| Constructor and Description |
|---|
POSAgent(SimulationContainer simulationContainer,
java.awt.geom.Point2D coordinates,
double informationAuthority,
java.util.Map<Product,java.lang.Boolean> productAvailability,
java.util.Map<Product,java.lang.Double> productPriceFactor)
Initializes a point-of-sales agent
|
| Modifier and Type | Method and Description |
|---|---|
double |
giveProductPrice(Product product) |
java.util.Set<Product> |
showAvailableProducts() |
getCoordinates, setCoordinatesgetAssociatedSimulationContainerpublic POSAgent(SimulationContainer simulationContainer, java.awt.geom.Point2D coordinates, double informationAuthority, java.util.Map<Product,java.lang.Boolean> productAvailability, java.util.Map<Product,java.lang.Double> productPriceFactor)
simulationContainer - The container of the simulation the POS agent shall be part ofcoordinates - The position the POSagent is initialized withinformationAuthority - The authority information stemming from this agent hasproductAvailability - A map describing which products are available at the POS agent at initialization timeproductPriceFactor - A map describing the (relative) price of the respective products