nl.tudelft.simulation.dsol.tutorial.section42
Class Customer

java.lang.Object
  extended by nl.tudelft.simulation.dsol.tutorial.section42.Customer
All Implemented Interfaces:
BuyerInterface

public class Customer
extends Object
implements BuyerInterface

A Customer
(c) copyright 2002-2005 Delft University of Technology , the Netherlands.
See for project information www.simulation.tudelft.nl
License of use: Lesser General Public License (LGPL) , no warranty.

Version:
1.0 Dec 8, 2003
Author:
Peter Jacobs

Constructor Summary
Customer(DEVSSimulatorInterface simulator, SellerInterface retailer)
          constructs a new Customer
 
Method Summary
 void receiveProduct(long amount)
          receive the ordered Product
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Customer

public Customer(DEVSSimulatorInterface simulator,
                SellerInterface retailer)
         throws RemoteException
constructs a new Customer

Parameters:
simulator - the simulator to schedule on
retailer - the retailer to buy at. In more advanced examples, we would look up this retailer at a yellow page.
Throws:
RemoteException - on network failure
Method Detail

receiveProduct

public void receiveProduct(long amount)
Description copied from interface: BuyerInterface
receive the ordered Product

Specified by:
receiveProduct in interface BuyerInterface
Parameters:
amount - the amount to receive
See Also:
#receiveProduct(long)


Copyright © 2002-2010 Delft University of Technology, the Netherlands. All Rights Reserved.