|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectmarket.Market
public class Market
Constructor Summary | |
---|---|
Market(Good good,
Currency currency,
java.util.ArrayList<Participant> pParticipantArray)
|
Method Summary | |
---|---|
void |
clearTransactions()
Clears all transactions registered. |
Currency |
getMarketCurrency()
|
Good |
getMarketGood()
|
java.lang.String |
getMarketName()
|
double |
getMarketPriceCap()
|
double |
getMarketQtyCap()
|
java.util.ArrayList<Participant> |
getParticipants()
|
java.util.ArrayList<Transaction> |
getTransactions()
|
org.jfree.data.xy.XYSeries |
getTransactionSeries()
|
void |
graphSupplyAndDemand()
Displays on screen the supply and demand for the good traded in this market by the participants |
void |
graphTransactions()
Displays on screen the transactions made between the market participants for the market good. |
void |
incrementPeriod()
Increments the period variable by 1. |
void |
registerTrasaction(Transaction deal,
double time)
Registers the transaction in the market and records the price for which it was traded as well as the relative time. |
void |
setMarketCurrency(Currency marketCurrency)
|
void |
setMarketName(java.lang.String marketName)
|
void |
setMarketPriceCap(double marketPriceCap)
|
void |
setMarketQtyCap(double marketQuantityCap)
|
void |
setParticipants(java.util.ArrayList<Participant> pArrayList)
|
void |
supplyAndDemandToFile(java.lang.String path)
Outputs to file the supply and demand for the good traded in this market by the participants. |
void |
transactionsToFile(java.lang.String path)
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Market(Good good, Currency currency, java.util.ArrayList<Participant> pParticipantArray)
good
- currency
- pParticipantArray
- Method Detail |
---|
public void clearTransactions()
public Currency getMarketCurrency()
public Good getMarketGood()
public java.lang.String getMarketName()
public double getMarketPriceCap()
public double getMarketQtyCap()
public void graphSupplyAndDemand()
public void supplyAndDemandToFile(java.lang.String path)
path
- public void graphTransactions()
public void transactionsToFile(java.lang.String path)
public void registerTrasaction(Transaction deal, double time)
deal
- time
- public void setMarketCurrency(Currency marketCurrency)
marketCurrency
- public void setMarketName(java.lang.String marketName)
marketName
- public void setMarketPriceCap(double marketPriceCap)
marketPriceCap
- public void setMarketQtyCap(double marketQuantityCap)
marketQuantityCap
- public java.util.ArrayList<Participant> getParticipants()
public void setParticipants(java.util.ArrayList<Participant> pArrayList)
pArrayList
- public void incrementPeriod()
public org.jfree.data.xy.XYSeries getTransactionSeries()
public java.util.ArrayList<Transaction> getTransactions()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |