|
||||||||||
| 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.GroupedServiceFactory
public class GroupedServiceFactory
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 GroupedServiceFactory |
instance
|
| Fields inherited from class org.dbe.eve.factories.servicefactory.AbstractServiceFactory |
|---|
aPool, logger, model, mt |
| Constructor Summary | |
|---|---|
private |
GroupedServiceFactory()
creates a new ServiceFactory and a new random AttributePool with number of attributes given from the GUI |
| Method Summary | |
|---|---|
Service |
createService()
creates new GroupedService with random number of attributes from the attributepool and a random group number based on the configured No of groups starting with 0 |
DemandedService |
createServiceOnDemand(SME sme)
returns a new demanded Service based on the attributes of a service from the overallservicepool |
static GroupedServiceFactory |
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 GroupedServiceFactory instance
| Constructor Detail |
|---|
private GroupedServiceFactory()
EVeModel - instance of an EvEModel| Method Detail |
|---|
public static GroupedServiceFactory 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 | |||||||||