Class CashPosition


  • @Domain(fields={"postedTimeslot","balance"})
    public class CashPosition
    extends BrokerTransaction
    A CashPosition domain instance represents the current state of a broker's cash account. An new CashPosition is sent to brokers during each timeslot. This is not public information.
    Author:
    Carsten Block, David Dauer, John Collins
    • Constructor Detail

      • CashPosition

        public CashPosition​(Broker broker,
                            double balance,
                            int timeslot)
    • Method Detail

      • getBalance

        public double getBalance()
        Returns the balance in the account at the time this CashPosition was generated.