|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.gscg.gameactors.statistics.Region
A region is used to specify the geographical bounds. For the actors part of an region statistics are collected, in this case statistics with regards to orders. Regions may overlap eachother. Using lat/lon coordinates, a rough estimation of the North-American region is new Region(new Point(-125, 49), new Point(-68, 23)).
(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.
Constructor Summary | |
Region(java.lang.String name,
java.awt.Point upperLeft,
java.awt.Point downRight)
constructs a new Region |
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()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Region(java.lang.String name, java.awt.Point upperLeft, java.awt.Point downRight)
name
- the name of the regionupperLeft
- the upper left of the regiondownRight
- the down right of the regionMethod Detail |
public void addStatisticHandler(java.lang.Class contentClass, nl.tudelft.simulation.content.HandlerInterface handler)
RegionInterface
addStatisticHandler
in interface RegionInterface
contentClass
- the class of the content to get statistics forhandler
- the handler to process the content and compose statisticsRegionInterface.addStatisticHandler(java.lang.Class,
nl.tudelft.simulation.content.HandlerInterface)
public boolean addSupplyChainActor(nl.tudelft.simulation.supplychain.actor.SupplyChainActor actor)
RegionInterface
addSupplyChainActor
in interface RegionInterface
actor
- the actor to add
RegionInterface.addSupplyChainActor(nl.tudelft.simulation.supplychain.actor.SupplyChainActor)
public java.lang.String getName()
getName
in interface RegionInterface
public java.util.List getStatisticHandlers()
getStatisticHandlers
in interface RegionInterface
RegionInterface.getStatisticHandlers()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |