org.gscg.game
Class GameGlobalData

java.lang.Object
  extended byorg.gscg.game.GameGlobalData
All Implemented Interfaces:
java.io.Serializable

public class GameGlobalData
extends java.lang.Object
implements java.io.Serializable

The GameGlobalData contains all the data of the game, e.g. the products and actors. Furthermore it takes care of providing game-wide statistics.
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/03 08:52:49 $
Author:
Alexander Verbraeck
See Also:
Serialized Form

Field Summary
static java.lang.String CONTEXT_NAME
          the name of this object in the context
 
Constructor Summary
GameGlobalData(nl.tudelft.simulation.dsol.simulators.SimulatorInterface simulator)
          constructs a new GlobalSupplyChainData
 
Method Summary
 void addProduct(nl.tudelft.simulation.supplychain.product.Product product)
           
 void addSupplyChainActor(nl.tudelft.simulation.supplychain.actor.SupplyChainActor actor, java.lang.String actorType, boolean interactive)
           
 nl.tudelft.simulation.supplychain.product.Product getProduct(java.lang.String name)
           
 java.util.Collection getProducts()
           
 nl.tudelft.simulation.supplychain.actor.SupplyChainActor getSupplyChainActor(java.lang.String name)
           
 java.util.Collection getSupplyChainActors()
           
 YellowPage getYellowPage()
           
protected  void printBalanceSheet()
          Prints a balance sheet to the output stream
protected  void printTally()
          Prints a tally to the output stream
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CONTEXT_NAME

public static final java.lang.String CONTEXT_NAME
the name of this object in the context

See Also:
Constant Field Values
Constructor Detail

GameGlobalData

public GameGlobalData(nl.tudelft.simulation.dsol.simulators.SimulatorInterface simulator)
constructs a new GlobalSupplyChainData

Parameters:
simulator - the simulator to use
Method Detail

addProduct

public void addProduct(nl.tudelft.simulation.supplychain.product.Product product)
Parameters:
product - the product to add

getProduct

public nl.tudelft.simulation.supplychain.product.Product getProduct(java.lang.String name)
Parameters:
name - the name of the product to get
Returns:
returns the Product

getProducts

public java.util.Collection getProducts()
Returns:
returns a collection of Products

addSupplyChainActor

public void addSupplyChainActor(nl.tudelft.simulation.supplychain.actor.SupplyChainActor actor,
                                java.lang.String actorType,
                                boolean interactive)
Parameters:
actor - the actor to add
actorType - the type of the actor
interactive - indicates whether the actor is human controlled or not

getSupplyChainActor

public nl.tudelft.simulation.supplychain.actor.SupplyChainActor getSupplyChainActor(java.lang.String name)
Parameters:
name - the name of the actor to get
Returns:
returns a SupplyChain actor

getSupplyChainActors

public java.util.Collection getSupplyChainActors()
Returns:
returns a collection of SupplyChainActors

getYellowPage

public YellowPage getYellowPage()
Returns:
Returns the yellowPage.

printBalanceSheet

protected void printBalanceSheet()
Prints a balance sheet to the output stream


printTally

protected void printTally()
Prints a tally to the output stream



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