org.gscg.experiment
Class Distributors

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

public final class Distributors
extends java.lang.Object

Distributors contains all the distributors 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 Distributors()
          constructs a new Distributors
 
Method Summary
static boolean addDistributor(GameDistributor distributor)
          Method addDistributor adds a distributor to the collection of distributors to be used.
static GameDistributor getDistributor(java.lang.String name)
          Method getDistributor returns a GameDistributor
static GameDistributor[] getDistributorsArray()
          Method getDistributorsArray 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

Distributors

protected Distributors()
constructs a new Distributors

Method Detail

addDistributor

public static boolean addDistributor(GameDistributor distributor)
Method addDistributor adds a distributor to the collection of distributors to be used.

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

getDistributor

public static GameDistributor getDistributor(java.lang.String name)
Method getDistributor returns a GameDistributor

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

getDistributorsArray

public static GameDistributor[] getDistributorsArray()
Method getDistributorsArray returns an array of the distributors.

Returns:
returns an array with distributors


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