nl.tudelft.simulation.supplychain.content
Class YellowPageAnswer

java.lang.Object
  extended bynl.tudelft.simulation.supplychain.content.Content
      extended bynl.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

Field Summary
 
Fields inherited from class nl.tudelft.simulation.supplychain.content.Content
internalDemandID
 
Constructor Summary
YellowPageAnswer(SupplyChainActor sender, SupplyChainActor receiver, java.io.Serializable internalDemandID, SupplyChainActor[] suppliers, YellowPageRequest ypRequest)
          Constructs a new YellowPageAnswer.
 
Method Summary
 Product getProduct()
          Initially a null product is returned.
 SupplyChainActor[] getSuppliers()
           
 YellowPageRequest getYellowPageRequest()
           
 java.lang.String toString()
           
 
Methods inherited from class nl.tudelft.simulation.supplychain.content.Content
getCreationTime, getInternalDemandID, getReceiver, getSender, getUniqueID
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

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 answer
receiver - the receiver of the yellow page answer
internalDemandID - the internal demand that triggered the yellow page process
suppliers - the suppliers of the requested product
ypRequest - the request that triggered this YP answer
Method Detail

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.