jfreerails.world.accounts
Class BondTransaction

java.lang.Object
  extended by jfreerails.world.accounts.AddItemTransaction
      extended by jfreerails.world.accounts.BondTransaction
All Implemented Interfaces:
java.io.Serializable, Transaction, FreerailsSerializable

public class BondTransaction
extends AddItemTransaction

A Transaction that adds or removes a Bond.

Author:
Luke
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from interface jfreerails.world.accounts.Transaction
Transaction.Category
 
Field Summary
static Money BOND_VALUE_ISSUE
           
static Money BOND_VALUE_REPAY
           
private static long serialVersionUID
           
 
Constructor Summary
private BondTransaction(Transaction.Category category, int type, int quantity, Money amount)
           
 
Method Summary
static BondTransaction issueBond(int interestRate)
           
static BondTransaction repayBond(int interestRate)
           
 
Methods inherited from class jfreerails.world.accounts.AddItemTransaction
deltaAssets, deltaCash, equals, getCategory, getQuantity, getType, hashCode, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

serialVersionUID

private static final long serialVersionUID
See Also:
Constant Field Values

BOND_VALUE_ISSUE

public static final Money BOND_VALUE_ISSUE

BOND_VALUE_REPAY

public static final Money BOND_VALUE_REPAY
Constructor Detail

BondTransaction

private BondTransaction(Transaction.Category category,
                        int type,
                        int quantity,
                        Money amount)
Method Detail

issueBond

public static BondTransaction issueBond(int interestRate)

repayBond

public static BondTransaction repayBond(int interestRate)