|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.cuny.cat.core.AccountHolder
edu.cuny.cat.core.Specialist
public class Specialist
Each instance of this class represents a specialist/market.
Field Summary | |
---|---|
protected double |
informationFee
The price of information. |
protected double |
profitFee
The charge for profit made by traders in a transaction. |
protected double |
registrationFee
The registration cost for a trader. |
protected double |
shoutFee
The charge for placing a shout. |
protected java.util.Map<java.lang.String,Trader> |
traderMap
Traders registered with this specialist |
protected double |
transactionFee
The charge for each transaction. |
Fields inherited from class edu.cuny.cat.core.AccountHolder |
---|
account, desc, id |
Constructor Summary | |
---|---|
Specialist(java.lang.String id)
|
|
Specialist(java.lang.String id,
java.lang.String desc)
|
|
Specialist(java.lang.String id,
java.lang.String desc,
double registrationFee,
double informationFee,
double shoutFee,
double transactionFee,
double profitFee)
|
Method Summary | |
---|---|
void |
clearTraders()
|
java.lang.Object |
clone()
|
double[] |
getFees()
|
double |
getInformationFee()
|
double |
getProfitFee()
|
double |
getRegistrationFee()
|
double |
getShoutFee()
|
Trader |
getTrader(java.lang.String id)
|
java.util.Map<java.lang.String,Trader> |
getTraderMap()
|
double |
getTransactionFee()
|
void |
registerTrader(Trader trader)
|
void |
reset()
|
void |
setFees(double[] fees)
|
void |
setInformationFee(double informationFee)
|
void |
setProfitFee(double profitFee)
|
void |
setRegistrationFee(double registrationFee)
|
void |
setShoutFee(double shoutFee)
|
void |
setTransactionFee(double transactionFee)
|
Methods inherited from class edu.cuny.cat.core.AccountHolder |
---|
compareTo, getAccount, getDescription, getId, setDescription, setId |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected double registrationFee
protected double informationFee
protected double shoutFee
protected double transactionFee
protected double profitFee
protected java.util.Map<java.lang.String,Trader> traderMap
Constructor Detail |
---|
public Specialist(java.lang.String id)
public Specialist(java.lang.String id, java.lang.String desc)
public Specialist(java.lang.String id, java.lang.String desc, double registrationFee, double informationFee, double shoutFee, double transactionFee, double profitFee)
Method Detail |
---|
public void reset()
reset
in interface edu.cuny.obj.Resetable
reset
in class AccountHolder
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
clone
in class java.lang.Object
java.lang.CloneNotSupportedException
public double getRegistrationFee()
public double getInformationFee()
public double getShoutFee()
public double getTransactionFee()
public double getProfitFee()
public void setRegistrationFee(double registrationFee)
public void setInformationFee(double informationFee)
public void setShoutFee(double shoutFee)
public void setTransactionFee(double transactionFee)
public void setProfitFee(double profitFee)
public void setFees(double[] fees)
public double[] getFees()
public void registerTrader(Trader trader)
public java.util.Map<java.lang.String,Trader> getTraderMap()
public Trader getTrader(java.lang.String id)
public void clearTraders()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |