org.gscg.experiment
Class Markets

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

public final class Markets
extends java.lang.Object

Markets contains all the markets 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.3 $ $Date: 2005/08/09 15:43:40 $
Author:
Stijn-Pieter van Houten

Constructor Summary
protected Markets()
          constructs a new Markets
 
Method Summary
static boolean addMarket(GameMarket market)
          Method addMarket adds a market to the collection of markets to be used.
static GameMarket getMarket(java.lang.String name)
          Method getMarket returns a PCMarket
static GameMarket[] getMarketsArray()
          Method getMarketsArray returns an array of the distributors.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Markets

protected Markets()
constructs a new Markets

Method Detail

addMarket

public static boolean addMarket(GameMarket market)
Method addMarket adds a market to the collection of markets to be used.

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

getMarket

public static GameMarket getMarket(java.lang.String name)
Method getMarket returns a PCMarket

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

getMarketsArray

public static GameMarket[] getMarketsArray()
Method getMarketsArray returns an array of the distributors.

Returns:
returns an array with distributors


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