org.gscg.singleuser.interactionlayer.dataobjects
Class ContentNumberData

java.lang.Object
  extended byorg.gscg.singleuser.interactionlayer.dataobjects.ContentNumberData
All Implemented Interfaces:
java.io.Serializable

public class ContentNumberData
extends java.lang.Object
implements java.io.Serializable

This keeps track of the different numbers per message per product. As soon as some content is handled, it processes this and send the appropriate value for the class of the content to the client-side graphical user interface. The actual firing of the data towards the client is done by the GameActorContentStore.

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:42 $
Author:
Alexander Verbraeck
See Also:
GameActorContentStore, Serialized Form

Field Summary
static java.lang.String CONTENT_TYPE_BILL_RECEIVED
          the BILL_RECEIVED content
static java.lang.String CONTENT_TYPE_BILL_SENT
          the BILL_SENT content
static java.lang.String CONTENT_TYPE_INTERNALDEMAND_RECEIVED
          the INTERNALDEMAND_RECEIVED content
static java.lang.String CONTENT_TYPE_INTERNALDEMAND_SENT
          the INTERNALDEMAND_SENT content
static java.lang.String CONTENT_TYPE_ORDER_RECEIVED
          the ORDER_RECEIVED content
static java.lang.String CONTENT_TYPE_ORDER_SENT
          the ORDER_SENT content
static java.lang.String CONTENT_TYPE_ORDERCOMMIT_RECEIVED
          the ORDERCOMMIT_RECEIVED content
static java.lang.String CONTENT_TYPE_ORDERCOMMIT_SENT
          the ORDERCOMMIT_SENT content
static java.lang.String CONTENT_TYPE_PAYMENT_RECEIVED
          the PAYMENT_RECEIVED content
static java.lang.String CONTENT_TYPE_PAYMENT_SENT
          the PAYMENT_SENT content
static java.lang.String CONTENT_TYPE_PRODUCTION_ORDER_RECEIVED
          the PRODUCTION_ORDER_RECEIVED content
static java.lang.String CONTENT_TYPE_PRODUCTION_ORDER_SENT
          the PRODUCTION_ORDER_SENT content
static java.lang.String CONTENT_TYPE_QUOTE_RECEIVED
          the QUOTE_RECEIVED content
static java.lang.String CONTENT_TYPE_QUOTE_SENT
          the QUOTE_SENT content
static java.lang.String CONTENT_TYPE_RFQ_RECEIVED
          the RFQ_RECEIVED content
static java.lang.String CONTENT_TYPE_RFQ_SENT
          the RFQ_SENT content
static java.lang.String CONTENT_TYPE_SHIPMENT_RECEIVED
          the SHIPMENT_RECEIVED content
static java.lang.String CONTENT_TYPE_SHIPMENT_SENT
          the SHIPMENT_SENT content
static nl.tudelft.simulation.event.EventType EVENT_FULL_LIST_BILL_RECEIVED
          the BILL_RECEIVED event
static nl.tudelft.simulation.event.EventType EVENT_FULL_LIST_BILL_SENT
          the BILL_SENT event
static nl.tudelft.simulation.event.EventType EVENT_FULL_LIST_INTERNALDEMAND_RECEIVED
          the INTERNALDEMAND_RECEIVED event
static nl.tudelft.simulation.event.EventType EVENT_FULL_LIST_INTERNALDEMAND_SENT
          the INTERNALDEMAND_SENT event
static nl.tudelft.simulation.event.EventType EVENT_FULL_LIST_ORDER_RECEIVED
          the ORDER_RECEIVED event
static nl.tudelft.simulation.event.EventType EVENT_FULL_LIST_ORDER_SENT
          the ORDER_SENT event
static nl.tudelft.simulation.event.EventType EVENT_FULL_LIST_ORDERCOMMIT_RECEIVED
          the ORDERCOMMIT_RECEIVED event
static nl.tudelft.simulation.event.EventType EVENT_FULL_LIST_ORDERCOMMIT_SENT
          the ORDERCOMMIT_SENT event
static nl.tudelft.simulation.event.EventType EVENT_FULL_LIST_PAYMENT_RECEIVED
          the PAYMENT_RECEIVED event
static nl.tudelft.simulation.event.EventType EVENT_FULL_LIST_PAYMENT_SENT
          the PAYMENT_SENT event
static nl.tudelft.simulation.event.EventType EVENT_FULL_LIST_PRODUCTION_ORDER_RECEIVED
          the PRODUCTION_ORDER_RECEIVED event
static nl.tudelft.simulation.event.EventType EVENT_FULL_LIST_PRODUCTION_ORDER_SENT
          the PRODUCTION_ORDER_SENT event
static nl.tudelft.simulation.event.EventType EVENT_FULL_LIST_QUOTE_RECEIVED
          the QUOTE_RECEIVED event
static nl.tudelft.simulation.event.EventType EVENT_FULL_LIST_QUOTE_SENT
          the QUOTE_SENT event
static nl.tudelft.simulation.event.EventType EVENT_FULL_LIST_RFQ_RECEIVED
          the RFQ_RECEIVED event
static nl.tudelft.simulation.event.EventType EVENT_FULL_LIST_RFQ_SENT
          the RFQ_SENT event
static nl.tudelft.simulation.event.EventType EVENT_FULL_LIST_SHIPMENT_RECEIVED
          the SHIPMENT_RECEIVED event
static nl.tudelft.simulation.event.EventType EVENT_FULL_LIST_SHIPMENT_SENT
          the SHIPMENT_SENT event
static nl.tudelft.simulation.event.EventType EVENT_NUMBER_BILL_RECEIVED
          the BILL_RECEIVED event
static nl.tudelft.simulation.event.EventType EVENT_NUMBER_BILL_SENT
          the BILL_SENT event
static nl.tudelft.simulation.event.EventType EVENT_NUMBER_INTERNALDEMAND_RECEIVED
          the INTERNALDEMAND_RECEIVED event
static nl.tudelft.simulation.event.EventType EVENT_NUMBER_INTERNALDEMAND_SENT
          the INTERNALDEMAND_SENT event
static nl.tudelft.simulation.event.EventType EVENT_NUMBER_ORDER_RECEIVED
          the ORDER_RECEIVED event
static nl.tudelft.simulation.event.EventType EVENT_NUMBER_ORDER_SENT
          the ORDER_SENT event
static nl.tudelft.simulation.event.EventType EVENT_NUMBER_ORDERCOMMIT_RECEIVED
          the ORDERCOMMIT_RECEIVED event
static nl.tudelft.simulation.event.EventType EVENT_NUMBER_ORDERCOMMIT_SENT
          the ORDERCOMMIT_SENT event
static nl.tudelft.simulation.event.EventType EVENT_NUMBER_PAYMENT_RECEIVED
          the PAYMENT_RECEIVED event
static nl.tudelft.simulation.event.EventType EVENT_NUMBER_PAYMENT_SENT
          the PAYMENT_SENT event
static nl.tudelft.simulation.event.EventType EVENT_NUMBER_PRODUCTION_ORDER_RECEIVED
          the ORDER_PRODUCTION_RECEIVED event
static nl.tudelft.simulation.event.EventType EVENT_NUMBER_PRODUCTION_ORDER_SENT
          the ORDER_PRODUCTION_SENT event
static nl.tudelft.simulation.event.EventType EVENT_NUMBER_QUOTE_RECEIVED
          the QUOTE_RECEIVED event
static nl.tudelft.simulation.event.EventType EVENT_NUMBER_QUOTE_SENT
          the QUOTE_SENT event
static nl.tudelft.simulation.event.EventType EVENT_NUMBER_RFQ_RECEIVED
          the RFQ_RECEIVED event
static nl.tudelft.simulation.event.EventType EVENT_NUMBER_RFQ_SENT
          the RFQ_SENT event
static nl.tudelft.simulation.event.EventType EVENT_NUMBER_SHIPMENT_RECEIVED
          the SHIPMENT_RECEIVED event
static nl.tudelft.simulation.event.EventType EVENT_NUMBER_SHIPMENT_SENT
          the SHIPMENT_SENT event
 
Constructor Summary
ContentNumberData(java.lang.String productName, java.lang.Class contentClass, int number, boolean sent)
           
ContentNumberData(java.lang.String productName, nl.tudelft.simulation.supplychain.content.Content content, int number, boolean sent)
           
 
Method Summary
 java.lang.String getContentType()
           
 int getNumber()
           
 java.lang.String getProductName()
           
static java.lang.String resolveContentType(java.lang.Class contentClass, boolean sent)
           
static nl.tudelft.simulation.event.EventType resolveEventType(java.lang.Class contentClass, boolean sent)
           
static nl.tudelft.simulation.event.EventType resolveFullListEventType(java.lang.Class contentClass, boolean sent)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CONTENT_TYPE_INTERNALDEMAND_SENT

public static final java.lang.String CONTENT_TYPE_INTERNALDEMAND_SENT
the INTERNALDEMAND_SENT content

See Also:
Constant Field Values

EVENT_NUMBER_INTERNALDEMAND_SENT

public static final nl.tudelft.simulation.event.EventType EVENT_NUMBER_INTERNALDEMAND_SENT
the INTERNALDEMAND_SENT event


CONTENT_TYPE_INTERNALDEMAND_RECEIVED

public static final java.lang.String CONTENT_TYPE_INTERNALDEMAND_RECEIVED
the INTERNALDEMAND_RECEIVED content

See Also:
Constant Field Values

EVENT_NUMBER_INTERNALDEMAND_RECEIVED

public static final nl.tudelft.simulation.event.EventType EVENT_NUMBER_INTERNALDEMAND_RECEIVED
the INTERNALDEMAND_RECEIVED event


CONTENT_TYPE_RFQ_SENT

public static final java.lang.String CONTENT_TYPE_RFQ_SENT
the RFQ_SENT content

See Also:
Constant Field Values

EVENT_NUMBER_RFQ_SENT

public static final nl.tudelft.simulation.event.EventType EVENT_NUMBER_RFQ_SENT
the RFQ_SENT event


CONTENT_TYPE_RFQ_RECEIVED

public static final java.lang.String CONTENT_TYPE_RFQ_RECEIVED
the RFQ_RECEIVED content

See Also:
Constant Field Values

EVENT_NUMBER_RFQ_RECEIVED

public static final nl.tudelft.simulation.event.EventType EVENT_NUMBER_RFQ_RECEIVED
the RFQ_RECEIVED event


CONTENT_TYPE_QUOTE_SENT

public static final java.lang.String CONTENT_TYPE_QUOTE_SENT
the QUOTE_SENT content

See Also:
Constant Field Values

EVENT_NUMBER_QUOTE_SENT

public static final nl.tudelft.simulation.event.EventType EVENT_NUMBER_QUOTE_SENT
the QUOTE_SENT event


CONTENT_TYPE_QUOTE_RECEIVED

public static final java.lang.String CONTENT_TYPE_QUOTE_RECEIVED
the QUOTE_RECEIVED content

See Also:
Constant Field Values

EVENT_NUMBER_QUOTE_RECEIVED

public static final nl.tudelft.simulation.event.EventType EVENT_NUMBER_QUOTE_RECEIVED
the QUOTE_RECEIVED event


CONTENT_TYPE_ORDER_SENT

public static final java.lang.String CONTENT_TYPE_ORDER_SENT
the ORDER_SENT content

See Also:
Constant Field Values

EVENT_NUMBER_ORDER_SENT

public static final nl.tudelft.simulation.event.EventType EVENT_NUMBER_ORDER_SENT
the ORDER_SENT event


CONTENT_TYPE_ORDER_RECEIVED

public static final java.lang.String CONTENT_TYPE_ORDER_RECEIVED
the ORDER_RECEIVED content

See Also:
Constant Field Values

EVENT_NUMBER_ORDER_RECEIVED

public static final nl.tudelft.simulation.event.EventType EVENT_NUMBER_ORDER_RECEIVED
the ORDER_RECEIVED event


EVENT_NUMBER_PRODUCTION_ORDER_RECEIVED

public static final nl.tudelft.simulation.event.EventType EVENT_NUMBER_PRODUCTION_ORDER_RECEIVED
the ORDER_PRODUCTION_RECEIVED event


EVENT_NUMBER_PRODUCTION_ORDER_SENT

public static final nl.tudelft.simulation.event.EventType EVENT_NUMBER_PRODUCTION_ORDER_SENT
the ORDER_PRODUCTION_SENT event


CONTENT_TYPE_PRODUCTION_ORDER_SENT

public static final java.lang.String CONTENT_TYPE_PRODUCTION_ORDER_SENT
the PRODUCTION_ORDER_SENT content

See Also:
Constant Field Values

CONTENT_TYPE_PRODUCTION_ORDER_RECEIVED

public static final java.lang.String CONTENT_TYPE_PRODUCTION_ORDER_RECEIVED
the PRODUCTION_ORDER_RECEIVED content

See Also:
Constant Field Values

CONTENT_TYPE_ORDERCOMMIT_SENT

public static final java.lang.String CONTENT_TYPE_ORDERCOMMIT_SENT
the ORDERCOMMIT_SENT content

See Also:
Constant Field Values

EVENT_NUMBER_ORDERCOMMIT_SENT

public static final nl.tudelft.simulation.event.EventType EVENT_NUMBER_ORDERCOMMIT_SENT
the ORDERCOMMIT_SENT event


CONTENT_TYPE_ORDERCOMMIT_RECEIVED

public static final java.lang.String CONTENT_TYPE_ORDERCOMMIT_RECEIVED
the ORDERCOMMIT_RECEIVED content

See Also:
Constant Field Values

EVENT_NUMBER_ORDERCOMMIT_RECEIVED

public static final nl.tudelft.simulation.event.EventType EVENT_NUMBER_ORDERCOMMIT_RECEIVED
the ORDERCOMMIT_RECEIVED event


CONTENT_TYPE_SHIPMENT_SENT

public static final java.lang.String CONTENT_TYPE_SHIPMENT_SENT
the SHIPMENT_SENT content

See Also:
Constant Field Values

EVENT_NUMBER_SHIPMENT_SENT

public static final nl.tudelft.simulation.event.EventType EVENT_NUMBER_SHIPMENT_SENT
the SHIPMENT_SENT event


CONTENT_TYPE_SHIPMENT_RECEIVED

public static final java.lang.String CONTENT_TYPE_SHIPMENT_RECEIVED
the SHIPMENT_RECEIVED content

See Also:
Constant Field Values

EVENT_NUMBER_SHIPMENT_RECEIVED

public static final nl.tudelft.simulation.event.EventType EVENT_NUMBER_SHIPMENT_RECEIVED
the SHIPMENT_RECEIVED event


CONTENT_TYPE_BILL_SENT

public static final java.lang.String CONTENT_TYPE_BILL_SENT
the BILL_SENT content

See Also:
Constant Field Values

EVENT_NUMBER_BILL_SENT

public static final nl.tudelft.simulation.event.EventType EVENT_NUMBER_BILL_SENT
the BILL_SENT event


CONTENT_TYPE_BILL_RECEIVED

public static final java.lang.String CONTENT_TYPE_BILL_RECEIVED
the BILL_RECEIVED content

See Also:
Constant Field Values

EVENT_NUMBER_BILL_RECEIVED

public static final nl.tudelft.simulation.event.EventType EVENT_NUMBER_BILL_RECEIVED
the BILL_RECEIVED event


CONTENT_TYPE_PAYMENT_SENT

public static final java.lang.String CONTENT_TYPE_PAYMENT_SENT
the PAYMENT_SENT content

See Also:
Constant Field Values

EVENT_NUMBER_PAYMENT_SENT

public static final nl.tudelft.simulation.event.EventType EVENT_NUMBER_PAYMENT_SENT
the PAYMENT_SENT event


CONTENT_TYPE_PAYMENT_RECEIVED

public static final java.lang.String CONTENT_TYPE_PAYMENT_RECEIVED
the PAYMENT_RECEIVED content

See Also:
Constant Field Values

EVENT_NUMBER_PAYMENT_RECEIVED

public static final nl.tudelft.simulation.event.EventType EVENT_NUMBER_PAYMENT_RECEIVED
the PAYMENT_RECEIVED event


EVENT_FULL_LIST_INTERNALDEMAND_SENT

public static final nl.tudelft.simulation.event.EventType EVENT_FULL_LIST_INTERNALDEMAND_SENT
the INTERNALDEMAND_SENT event


EVENT_FULL_LIST_INTERNALDEMAND_RECEIVED

public static final nl.tudelft.simulation.event.EventType EVENT_FULL_LIST_INTERNALDEMAND_RECEIVED
the INTERNALDEMAND_RECEIVED event


EVENT_FULL_LIST_RFQ_SENT

public static final nl.tudelft.simulation.event.EventType EVENT_FULL_LIST_RFQ_SENT
the RFQ_SENT event


EVENT_FULL_LIST_RFQ_RECEIVED

public static final nl.tudelft.simulation.event.EventType EVENT_FULL_LIST_RFQ_RECEIVED
the RFQ_RECEIVED event


EVENT_FULL_LIST_QUOTE_SENT

public static final nl.tudelft.simulation.event.EventType EVENT_FULL_LIST_QUOTE_SENT
the QUOTE_SENT event


EVENT_FULL_LIST_QUOTE_RECEIVED

public static final nl.tudelft.simulation.event.EventType EVENT_FULL_LIST_QUOTE_RECEIVED
the QUOTE_RECEIVED event


EVENT_FULL_LIST_ORDER_SENT

public static final nl.tudelft.simulation.event.EventType EVENT_FULL_LIST_ORDER_SENT
the ORDER_SENT event


EVENT_FULL_LIST_ORDER_RECEIVED

public static final nl.tudelft.simulation.event.EventType EVENT_FULL_LIST_ORDER_RECEIVED
the ORDER_RECEIVED event


EVENT_FULL_LIST_PRODUCTION_ORDER_SENT

public static final nl.tudelft.simulation.event.EventType EVENT_FULL_LIST_PRODUCTION_ORDER_SENT
the PRODUCTION_ORDER_SENT event


EVENT_FULL_LIST_PRODUCTION_ORDER_RECEIVED

public static final nl.tudelft.simulation.event.EventType EVENT_FULL_LIST_PRODUCTION_ORDER_RECEIVED
the PRODUCTION_ORDER_RECEIVED event


EVENT_FULL_LIST_ORDERCOMMIT_SENT

public static final nl.tudelft.simulation.event.EventType EVENT_FULL_LIST_ORDERCOMMIT_SENT
the ORDERCOMMIT_SENT event


EVENT_FULL_LIST_ORDERCOMMIT_RECEIVED

public static final nl.tudelft.simulation.event.EventType EVENT_FULL_LIST_ORDERCOMMIT_RECEIVED
the ORDERCOMMIT_RECEIVED event


EVENT_FULL_LIST_SHIPMENT_SENT

public static final nl.tudelft.simulation.event.EventType EVENT_FULL_LIST_SHIPMENT_SENT
the SHIPMENT_SENT event


EVENT_FULL_LIST_SHIPMENT_RECEIVED

public static final nl.tudelft.simulation.event.EventType EVENT_FULL_LIST_SHIPMENT_RECEIVED
the SHIPMENT_RECEIVED event


EVENT_FULL_LIST_BILL_SENT

public static final nl.tudelft.simulation.event.EventType EVENT_FULL_LIST_BILL_SENT
the BILL_SENT event


EVENT_FULL_LIST_BILL_RECEIVED

public static final nl.tudelft.simulation.event.EventType EVENT_FULL_LIST_BILL_RECEIVED
the BILL_RECEIVED event


EVENT_FULL_LIST_PAYMENT_SENT

public static final nl.tudelft.simulation.event.EventType EVENT_FULL_LIST_PAYMENT_SENT
the PAYMENT_SENT event


EVENT_FULL_LIST_PAYMENT_RECEIVED

public static final nl.tudelft.simulation.event.EventType EVENT_FULL_LIST_PAYMENT_RECEIVED
the PAYMENT_RECEIVED event

Constructor Detail

ContentNumberData

public ContentNumberData(java.lang.String productName,
                         nl.tudelft.simulation.supplychain.content.Content content,
                         int number,
                         boolean sent)
Parameters:
productName - the name of the product
content - the message
number - the new number of messages
sent - is true if sent, and false if received

ContentNumberData

public ContentNumberData(java.lang.String productName,
                         java.lang.Class contentClass,
                         int number,
                         boolean sent)
Parameters:
productName - the name of the product
contentClass - the class of the messages
number - the new number of messages
sent - is true if sent, and false if received
Method Detail

resolveContentType

public static java.lang.String resolveContentType(java.lang.Class contentClass,
                                                  boolean sent)
Parameters:
contentClass - the content class
sent - indicates whether we look for sent or received content
Returns:
returns a String reflecting the resolved content type

resolveEventType

public static nl.tudelft.simulation.event.EventType resolveEventType(java.lang.Class contentClass,
                                                                     boolean sent)
Parameters:
contentClass - the content class
sent - indicates whether we look for sent or received content
Returns:
returns a String reflecting the resolved event type

resolveFullListEventType

public static nl.tudelft.simulation.event.EventType resolveFullListEventType(java.lang.Class contentClass,
                                                                             boolean sent)
Parameters:
contentClass - the content class
sent - indicates whether we look for sent or received content
Returns:
returns an EventType based on the content class

getContentType

public java.lang.String getContentType()
Returns:
Returns the contentType.

getNumber

public int getNumber()
Returns:
Returns the number.

getProductName

public java.lang.String getProductName()
Returns:
Returns the productName.


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