|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.dbe.eve.factories.smefactory.OverallServicePool
public class OverallServicePool
OverallServicePool for the SMEFactory either services or groupedservices can be stored number of Services which is set by the GUI is stored in it
| Field Summary | |
|---|---|
private static OverallServicePool |
instance
|
(package private) static org.apache.log4j.Logger |
logger
|
private EvEModel |
model
|
(package private) static MersenneTwister |
mt
|
private java.util.Vector |
overallServicePool
|
| Constructor Summary | |
|---|---|
private |
OverallServicePool()
|
| Method Summary | |
|---|---|
private void |
addService(Service service)
adds a service to the overallservicepool |
static OverallServicePool |
getInstofOverallServicePool()
constructs an overallservicepool or returns the instance of it |
EvEModel |
getModel()
|
java.util.Vector |
getOverallServicePool()
|
Service |
getRandomService()
returns a random services from the overallservicepool |
java.util.Vector |
getRandomServices(int num)
returns random services from the overallservicepool |
java.util.Vector |
getRandomServicesFromGroup(int group,
int num)
returns random services from the overallservicepool from a given group |
void |
reinitialiseOSP(int numberOfServices)
refills the overallServicePool with a defined number of new services gets service from the servicefactory and adds them to the overallservicepool |
void |
setModel(EvEModel model)
|
void |
setOverallServicePool(java.util.Vector overallServicePool)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private static OverallServicePool instance
private java.util.Vector overallServicePool
private EvEModel model
static MersenneTwister mt
static org.apache.log4j.Logger logger
| Constructor Detail |
|---|
private OverallServicePool()
| Method Detail |
|---|
public static OverallServicePool getInstofOverallServicePool()
eVeModel - instance of an EvEModel
public void reinitialiseOSP(int numberOfServices)
numberOfServices - private void addService(Service service)
service - public Service getRandomService()
public java.util.Vector getRandomServices(int num)
public java.util.Vector getRandomServicesFromGroup(int group,
int num)
public EvEModel getModel()
public void setModel(EvEModel model)
public java.util.Vector getOverallServicePool()
public void setOverallServicePool(java.util.Vector overallServicePool)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||