org.mars_sim.msp.simulation.structure.goods
Class CreditEvent

java.lang.Object
  extended by java.util.EventObject
      extended by org.mars_sim.msp.simulation.structure.goods.CreditEvent
All Implemented Interfaces:
java.io.Serializable

public class CreditEvent
extends java.util.EventObject

A credit change event.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
CreditEvent(Settlement settlement1, Settlement settlement2, double credit)
          Constructor
 
Method Summary
 double getCredit()
          Gets the credit amount.
 Settlement getSettlement1()
          Gets the first settlement.
 Settlement getSettlement2()
          Gets the second settlement.
 
Methods inherited from class java.util.EventObject
getSource, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CreditEvent

public CreditEvent(Settlement settlement1,
                   Settlement settlement2,
                   double credit)
Constructor

Parameters:
settlement1 - the first settlement.
settlement2 - the second settlement.
credit - the credit amount (VP).
Method Detail

getSettlement1

public Settlement getSettlement1()
Gets the first settlement.

Returns:
settlement.

getSettlement2

public Settlement getSettlement2()
Gets the second settlement.

Returns:
settlement.

getCredit

public double getCredit()
Gets the credit amount.

Returns:
credit amount (VP).