org.gscg.experiment
Class Products

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

public final class Products
extends java.lang.Object

Products contains all the products 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/06/16 12:34:00 $
Author:
Stijn-Pieter van Houten

Constructor Summary
protected Products()
          constructs a new Products
 
Method Summary
static boolean addProduct(nl.tudelft.simulation.supplychain.product.Product product)
          Method addProduct adds a product to the collection of produdcts to be used.
static nl.tudelft.simulation.supplychain.product.Product getProduct(java.lang.String name)
          Method getProduct returns a product based on its name
static nl.tudelft.simulation.supplychain.product.Product[] getProductsArray()
          Method getProductsArray returns an array of the products.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Products

protected Products()
constructs a new Products

Method Detail

addProduct

public static boolean addProduct(nl.tudelft.simulation.supplychain.product.Product product)
Method addProduct adds a product to the collection of produdcts to be used.

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

getProduct

public static nl.tudelft.simulation.supplychain.product.Product getProduct(java.lang.String name)
Method getProduct returns a product based on its name

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

getProductsArray

public static nl.tudelft.simulation.supplychain.product.Product[] getProductsArray()
Method getProductsArray returns an array of the products.

Returns:
returns an array with products


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