|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.dbe.eve.factories.servicefactory.AbstractServiceFactory
org.dbe.eve.factories.servicefactory.ServiceFactory
public class ServiceFactory
extends AbstractServiceFactory implements the main type of Services for the SMEFactory Singleton Pattern is implemented, so only one instance can be made
| Field Summary | |
|---|---|
private static ServiceFactory |
instance
|
| Fields inherited from class org.dbe.eve.factories.servicefactory.AbstractServiceFactory |
|---|
aPool, logger, model, mt |
| Constructor Summary | |
|---|---|
private |
ServiceFactory()
creates a new ServiceFactory and a new random AttributePool with number of attributes given from the GUI |
| Method Summary | |
|---|---|
Service |
createService()
creates new Service with random number of attributes from the attributepool |
DemandedService |
createServiceOnDemand(SME sme)
adds a new demanded Service to a SME currently a demanded Service is a new service created by attributes of the AttributePool |
static ServiceFactory |
getInstofServiceFact()
returns an instance of the ServiceFactory |
void |
initialiseOfferedServices(SME sme)
assigns new offered Services to a SME and puts them in the localServicePool of the SME |
| Methods inherited from class org.dbe.eve.factories.servicefactory.AbstractServiceFactory |
|---|
getServiceFactory, getServiceFactoryType, initialiseDemandedServices, setServiceFactoryType |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private static ServiceFactory instance
| Constructor Detail |
|---|
private ServiceFactory()
EVeModel - instance of an EvEModel| Method Detail |
|---|
public static ServiceFactory getInstofServiceFact()
public void initialiseOfferedServices(SME sme)
initialiseOfferedServices in class AbstractServiceFactorysme - instance of an SMEpublic Service createService()
createService in class AbstractServiceFactoryeVemodel - instance of an EvEModel
public DemandedService createServiceOnDemand(SME sme)
createServiceOnDemand in class AbstractServiceFactorysme - instance of an SME
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||