|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.ntnu.ecosim.environment.ConsumerFactory
public class ConsumerFactory
The consumer factory is "producing" the consumers, assuring that each consumer gets the necessary attributes and a unique ID. The consumer factory is also responsible for generating the social network.
Constructor Summary | |
---|---|
protected |
ConsumerFactory(Market market)
Constructor of the ConsumerFactory. |
Method Summary | |
---|---|
protected void |
createSocialConnections()
Method to generate the social networks between consumers. |
protected Consumer |
produceBoundConsumer(ServiceProvider spro)
Method to produce a consumer subscribing to a specified service provider. |
protected Consumer |
produceSimpleConsumer()
Method to produce a consumer which is not bound to any service provider. |
protected void |
resetCounter()
Method to reset the counter. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected ConsumerFactory(Market market)
market
- the market to produce consumers toMethod Detail |
---|
protected void createSocialConnections()
protected Consumer produceBoundConsumer(ServiceProvider spro)
spro
- the service provider
protected Consumer produceSimpleConsumer()
protected void resetCounter()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |