|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectnl.tudelft.simulation.actor.Actor
nl.tudelft.simulation.supplychain.actor.SupplyChainActor
nl.tudelft.simulation.supplychain.actor.Trader
nl.tudelft.simulation.supplychain.reference.Retailer
org.gscg.gameactors.GameDistributor
The GameDistributor extends a Distributor from the supplychain project and
provides additional game-specific functionalities.
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.
| Field Summary | |
protected static org.jdom.input.SAXBuilder |
builder
builder the xerces parser with validation turned on |
protected CustomerStatistics |
customerStatistics
the customer statistisc for this player |
protected GameGlobalData |
globalSupplyChainData
the global supply chain game data |
protected boolean |
humanControlled
if true than we use any human intervention |
protected InteractiveQuoteHandler |
interactiveQuoteHandler
the special interactive quotehander |
protected CalculateLatLonDistance |
latLonDistanceCalculator
the lat lon distance calculator to use |
protected nl.tudelft.simulation.supplychain.actor.Trader[] |
manufacturer
the manufacturers where the GameDistributor buys |
protected boolean |
warmingUp
true for warming-up |
| Fields inherited from class nl.tudelft.simulation.supplychain.actor.Trader |
stock |
| Fields inherited from class nl.tudelft.simulation.supplychain.actor.SupplyChainActor |
bankAccount |
| Fields inherited from class nl.tudelft.simulation.actor.Actor |
contentHandlers, location, locationDescription, name, receivingDevices, sendingDevices, simulator |
| Constructor Summary | |
GameDistributor(java.lang.String name,
nl.tudelft.simulation.dsol.simulators.DEVSSimulatorInterface simulator,
javax.vecmath.Point3d position,
nl.tudelft.simulation.supplychain.banking.Bank bank)
constructs a new GameDistributor; used when dragging and dropping an actor |
|
GameDistributor(java.lang.String name,
nl.tudelft.simulation.dsol.simulators.DEVSSimulatorInterface simulator,
javax.vecmath.Point3d position,
nl.tudelft.simulation.supplychain.roles.Role[] roles,
nl.tudelft.simulation.supplychain.banking.Bank bank,
double initialBankAccount,
nl.tudelft.simulation.supplychain.product.Product[] product,
java.lang.Double[] amount,
nl.tudelft.simulation.supplychain.actor.Trader[] manufacturer,
GameGlobalData globalSupplyChainData)
Constructs a new GameDistributor |
|
GameDistributor(java.lang.String name,
nl.tudelft.simulation.dsol.simulators.DEVSSimulatorInterface simulator,
javax.vecmath.Point3d position,
nl.tudelft.simulation.supplychain.roles.Role[] roles,
nl.tudelft.simulation.supplychain.banking.Bank bank,
nl.tudelft.simulation.supplychain.product.Product[] product,
java.lang.Double[] amount,
nl.tudelft.simulation.supplychain.actor.Trader[] manufacturer,
GameGlobalData globalSupplyChainData)
constructs a new GameDistributor |
|
| Method Summary | |
protected void |
addComputerControlledContentHandlers()
adds computer-controlled interactive content handlers |
protected void |
addDevices()
|
double |
calculateDistance(nl.tudelft.simulation.supplychain.actor.SupplyChainActor actor)
|
void |
fireAllContentData(java.lang.Class contentClass,
boolean sent,
java.lang.String productName)
Method getContent returns all data objects of type contentClass |
void |
fireAllNumberData()
Method fireAllNumberData. |
protected GisActorAnimation |
getAnimation()
|
javax.media.j3d.Bounds |
getBounds()
|
GameActorContentStore |
getGameContentStore()
Method getGameContentStore |
RFQDataSuppliers |
getInitialRFQData(java.lang.String productName)
|
java.lang.String |
getName()
|
java.util.Map |
getProductNameToSuppliers()
|
nl.tudelft.simulation.language.d3.DirectedPoint |
getSmallMapLocation()
|
protected void |
init()
initializes the content handlers |
boolean |
isHumanControlled()
|
protected void |
removeAllContentHandlers()
removes all the content handlers |
void |
setInteractiveQuoteHandler(InteractiveQuoteHandler interactiveQuoteHandler)
sets the interactive quote handler |
void |
setSmallMapLocation(nl.tudelft.simulation.language.d3.DirectedPoint smallMapLocation)
|
| Methods inherited from class nl.tudelft.simulation.supplychain.reference.Retailer |
checkStock |
| Methods inherited from class nl.tudelft.simulation.supplychain.actor.Trader |
getProductsOnStock, getStock, setInitialStock |
| Methods inherited from class nl.tudelft.simulation.supplychain.actor.SupplyChainActor |
addFixedCost, addRole, getBankAccount, getContentStore, getDEVSSimulator, getFixedCosts, handleContent, removeRole, scheduledSendContent, scheduledSendContent, sendContent, setContentStore |
| Methods inherited from class nl.tudelft.simulation.actor.Actor |
addContentHandler, addReceivingDevice, addReceivingDevice, addSendingDevice, checkReceivingDevice, getLocation, getLocationDescription, getReceivingDevices, getReceivingDevices, getSendingDevices, getSendingDevices, getSimulator, getSimulatorTime, handleMessage, removeContentHandler, removeReceivingDevice, removeSendingDevice, resolveFastestDevice, setCheckInterval, setLocationDescription, toString |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface nl.tudelft.simulation.actor.ActorInterface |
getReceivingDevices, getReceivingDevices, getSendingDevices, getSendingDevices, getSimulator, getSimulatorTime, handleMessage |
| Methods inherited from interface nl.tudelft.simulation.dsol.animation.LocatableInterface |
getLocation |
| Methods inherited from interface nl.tudelft.simulation.content.HandlerInterface |
handleContent |
| Field Detail |
protected static org.jdom.input.SAXBuilder builder
protected nl.tudelft.simulation.supplychain.actor.Trader[] manufacturer
protected GameGlobalData globalSupplyChainData
protected CustomerStatistics customerStatistics
protected InteractiveQuoteHandler interactiveQuoteHandler
protected CalculateLatLonDistance latLonDistanceCalculator
protected boolean humanControlled
protected boolean warmingUp
| Constructor Detail |
public GameDistributor(java.lang.String name,
nl.tudelft.simulation.dsol.simulators.DEVSSimulatorInterface simulator,
javax.vecmath.Point3d position,
nl.tudelft.simulation.supplychain.banking.Bank bank)
name - the namesimulator - the simulatorposition - the positionbank - the bank
public GameDistributor(java.lang.String name,
nl.tudelft.simulation.dsol.simulators.DEVSSimulatorInterface simulator,
javax.vecmath.Point3d position,
nl.tudelft.simulation.supplychain.roles.Role[] roles,
nl.tudelft.simulation.supplychain.banking.Bank bank,
nl.tudelft.simulation.supplychain.product.Product[] product,
java.lang.Double[] amount,
nl.tudelft.simulation.supplychain.actor.Trader[] manufacturer,
GameGlobalData globalSupplyChainData)
name - the namesimulator - the simulatorposition - the positionroles - the roles to implementbank - the bankproduct - the productamount - the amountmanufacturer - the manufacturerglobalSupplyChainData - the global supply chain data
public GameDistributor(java.lang.String name,
nl.tudelft.simulation.dsol.simulators.DEVSSimulatorInterface simulator,
javax.vecmath.Point3d position,
nl.tudelft.simulation.supplychain.roles.Role[] roles,
nl.tudelft.simulation.supplychain.banking.Bank bank,
double initialBankAccount,
nl.tudelft.simulation.supplychain.product.Product[] product,
java.lang.Double[] amount,
nl.tudelft.simulation.supplychain.actor.Trader[] manufacturer,
GameGlobalData globalSupplyChainData)
name - the namesimulator - the simulatorposition - the positionroles - the roles to implementbank - the bankinitialBankAccount - the initial bank accountproduct - the productamount - the amountmanufacturer - the manufacturerglobalSupplyChainData - the global supply chain data| Method Detail |
protected void init()
protected void addComputerControlledContentHandlers()
protected void removeAllContentHandlers()
protected void addDevices()
public javax.media.j3d.Bounds getBounds()
getBounds in interface nl.tudelft.simulation.dsol.animation.LocatableInterfaceLocatableInterface.getBounds()
public void fireAllContentData(java.lang.Class contentClass,
boolean sent,
java.lang.String productName)
contentClass - the content class to look forsent - indicates whether the content is sent or receivedproductName - the name of the productpublic void fireAllNumberData()
public RFQDataSuppliers getInitialRFQData(java.lang.String productName)
productName - the product we want
public nl.tudelft.simulation.language.d3.DirectedPoint getSmallMapLocation()
getSmallMapLocation in interface GameActorInterfacepublic void setSmallMapLocation(nl.tudelft.simulation.language.d3.DirectedPoint smallMapLocation)
smallMapLocation - The smallMapLocation to set.public GameActorContentStore getGameContentStore()
GameInteractiveActorRoleInterface
getGameContentStore in interface GameInteractiveActorRoleInterfaceGameInteractiveActorRoleInterface.getGameContentStore()public java.lang.String getName()
getName in interface nl.tudelft.simulation.actor.ActorInterfaceActorInterface.getName()public void setInteractiveQuoteHandler(InteractiveQuoteHandler interactiveQuoteHandler)
interactiveQuoteHandler - the interactive quote handler to setprotected GisActorAnimation getAnimation()
public double calculateDistance(nl.tudelft.simulation.supplychain.actor.SupplyChainActor actor)
SupplyChainActor.calculateDistance(nl.tudelft.simulation.supplychain.actor.SupplyChainActor)public java.util.Map getProductNameToSuppliers()
public boolean isHumanControlled()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||