|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnl.tudelft.simulation.event.EventProducer
nl.tudelft.simulation.supplychain.content.ContentStore
nl.tudelft.simulation.supplychain.content.LeanContentStore
org.gscg.game.GameActorContentStore
The GameActorContentStore is taking care of storing content for display on
the client screen. It acts as a kind of primitive database system. In this
implementation, all the messages are linked to an InternalDemand, as this
sets off the whole chain of messages, no matter whether it is a purchase,
internal production, or stock replenishment: in all cases the InternalDemand
triggers all the other messages.
The ContentStore has a HashMap called internalDemandMap that maps the
internal demand's uniqueID onto the so-called contentClassMap. This map has
the Content's class as key, and maps that onto an ArrayList called
'contentList', which contains all the contents sent or received in order of
arrival or sending.
Messages that move to the following 'stage' are removed from the previous
'stage'. The class fires an event for each change that occurs. There is a
standard ContentNumberData class to indicate the new number.
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 | |
static nl.tudelft.simulation.event.EventType |
EVENT_ORDERCOMMIT_RECEIVED
the event for the order confirmation received |
static nl.tudelft.simulation.event.EventType |
EVENT_ORDERCOMMIT_SENT
the event for the order confirmation sent |
static nl.tudelft.simulation.event.EventType |
UPDATE_ALL_NUMBER_DATA_EVENT
the UPDATE_ALL_NUMBER_DATA_EVENT event |
Fields inherited from class nl.tudelft.simulation.supplychain.content.LeanContentStore |
simulator |
Fields inherited from class nl.tudelft.simulation.event.EventProducer |
listeners |
Fields inherited from interface nl.tudelft.simulation.event.EventProducerInterface |
FIRST_POSITION, LAST_POSITION |
Constructor Summary | |
GameActorContentStore(nl.tudelft.simulation.supplychain.actor.SupplyChainActor owner,
nl.tudelft.simulation.dsol.simulators.DEVSSimulatorInterface simulator)
Constructs a new GameActorContentStore |
Method Summary | |
void |
addContent(nl.tudelft.simulation.supplychain.content.Content content,
boolean sent)
Method addContent stores a new Content object into the store. |
void |
fireAllProductContentData(java.lang.Class contentClass,
boolean sent,
java.lang.String productName)
Method fireAllContentData. |
void |
fireAllProductNumberData(java.lang.String productName)
Method fireAllNumberData. |
java.util.List |
getAllProductContent(java.lang.Class contentClass,
boolean sent,
java.lang.String productName)
Method getAllProductContent returns the Content objects of type contentClass for a certain product |
java.util.List |
getAllProductContentData(java.lang.Class contentClass,
boolean sent,
java.lang.String productName)
Method getAllProductContentData returns the Content object of type contentClass for a certain product in the form of data objects |
void |
removeSentReceivedContent(nl.tudelft.simulation.supplychain.content.Content content,
boolean sent)
|
void |
setSingleUserInteractionlayer(SingleUserInteractionLayerInterface singleUserInteractionLayer)
|
Methods inherited from class nl.tudelft.simulation.supplychain.content.LeanContentStore |
internalDemandTimeout, orderBasedOnQuoteTimeout, orderStandAloneTimeout, quoteTimeout, removeContent, requestForQuoteTimeout |
Methods inherited from class nl.tudelft.simulation.supplychain.content.ContentStore |
foldExtendedContentClass, getContentList, getContentList, getOwner, removeAllContent, removeInternalDemand |
Methods inherited from class nl.tudelft.simulation.event.EventProducer |
addListener, addListener, addListener, addListener, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, getEventTypes, removeAllListeners, removeAllListeners, removeListener |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final nl.tudelft.simulation.event.EventType UPDATE_ALL_NUMBER_DATA_EVENT
public static final nl.tudelft.simulation.event.EventType EVENT_ORDERCOMMIT_RECEIVED
public static final nl.tudelft.simulation.event.EventType EVENT_ORDERCOMMIT_SENT
Constructor Detail |
public GameActorContentStore(nl.tudelft.simulation.supplychain.actor.SupplyChainActor owner, nl.tudelft.simulation.dsol.simulators.DEVSSimulatorInterface simulator)
owner
- the ownersimulator
- the simulatorMethod Detail |
public void setSingleUserInteractionlayer(SingleUserInteractionLayerInterface singleUserInteractionLayer)
singleUserInteractionLayer
- the interaction layerpublic void addContent(nl.tudelft.simulation.supplychain.content.Content content, boolean sent)
content
- the content to addsent
- indicates whether the content was sent or receivedpublic void removeSentReceivedContent(nl.tudelft.simulation.supplychain.content.Content content, boolean sent)
ContentStore.removeSentReceivedContent(nl.tudelft.simulation.supplychain.content.Content,
boolean)
public java.util.List getAllProductContentData(java.lang.Class contentClass, boolean sent, java.lang.String productName)
contentClass
- the content class to look forsent
- indicates whether the content was sent or receivedproductName
- the name of the product
public java.util.List getAllProductContent(java.lang.Class contentClass, boolean sent, java.lang.String productName)
contentClass
- the content class to look forsent
- indicates whether the content was sent or receivedproductName
- the name of the product
public void fireAllProductContentData(java.lang.Class contentClass, boolean sent, java.lang.String productName)
contentClass
- the content class to look forsent
- indicates whether the content was sent or receivedproductName
- the name of the productpublic void fireAllProductNumberData(java.lang.String productName)
productName
- the name of the product
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |