|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.dbe.eve.simulator.DemandedAndUsedServicePool
public class DemandedAndUsedServicePool
The DemandedAndUsedServicePool consists of DemandedAndUsedServicePoolElements which are stored in an Vector. Each DemandedAndUsedServicePool element looks like this | activity | demandedService | UsedService | MigrationHistory of the UsedServices Population |
| Field Summary | |
|---|---|
(package private) java.util.Vector |
DemandedAndUsedServices
|
(package private) static org.apache.log4j.Logger |
logger
|
| Constructor Summary | |
|---|---|
DemandedAndUsedServicePool()
default constructor |
|
| Method Summary | |
|---|---|
boolean |
addDemandedService(DemandedService demService)
add an DemandedService to this pool |
void |
addDemandedServices(java.util.Vector servicesToAdd)
Add an Vector of DemandedServices to the DemandedAndUsedServicePool of the SME. |
boolean |
addUsedServices(DemandedService demService,
Service usedService)
link an UsedService to an already stored DemandedService |
boolean |
addUsedServices(DemandedService demService,
Service usedService,
java.util.Vector migHist)
link an UsedService to an already stored DemandedService |
void |
clearDemandedAndUsedServicePool()
|
boolean |
containsDemandedService(DemandedService demService)
search in the DemandedAndUsedServicePool if an DemandedService is already stored and active in this pool. |
java.util.Vector |
getActiveDemandedServices()
return all DemandedService which are stored in this pool excluding the inactive ones |
java.util.Vector |
getActiveUsedServices()
return all UsedServices which are stored in this pool excluding the inactive ones |
DemandedService |
getDemandedService(Service usedService)
returns the DemandedService which is stored in the same DemandedAndUsedServicePoolElement as the used service. |
java.util.Vector |
getDemandedServices()
return all DemandedService which are stored in this pool also the inactive ones |
java.util.Vector |
getMigrationHistory(Service usedService)
returns the MigrationHistory of a usedService stored. |
java.util.Vector |
getMigrationHistoryOfActiveUsedServices()
returns the MigrationHistory of all aktive usedService stored. |
int |
getSize()
|
Service |
getUsedService(DemandedService demService)
returns the usedService which is stored in the same DemandedAndUsedServicePoolElement as the demanded service. |
java.util.Vector |
getUsedServices()
return all UsedServices which are stored in this pool also the inactive ones |
boolean |
isActive(DemandedService demService)
return true if the searched demanded service is active |
boolean |
removeUsedService(Service serviceToRemove)
removes an used Service from the DemandedAndUsedServicePool |
boolean |
setDemandedServiceInactive(DemandedService demService)
set an DemandedService inactive |
void |
setMigrationHistory(Service usedService,
java.util.Vector migHist)
set the MigrationHistory of a usedService stored. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
java.util.Vector DemandedAndUsedServices
static org.apache.log4j.Logger logger
| Constructor Detail |
|---|
public DemandedAndUsedServicePool()
| Method Detail |
|---|
public void addDemandedServices(java.util.Vector servicesToAdd)
servicesToAdd - is the Service which should be addedpublic boolean containsDemandedService(DemandedService demService)
demService - is the DemandedService which is searched
public boolean addDemandedService(DemandedService demService)
demService - is the DemandedService which should be added
public boolean setDemandedServiceInactive(DemandedService demService)
demService - the DemandedService which should be set inactive
public boolean addUsedServices(DemandedService demService,
Service usedService)
demService - is the DemandedServiceusedService - is the UsedService
public boolean addUsedServices(DemandedService demService,
Service usedService,
java.util.Vector migHist)
demService - is the DemandedServiceusedService - is the UsedService
public java.util.Vector getDemandedServices()
public java.util.Vector getActiveDemandedServices()
public java.util.Vector getUsedServices()
public java.util.Vector getActiveUsedServices()
public DemandedService getDemandedService(Service usedService)
usedService - is the Service to which the DemandedService should be found
public java.util.Vector getMigrationHistory(Service usedService)
usedService - is the Service to which the DemandedService should be found
public java.util.Vector getMigrationHistoryOfActiveUsedServices()
usedService - is the Service to which the DemandedService should be found
public void setMigrationHistory(Service usedService,
java.util.Vector migHist)
usedService - is the Service to which the DemandedService should be foundmigHist - is the migrationHistory of the usedServicepublic Service getUsedService(DemandedService demService)
demService - is the demanded service to which the usedService should be found
public boolean isActive(DemandedService demService)
demService - is the demanded service which activeness is searched
public boolean removeUsedService(Service serviceToRemove)
serviceToRemove - is the service which should be removed
public int getSize()
public void clearDemandedAndUsedServicePool()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||