|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectnl.tudelft.simulation.event.EventProducer
org.gscg.common.interactionlayer.ThreadedEventProducer
org.gscg.singleuser.interactionlayer.ManufacturerSingleUserInteractionLayer
The ManufacturerSingleUserInteractionLayer takes care of the communication between the simulation server side and a client side application for a manufacturer.
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 java.util.Map |
idMap
the static list of ids in this game for identification mapping |
| Fields inherited from class org.gscg.common.interactionlayer.ThreadedEventProducer |
DIJKSTRASEMAPHORE |
| 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 | |
ManufacturerSingleUserInteractionLayer(nl.tudelft.simulation.dsol.simulators.SimulatorInterface simulator,
java.lang.String id,
nl.tudelft.simulation.supplychain.actor.SupplyChainActor owner,
GameGlobalData globalSupplyChainData)
constructs a new DistributorSingleUserInteractionLayer |
|
| Method Summary | |
void |
addEventType(nl.tudelft.simulation.event.EventType eventType)
Method addEventType Before an event is fired by the interaction layer, a check is performed whether the interaction layer should fire the event. |
void |
addEventTypeSentByClient(nl.tudelft.simulation.event.EventType eventType)
Method addEventTypeSentByClient. |
void |
addEventTypeToAnnounceList(nl.tudelft.simulation.event.EventType eventType,
AnnounceInterface announceObject)
Method addEventTypeToAnnounceList. |
void |
addStatisticEventType(nl.tudelft.simulation.event.EventType eventType)
Method addStatisticEventType adds an event to a set with event types only used for statistical updates. |
void |
fireAllNumberData()
Method fireAllNumberData. |
void |
getCache(java.lang.Object remoteEventProducer,
nl.tudelft.simulation.event.EventType eventType,
boolean cache)
this method is used by a remote client to indicate that it is 'online' the server side object is then able to subscribe to client side events and to send cached data |
void |
getContentList(java.lang.Class contentClass,
boolean sent,
java.lang.String productName)
Method getContentList. |
GameGlobalData |
getGlobalSupplyChainData()
|
nl.tudelft.simulation.supplychain.actor.SupplyChainActor |
getOwner()
|
nl.tudelft.simulation.dsol.simulators.SimulatorInterface |
getSimulator()
|
nl.tudelft.simulation.event.EventType[] |
getStatisticEventTypes()
|
RFQDataSuppliers |
getSuppliers(java.lang.String productName)
Method getSuppliers returns the suppliers for the specified product name. |
int |
getTotalNumberOfDays()
|
boolean |
login(nl.tudelft.simulation.event.remote.RemoteEventListenerInterface client)
|
void |
notify(nl.tudelft.simulation.event.EventInterface event)
|
void |
notifyAnnounced(nl.tudelft.simulation.event.EventInterface event)
Method notifyAnnounced. |
void |
publicFireEvent(nl.tudelft.simulation.event.EventInterface event)
Method publicFireEvent. |
boolean |
removeListener(nl.tudelft.simulation.event.EventListenerInterface listener,
nl.tudelft.simulation.event.EventType eventType)
|
| Methods inherited from class org.gscg.common.interactionlayer.ThreadedEventProducer |
fireEvent |
| 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, getEventTypes, removeAllListeners, removeAllListeners |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface nl.tudelft.simulation.event.EventProducerInterface |
addListener, addListener, addListener, addListener, getEventTypes |
| Field Detail |
protected static java.util.Map idMap
| Constructor Detail |
public ManufacturerSingleUserInteractionLayer(nl.tudelft.simulation.dsol.simulators.SimulatorInterface simulator,
java.lang.String id,
nl.tudelft.simulation.supplychain.actor.SupplyChainActor owner,
GameGlobalData globalSupplyChainData)
simulator - the simulatorid - the id of the single user interaction layerowner - the owner of the interaction layerglobalSupplyChainData - the global supply chain data| Method Detail |
public void addEventType(nl.tudelft.simulation.event.EventType eventType)
SingleUserInteractionLayerInterface
addEventType in interface SingleUserInteractionLayerInterfaceeventType - the event type to addSingleUserInteractionLayerInterface.addEventType(nl.tudelft.simulation.event.EventType)public void addEventTypeSentByClient(nl.tudelft.simulation.event.EventType eventType)
GlobalInteractionLayerInterface
addEventTypeSentByClient in interface GlobalInteractionLayerInterfaceeventType - the event type to addGlobalInteractionLayerInterface.addEventTypeSentByClient(nl.tudelft.simulation.event.EventType)
public void addEventTypeToAnnounceList(nl.tudelft.simulation.event.EventType eventType,
AnnounceInterface announceObject)
GlobalInteractionLayerInterface
addEventTypeToAnnounceList in interface GlobalInteractionLayerInterfaceeventType - the event typeannounceObject - the object to announceGlobalInteractionLayerInterface.addEventTypeToAnnounceList(nl.tudelft.simulation.event.EventType,
org.gscg.common.interactionlayer.AnnounceInterface)public void addStatisticEventType(nl.tudelft.simulation.event.EventType eventType)
SingleUserInteractionLayerInterface
addStatisticEventType in interface SingleUserInteractionLayerInterfaceeventType - the event type to addSingleUserInteractionLayerInterface.addStatisticEventType(nl.tudelft.simulation.event.EventType)
public void getCache(java.lang.Object remoteEventProducer,
nl.tudelft.simulation.event.EventType eventType,
boolean cache)
throws java.rmi.RemoteException
GlobalInteractionLayerInterface
getCache in interface GlobalInteractionLayerInterfaceremoteEventProducer - the remote event producer or the remote event listener, may
be nulleventType - the event type given as an argument for the announce
method, may not be nullcache - true if this method is called during initialization of a
client user interface; false in case of announcing for a statistic
java.rmi.RemoteException - thrown in case of a network errorGlobalInteractionLayerInterface.getCache(java.lang.Object,
nl.tudelft.simulation.event.EventType, boolean)
public void notify(nl.tudelft.simulation.event.EventInterface event)
throws java.rmi.RemoteException
notify in interface nl.tudelft.simulation.event.EventListenerInterfacejava.rmi.RemoteExceptionEventListenerInterface.notify(nl.tudelft.simulation.event.EventInterface)public void notifyAnnounced(nl.tudelft.simulation.event.EventInterface event)
SingleUserInteractionLayerInterface
notifyAnnounced in interface SingleUserInteractionLayerInterfaceevent - the event for the announce methodSingleUserInteractionLayerInterface.notifyAnnounced(nl.tudelft.simulation.event.EventInterface)
public boolean login(nl.tudelft.simulation.event.remote.RemoteEventListenerInterface client)
throws java.rmi.RemoteException
login in interface GlobalInteractionLayerInterfaceclient - The client to login
java.rmi.RemoteException - thrown in case of network failureGlobalInteractionLayerInterface.login(nl.tudelft.simulation.event.remote.RemoteEventListenerInterface)public void publicFireEvent(nl.tudelft.simulation.event.EventInterface event)
event - the event to firepublic void fireAllNumberData()
public boolean removeListener(nl.tudelft.simulation.event.EventListenerInterface listener,
nl.tudelft.simulation.event.EventType eventType)
removeListener in interface nl.tudelft.simulation.event.EventProducerInterfaceEventProducerInterface.removeListener(nl.tudelft.simulation.event.EventListenerInterface,
nl.tudelft.simulation.event.EventType)
public void getContentList(java.lang.Class contentClass,
boolean sent,
java.lang.String productName)
throws java.rmi.RemoteException
RemoteInteractionLayerInterface
getContentList in interface RemoteInteractionLayerInterfacecontentClass - the class reflecting the contentsent - indicates whether the sent or received messages should be
returned as an asynchronous eventproductName - the name of the product for which to get the list
java.rmi.RemoteException - thrown in case of a network errorRemoteInteractionLayerInterface.getContentList(java.lang.Class,
boolean, java.lang.String)public GameGlobalData getGlobalSupplyChainData()
getGlobalSupplyChainData in interface SingleUserInteractionLayerInterfaceSingleUserInteractionLayerInterface.getGlobalSupplyChainData()public nl.tudelft.simulation.event.EventType[] getStatisticEventTypes()
getStatisticEventTypes in interface GlobalInteractionLayerInterfaceGlobalInteractionLayerInterface.getStatisticEventTypes()
public RFQDataSuppliers getSuppliers(java.lang.String productName)
throws java.rmi.RemoteException
RemoteInteractionLayerInterface
getSuppliers in interface RemoteInteractionLayerInterfaceproductName - the product to get the 'empty' RFQ data for
java.rmi.RemoteException - thrown in case of a network errorRemoteInteractionLayerInterface.getSuppliers(java.lang.String)
public int getTotalNumberOfDays()
throws java.rmi.RemoteException
getTotalNumberOfDays in interface GlobalInteractionLayerInterfacejava.rmi.RemoteException - thrown in case of network failureGlobalInteractionLayerInterface.getTotalNumberOfDays()public nl.tudelft.simulation.supplychain.actor.SupplyChainActor getOwner()
getOwner in interface SingleUserInteractionLayerInterfaceSingleUserInteractionLayerInterface.getOwner()public nl.tudelft.simulation.dsol.simulators.SimulatorInterface getSimulator()
getSimulator in interface SingleUserInteractionLayerInterfaceSingleUserInteractionLayerInterface.getSimulator()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||