org.gscg.experiment
Class Suppliers

java.lang.Object
  extended byorg.gscg.experiment.Suppliers

public final class Suppliers
extends java.lang.Object

Suppliers contains all the suppliers to be used in the game.

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.

Since:
1.0.0
Version:
$Revision: 1.1 $ $Date: 2005/08/09 15:43:40 $
Author:
Stijn-Pieter van Houten

Constructor Summary
protected Suppliers()
          constructs a new Suppliers
 
Method Summary
static boolean addSupplier(nl.tudelft.simulation.supplychain.reference.Supplier supplier)
          Method addSupplier adds a supplier to the collection of suppliers to be used.
static GameSupplier getSupplier(java.lang.String name)
          Method getSupplier returns a GameSupplier
static GameSupplier[] getSuppliersArray()
          Method getSuppliersArray returns an array of the suppliers.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Suppliers

protected Suppliers()
constructs a new Suppliers

Method Detail

addSupplier

public static boolean addSupplier(nl.tudelft.simulation.supplychain.reference.Supplier supplier)
Method addSupplier adds a supplier to the collection of suppliers to be used.

Parameters:
supplier - the supplier to add
Returns:
returns false if the product could not be added

getSupplier

public static GameSupplier getSupplier(java.lang.String name)
Method getSupplier returns a GameSupplier

Parameters:
name - the name of the manufacturer to get
Returns:
returns null if the manufacturer could not be found

getSuppliersArray

public static GameSupplier[] getSuppliersArray()
Method getSuppliersArray returns an array of the suppliers.

Returns:
returns an array with suppliers


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