|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.ntnu.ecosim.agents.serviceproviders.Memory
public class Memory
The Class Memory represents the memory of a service provider.
Constructor Summary | |
---|---|
protected |
Memory()
The Constructor. |
Method Summary | |
---|---|
protected void |
addBindFeeEarnings(double earn)
Adds bind fee earnings. |
protected void |
addLostSubscriber()
Method to add a lost subscriber to the calculations |
protected void |
addNewSubscriber()
Adds a new subscriber |
protected void |
addSubscriptionEarnings(double earn)
Adds subscription earnings. |
protected int |
calculateArpu()
Calculates the arpu for this round. |
protected int |
calculateChurnRate()
Calculates the customer churn rate. |
protected void |
flushMemory()
Flush memory from "short time"(periodic) to long time memory. |
protected int |
getLastSubscribers()
Gets the number of subscribers from last round |
protected int |
getLostSubscribers()
Gets the lost subscribers this round |
protected int |
getNewSubscribers()
Gets the new subscribers this round |
protected int |
getProfit()
Gets the total profit of this provider |
protected double |
getRoundProfit()
Gets the round profit. |
protected int |
getTotalSubscribers()
Gets the total subscribers. |
protected void |
registerInitialSubscribers(int subs)
Register initial subscribers. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected Memory()
Method Detail |
---|
protected void addBindFeeEarnings(double earn)
earn
- the earnings to addprotected void addLostSubscriber()
protected void addNewSubscriber()
protected void addSubscriptionEarnings(double earn)
earn
- the earningsprotected int calculateArpu() throws NotEnoughDataException
NotEnoughDataException
- if it is to early to calculate ARPUprotected int calculateChurnRate() throws NotEnoughDataException
NotEnoughDataException
- If it is too early to calculate customer churnprotected void flushMemory()
protected int getLastSubscribers()
protected int getLostSubscribers()
protected int getNewSubscribers()
protected int getProfit()
protected double getRoundProfit()
protected int getTotalSubscribers()
protected void registerInitialSubscribers(int subs)
subs
- the number of subscribers
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |