edu.cuny.cat.market.core
Class SpecialistInfo
java.lang.Object
edu.cuny.cat.core.AccountHolder
edu.cuny.cat.core.Specialist
edu.cuny.cat.market.core.SpecialistInfo
- All Implemented Interfaces:
- edu.cuny.obj.Resetable, java.lang.Cloneable, java.lang.Comparable<AccountHolder>
- Direct Known Subclasses:
- ExtendedSpecialistInfo
public class SpecialistInfo
- extends Specialist
A class that extends Specialist
and includes
additional information for a specialist to record detailed information about
a specialist.
- Version:
- $Revision: 1.88 $
- Author:
- Jinzhong Niu
Field Summary |
protected double |
dailyProfit
|
protected Score |
dailyScore
|
protected int |
demand
|
protected int |
numOfTraders
number of traders registered with the market daily. |
protected java.util.Map<java.lang.String,Shout> |
shouts
stores all the shouts placed in the market daily, excluding those modified
by later shouts |
protected int |
supply
|
protected java.util.Map<java.lang.String,Transaction> |
transactions
stores all the transactions made in the market daily. |
Constructor Summary |
SpecialistInfo(java.lang.String id)
|
SpecialistInfo(java.lang.String id,
double registrationFee,
double informationFee,
double shoutFee,
double transactionFee,
double profitFee)
|
SpecialistInfo(java.lang.String id,
int scoreMemory)
|
Methods inherited from class edu.cuny.cat.core.Specialist |
clearTraders, clone, getFees, getInformationFee, getProfitFee, getRegistrationFee, getShoutFee, getTrader, getTraderMap, getTransactionFee, registerTrader, reset, setFees, setInformationFee, setProfitFee, setRegistrationFee, setShoutFee, setTransactionFee |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
dailyScore
protected Score dailyScore
dailyProfit
protected double dailyProfit
supply
protected int supply
demand
protected int demand
numOfTraders
protected int numOfTraders
- number of traders registered with the market daily.
transactions
protected java.util.Map<java.lang.String,Transaction> transactions
- stores all the transactions made in the market daily.
shouts
protected java.util.Map<java.lang.String,Shout> shouts
- stores all the shouts placed in the market daily, excluding those modified
by later shouts
SpecialistInfo
public SpecialistInfo(java.lang.String id)
SpecialistInfo
public SpecialistInfo(java.lang.String id,
int scoreMemory)
SpecialistInfo
public SpecialistInfo(java.lang.String id,
double registrationFee,
double informationFee,
double shoutFee,
double transactionFee,
double profitFee)
dayOpening
public void dayOpening()
setDailyProfit
public void setDailyProfit(double dailyProfit)
getDailyProfit
public double getDailyProfit()
getDailyScore
public Score getDailyScore()
calculateDailyScore
public void calculateDailyScore(int totalNumOfTraders,
double dailySpecialistsProfit)
addSupply
public void addSupply(int supply)
addDemand
public void addDemand(int demand)
getSupply
public int getSupply()
getDemand
public int getDemand()
getNumOfTraders
public int getNumOfTraders()
addNumOfTraders
public void addNumOfTraders(int numOfTraders)
shoutPosted
public void shoutPosted(Shout shout)
getShouts
public java.util.Map<java.lang.String,Shout> getShouts()
transactionPosted
public void transactionPosted(Transaction transaction)
getTransactions
public java.util.Map<java.lang.String,Transaction> getTransactions()