org.gscg.gameactors.statistics
Interface RegionInterface

All Superinterfaces:
java.io.Serializable
All Known Implementing Classes:
Region

public interface RegionInterface
extends java.io.Serializable

The RegionInterface is used by regions. It requires that each region implementing this interface allows another object to add an actor to the region.

(c) copyright 2005 Delft University of Technology , the Netherlands.
See for project information www.simulation.tudelft.nl
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 are proprietary information of Delft University of Technology.

Since:
1.1.3
Version:
$Revision: 1.1 $ $Date: 2005/08/03 08:52:49 $
Author:
Stijn-Pieter van Houten

Method Summary
 void addStatisticHandler(java.lang.Class contentClass, nl.tudelft.simulation.content.HandlerInterface handler)
          adds a statistic handler to a region
 boolean addSupplyChainActor(nl.tudelft.simulation.supplychain.actor.SupplyChainActor actor)
          adds a supply chain actor to a region
 java.lang.String getName()
           
 java.util.List getStatisticHandlers()
           
 

Method Detail

addSupplyChainActor

public boolean addSupplyChainActor(nl.tudelft.simulation.supplychain.actor.SupplyChainActor actor)
adds a supply chain actor to a region

Parameters:
actor - the actor to add
Returns:
returns false if the actor is not contained by the region, or is already

addStatisticHandler

public void addStatisticHandler(java.lang.Class contentClass,
                                nl.tudelft.simulation.content.HandlerInterface handler)
adds a statistic handler to a region

Parameters:
contentClass - the class of the content to get statistics for
handler - the handler to process the content and compose statistics

getName

public java.lang.String getName()
Returns:
returns the name of the region

getStatisticHandlers

public java.util.List getStatisticHandlers()
Returns:
returns the list with statistic handlers


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