|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.dbe.eve.factories.servicefactory.AbstractServiceFactory
public abstract class AbstractServiceFactory
this class implements a AbstractServiceFactory, based on the Factory Pattern it is responsible for creating Services plus their Attributes for the SMEFactory it maintains a local AttributePool for instancing Services
| Field Summary | |
|---|---|
protected AttributePool |
aPool
|
(package private) static org.apache.log4j.Logger |
logger
|
protected EvEModel |
model
|
(package private) static MersenneTwister |
mt
|
private static int |
SErviceFactoryType
|
| Constructor Summary | |
|---|---|
AbstractServiceFactory()
|
|
| Method Summary | |
|---|---|
abstract Service |
createService()
creates and returns new Service |
abstract DemandedService |
createServiceOnDemand(SME sme)
creates and returns new ServiceOnDemand for a given SME |
private static AbstractServiceFactory |
getDefaultFactory()
creates the Default ServiceFactory |
static AbstractServiceFactory |
getServiceFactory()
creates a new ServiceFactory if necessary between different types of ServiceFactories can be choosen |
static int |
getServiceFactoryType()
|
void |
initialiseDemandedServices(SME sme)
assigns new demanded Services to a SME |
abstract void |
initialiseOfferedServices(SME sme)
assigns new offered Services to a SME and puts them in the localServicePool of the SME |
static void |
setServiceFactoryType(int _serviceFactoryType)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
static org.apache.log4j.Logger logger
static MersenneTwister mt
private static int SErviceFactoryType
protected EvEModel model
protected AttributePool aPool
| Constructor Detail |
|---|
public AbstractServiceFactory()
| Method Detail |
|---|
public static AbstractServiceFactory getServiceFactory()
eVeModel - instance of an EvEModel
private static AbstractServiceFactory getDefaultFactory()
eVeModel - instance of an EvEModel
public abstract Service createService()
public abstract DemandedService createServiceOnDemand(SME sme)
public abstract void initialiseOfferedServices(SME sme)
sme - instance of an SMEpublic void initialiseDemandedServices(SME sme)
sme - instance of an SMEpublic static int getServiceFactoryType()
public static void setServiceFactoryType(int _serviceFactoryType)
_serviceFactoryType - serviceFactoryType==0 (ServiceFactory... default ServiceFactory
serviceFactoryType==1 (GroupedServiceFactory)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||