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

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

public class Customer
extends java.lang.Object
implements BuyerInterface

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

Version:
1.0 Dec 8, 2003
Author:
Peter Jacobs

Constructor Summary
Customer(nl.tudelft.simulation.dsol.simulators.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(nl.tudelft.simulation.dsol.simulators.DEVSSimulatorInterface simulator,
                SellerInterface retailer)
         throws java.rmi.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:
java.rmi.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-2004 Delft University of Technology, the Netherlands. All Rights Reserved.