nl.tudelft.simulation.supplychain.content
Class YellowPageAnswer
java.lang.Object
nl.tudelft.simulation.supplychain.content.Content
nl.tudelft.simulation.supplychain.content.YellowPageAnswer
- All Implemented Interfaces:
- java.io.Serializable
- public class YellowPageAnswer
- extends Content
The YellowPageAnswer is the answer from a Yellow Page actor to a
YellowPageRequest. It contains a list of actors that might sell a product or
service that was asked for in the YellowPageRequest.
Copyright (c) 2003-2005 Delft University of Technology, Jaffalaan 5, 2628 BX
Delft, the Netherlands. All rights reserved.
See for project information
www.simulation.tudelft.nl .
The source code and binary code of this software is proprietary information
of Delft University of Technology.
- Version:
- $$Revision: 1.3 $$ $$Date: 2005/04/08 12:00:56 $$
- Author:
- Alexander
Verbraeck
- See Also:
- Serialized Form
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
YellowPageAnswer
public YellowPageAnswer(SupplyChainActor sender,
SupplyChainActor receiver,
java.io.Serializable internalDemandID,
SupplyChainActor[] suppliers,
YellowPageRequest ypRequest)
- Constructs a new YellowPageAnswer.
- Parameters:
sender - the sender of the yellow page answerreceiver - the receiver of the yellow page answerinternalDemandID - the internal demand that triggered the yellow
page processsuppliers - the suppliers of the requested productypRequest - the request that triggered this YP answer
getSuppliers
public SupplyChainActor[] getSuppliers()
- Returns:
- Returns the suppliers.
getYellowPageRequest
public YellowPageRequest getYellowPageRequest()
- Returns:
- Returns the request for which this is the answer.
getProduct
public Product getProduct()
- Description copied from class:
Content
- Initially a null product is returned.
- Overrides:
getProduct in class Content
- Returns:
- Returns the product.
- See Also:
Content.getProduct()
toString
public java.lang.String toString()
- Overrides:
toString in class Content
- See Also:
Object.toString()
Copyright © 2002-2005 Delft University of Technology, the Netherlands. All Rights Reserved.