org.gscg.singleuser.interactionlayer.economics
Class Economics

java.lang.Object
  extended bynl.tudelft.simulation.event.EventProducer
      extended byorg.gscg.singleuser.interactionlayer.economics.Economics
All Implemented Interfaces:
AnnounceInterface, nl.tudelft.simulation.event.EventProducerInterface, java.io.Serializable

public class Economics
extends nl.tudelft.simulation.event.EventProducer
implements AnnounceInterface

The Economics manages all the server-side actions related to the economic state of a player. It manages initializing and updating the economics panel.

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.2 $ $Date: 2005/08/09 15:43:42 $
Author:
Stijn-Pieter van Houten , Roy Chin
See Also:
Serialized Form

Field Summary
static nl.tudelft.simulation.event.EventType UPDATE_ECONOMICS_BALANCE
          updates the whole economics table
static nl.tudelft.simulation.event.EventType UPDATE_ECONOMICS_PANEL
          updates the whole economics table
static nl.tudelft.simulation.event.EventType UPDATE_ECONOMICS_PANEL_DAY
          updates the whole economics day table
static nl.tudelft.simulation.event.EventType UPDATE_ECONOMICS_PANEL_MONTH
          updates the whole economics month table
static nl.tudelft.simulation.event.EventType UPDATE_ECONOMICS_PANEL_WEEK
          updates the whole economics week table
 
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
Economics(SingleUserInteractionLayerInterface owner)
          constructs a new Economics
 
Method Summary
 void announce(nl.tudelft.simulation.event.EventType eventType, boolean announce)
          Method announce.
 EconomicsFinancial getEconomicsFinancial()
           
 
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

UPDATE_ECONOMICS_PANEL

public static final nl.tudelft.simulation.event.EventType UPDATE_ECONOMICS_PANEL
updates the whole economics table


UPDATE_ECONOMICS_PANEL_DAY

public static final nl.tudelft.simulation.event.EventType UPDATE_ECONOMICS_PANEL_DAY
updates the whole economics day table


UPDATE_ECONOMICS_PANEL_WEEK

public static final nl.tudelft.simulation.event.EventType UPDATE_ECONOMICS_PANEL_WEEK
updates the whole economics week table


UPDATE_ECONOMICS_PANEL_MONTH

public static final nl.tudelft.simulation.event.EventType UPDATE_ECONOMICS_PANEL_MONTH
updates the whole economics month table


UPDATE_ECONOMICS_BALANCE

public static final nl.tudelft.simulation.event.EventType UPDATE_ECONOMICS_BALANCE
updates the whole economics table

Constructor Detail

Economics

public Economics(SingleUserInteractionLayerInterface owner)
constructs a new Economics

Parameters:
owner - the owner of the economics object
Method Detail

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)

getEconomicsFinancial

public EconomicsFinancial getEconomicsFinancial()
Returns:
Returns the economicsFinancial.


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