public class AdoptedProduct
extends java.lang.Object
Constructor and Description |
---|
AdoptedProduct(Product correspondingProduct,
ConsumerAgent adopter,
double adoptionTime,
double productLifetime)
The correspondingProduct is adopted by the productAdopter at adoptionTime for productLifetime.
|
Modifier and Type | Method and Description |
---|---|
double |
getAdoptionTime() |
Product |
getCorrespondingProduct() |
ConsumerAgent |
getProductAdopter() |
double |
getProductLifetime() |
double |
productExpirationDate() |
boolean |
productExpired(double systemTime) |
public AdoptedProduct(Product correspondingProduct, ConsumerAgent adopter, double adoptionTime, double productLifetime)
correspondingProduct
- The product being adoptedadopter
- The ConsumerAgent adopting the productadoptionTime
- The time the product is adopted atproductLifetime
- The time the product is adopted before it can't fulfill the need anymorepublic boolean productExpired(double systemTime)
public double productExpirationDate()
public Product getCorrespondingProduct()
public ConsumerAgent getProductAdopter()
public double getAdoptionTime()
public double getProductLifetime()