com.shimari.fxtp
Class FXTP_User

java.lang.Object
  extended bycom.shimari.fxtp.FXTP_Book
      extended bycom.shimari.fxtp.FXTP_User

public class FXTP_User
extends FXTP_Book

A bean representing an FXTP_User and what we know about them, including their order book and holdings.


Constructor Summary
FXTP_User(FXTP_UserId id, double cash, double networth, double score, java.util.SortedSet holdings, java.util.List bids, java.util.List asks)
           
 
Method Summary
 double getCash()
           
 java.lang.Integer getId()
           
 double getNetworth()
           
 java.util.SortedSet getPosition()
           
 FXTP_Position getPosition(java.lang.String claim)
           
 double getScore()
           
 FXTP_UserId getUserId()
           
 java.lang.String toString()
           
 
Methods inherited from class com.shimari.fxtp.FXTP_Book
getAsks, getBids, getBook
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FXTP_User

public FXTP_User(FXTP_UserId id,
                 double cash,
                 double networth,
                 double score,
                 java.util.SortedSet holdings,
                 java.util.List bids,
                 java.util.List asks)
Method Detail

toString

public java.lang.String toString()

getUserId

public FXTP_UserId getUserId()

getId

public java.lang.Integer getId()

getCash

public double getCash()

getNetworth

public double getNetworth()

getScore

public double getScore()

getPosition

public java.util.SortedSet getPosition()
Returns:
a set of FXTP_Position objects.

getPosition

public FXTP_Position getPosition(java.lang.String claim)