org.dbe.eve.simulator
Class DemandedAndUsedServicePoolElement

java.lang.Object
  extended by org.dbe.eve.simulator.DemandedAndUsedServicePoolElement

public class DemandedAndUsedServicePoolElement
extends java.lang.Object

The DemandedAndUsedServicePoolElements are representing the elements of the DemandedAndUsedServicePool. Each DemandedAndUsedServicePoolElement consists of an activity flag, an DemandedService and maybe an UsedService which fit to the DemandedService as well as the UsedService population migrationHistory.

Author:
Markus

Field Summary
(package private)  boolean active
           
(package private)  DemandedService demService
           
(package private)  java.util.Vector migationHistory
           
(package private)  Service usedService
           
 
Constructor Summary
DemandedAndUsedServicePoolElement(DemandedService demService)
          Constructor
 
Method Summary
 DemandedService getDemandedService()
          return the DemandedService of the DemandedAndUsedServicePoolElement
 java.util.Vector getMigrationHistory()
          return the UsedServices population MigrationHistory
 Service getUsedService()
          return the UsedService of the DemandedAndUsedServicePoolElement
 boolean isActive()
          return true if this DemandedAndUsedServicePoolElement is active otherwise false
 boolean removeUsedService()
          removes the DemandedAndUsedServicePoolElements UsedService
 void setInactive()
          sets the DemandedAndUsedServicePoolElement Inactive
 void setMigrationHistory(java.util.Vector val)
          sets the UsedServices population MigrationHistory
 void setUsedService(Service usedService)
          sets the UsedService of the DemandedAndUsedServicePoolElement
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

active

boolean active

demService

DemandedService demService

usedService

Service usedService

migationHistory

java.util.Vector migationHistory
Constructor Detail

DemandedAndUsedServicePoolElement

public DemandedAndUsedServicePoolElement(DemandedService demService)
Constructor

Parameters:
demService - represents the DemandedService
Method Detail

setInactive

public void setInactive()
sets the DemandedAndUsedServicePoolElement Inactive


setUsedService

public void setUsedService(Service usedService)
sets the UsedService of the DemandedAndUsedServicePoolElement

Parameters:
usedService -

setMigrationHistory

public void setMigrationHistory(java.util.Vector val)
sets the UsedServices population MigrationHistory

Parameters:
val -

getMigrationHistory

public java.util.Vector getMigrationHistory()
return the UsedServices population MigrationHistory

Returns:
Vector MigrationHistory

removeUsedService

public boolean removeUsedService()
removes the DemandedAndUsedServicePoolElements UsedService

Returns:
true if a UsedService is stored in the DemandedAndUsedServicePoolElement

getUsedService

public Service getUsedService()
return the UsedService of the DemandedAndUsedServicePoolElement

Returns:
Service

getDemandedService

public DemandedService getDemandedService()
return the DemandedService of the DemandedAndUsedServicePoolElement

Returns:
DemandedService

isActive

public boolean isActive()
return true if this DemandedAndUsedServicePoolElement is active otherwise false

Returns:
boolean