|
|||||||||||
| 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
nl.tudelft.simulation.supplychain.reference.DistributionCenter
nl.tudelft.simulation.supplychain.reference.Manufacturer
org.gscg.gameactors.GameManufacturer
The GameManufacturer extends a Manufacturer 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[] |
suppliers
the suppliers where the GameManufacturer 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 | |
GameManufacturer(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 GameManufacturer; used when dragging and dropping an actor |
|
GameManufacturer(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,
GameGlobalData globalSupplyChainData,
nl.tudelft.simulation.supplychain.actor.Trader[] suppliers)
constructs a new GameManufacturer |
|
GameManufacturer(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,
GameGlobalData globalSupplyChainData,
nl.tudelft.simulation.supplychain.actor.Trader[] suppliers)
constructs a new GameManufacturer |
|
| 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()
Method init |
boolean |
isHumanControlled()
|
protected void |
removeAllContentHandlers()
removes all the content handlers |
void |
sendContent(nl.tudelft.simulation.supplychain.content.Content content,
double administrativeDelay)
|
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.Manufacturer |
addProductionService, getEndProducts, getRawMaterials |
| 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, 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[] suppliers
protected GameGlobalData globalSupplyChainData
protected CustomerStatistics customerStatistics
protected InteractiveQuoteHandler interactiveQuoteHandler
protected boolean humanControlled
protected boolean warmingUp
protected CalculateLatLonDistance latLonDistanceCalculator
| Constructor Detail |
public GameManufacturer(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 GameManufacturer(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,
GameGlobalData globalSupplyChainData,
nl.tudelft.simulation.supplychain.actor.Trader[] suppliers)
name - the namesimulator - the simulatorposition - the position on the maproles - the roles to implementbank - the bankproduct - the productamount - the amountglobalSupplyChainData - the global supply chain datasuppliers - the suppliers
public GameManufacturer(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,
GameGlobalData globalSupplyChainData,
nl.tudelft.simulation.supplychain.actor.Trader[] suppliers)
name - the namesimulator - the simulatorposition - the position on the maproles - the roles to implementbank - the bankinitialBankAccount - the initial bank accountproduct - the productamount - the amountglobalSupplyChainData - the global supply chain datasuppliers - the suppliers| Method Detail |
protected void init()
protected void addComputerControlledContentHandlers()
public void sendContent(nl.tudelft.simulation.supplychain.content.Content content,
double administrativeDelay)
SupplyChainActor.sendContent(nl.tudelft.simulation.supplychain.content.Content, double)public javax.media.j3d.Bounds getBounds()
getBounds in interface nl.tudelft.simulation.dsol.animation.LocatableInterfaceLocatableInterface.getBounds()public GameActorContentStore getGameContentStore()
GameInteractiveActorRoleInterface
getGameContentStore in interface GameInteractiveActorRoleInterfaceGameInteractiveActorRoleInterface.getGameContentStore()
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 java.lang.String getName()
getName in interface nl.tudelft.simulation.actor.ActorInterfaceActorInterface.getName()protected 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()
public void setInteractiveQuoteHandler(InteractiveQuoteHandler interactiveQuoteHandler)
interactiveQuoteHandler - the interactive quote handler to setprotected void removeAllContentHandlers()
protected void addDevices()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||