org.gscg.singleuser.handlers
Class CommittedOrderHandler

java.lang.Object
  extended bynl.tudelft.simulation.event.EventProducer
      extended byorg.gscg.singleuser.handlers.CommittedOrderHandler
All Implemented Interfaces:
AnnounceInterface, java.util.EventListener, nl.tudelft.simulation.event.EventListenerInterface, nl.tudelft.simulation.event.EventProducerInterface, java.io.Serializable

public class CommittedOrderHandler
extends nl.tudelft.simulation.event.EventProducer
implements nl.tudelft.simulation.event.EventListenerInterface, AnnounceInterface

Updates the number of orders based on the day in the interactive simulation. Whenever an order is committed to a customer the number is updated at the client side gui. This handler is used by the SALES PANEL of a client-side gui.

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.

Since:
1.0.0
Version:
$Revision: 1.3 $ $Date: 2005/08/09 15:43:41 $
Author:
Stijn-Pieter van Houten
See Also:
Serialized Form

Field Summary
static nl.tudelft.simulation.event.EventType EVENT_NUMBER_ORDERCOMMIT_SENT_DAY
          the event type for the amount of orders per product per day
static nl.tudelft.simulation.event.EventType EVENT_NUMBER_ORDERCOMMIT_SENT_MONTH
          the event type for the amount of orders per product per month
static nl.tudelft.simulation.event.EventType EVENT_NUMBER_ORDERCOMMIT_SENT_UPDATE
          the event type to update all the order commitments
static nl.tudelft.simulation.event.EventType EVENT_NUMBER_ORDERCOMMIT_SENT_WEEK
          the event type for the amount of orders per product per week
 
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
CommittedOrderHandler(SingleUserInteractionLayerInterface owner)
          constructs a new CommittedOrderHandler
 
Method Summary
 void announce(nl.tudelft.simulation.event.EventType eventType, boolean announce)
          Method announce.
 void notify(nl.tudelft.simulation.event.EventInterface event)
           
 
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

EVENT_NUMBER_ORDERCOMMIT_SENT_DAY

public static final nl.tudelft.simulation.event.EventType EVENT_NUMBER_ORDERCOMMIT_SENT_DAY
the event type for the amount of orders per product per day


EVENT_NUMBER_ORDERCOMMIT_SENT_WEEK

public static final nl.tudelft.simulation.event.EventType EVENT_NUMBER_ORDERCOMMIT_SENT_WEEK
the event type for the amount of orders per product per week


EVENT_NUMBER_ORDERCOMMIT_SENT_MONTH

public static final nl.tudelft.simulation.event.EventType EVENT_NUMBER_ORDERCOMMIT_SENT_MONTH
the event type for the amount of orders per product per month


EVENT_NUMBER_ORDERCOMMIT_SENT_UPDATE

public static final nl.tudelft.simulation.event.EventType EVENT_NUMBER_ORDERCOMMIT_SENT_UPDATE
the event type to update all the order commitments

Constructor Detail

CommittedOrderHandler

public CommittedOrderHandler(SingleUserInteractionLayerInterface owner)
constructs a new CommittedOrderHandler

Parameters:
owner - the owner
Method Detail

notify

public void notify(nl.tudelft.simulation.event.EventInterface event)
            throws java.rmi.RemoteException
Specified by:
notify in interface nl.tudelft.simulation.event.EventListenerInterface
Throws:
java.rmi.RemoteException
See Also:
EventListenerInterface.notify(nl.tudelft.simulation.event.EventInterface)

announce

public void announce(nl.tudelft.simulation.event.EventType eventType,
                     boolean announce)
Description copied from interface: AnnounceInterface
Method announce.

Specified by:
announce in interface AnnounceInterface
Parameters:
eventType - the eventType
announce - indicates whether this is an announce
See Also:
AnnounceInterface.announce(nl.tudelft.simulation.event.EventType, boolean)


Copyright © 2002-2005 Delft University of Technology, the Netherlands. All Rights Reserved.