org.dbe.eve.simulator
Class ServicePoolElement

java.lang.Object
  extended by org.dbe.eve.simulator.ServicePoolElement
All Implemented Interfaces:
java.lang.Cloneable

public class ServicePoolElement
extends java.lang.Object
implements java.lang.Cloneable


Field Summary
(package private) static org.apache.log4j.Logger logger
           
private  int numUsedInGA
           
private  Service storedService
           
private  int wasAddedAtStep
           
 
Constructor Summary
ServicePoolElement(Service newStoredService, int wasAddedAtStep)
          create an new ServicePoolElement
 
Method Summary
 java.lang.Object clone()
           
 int getNumUsedInGA()
          return the number of usedInGA
 Service getService()
          return the service stored in the ServicePoolElement
 int getStep()
          returns the step when the service was added to the ServicePool
 void increaseNumUsedInGA()
          increse the number of usedInGA
 java.lang.String toString_orig()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

storedService

private Service storedService

numUsedInGA

private int numUsedInGA

wasAddedAtStep

private int wasAddedAtStep

logger

static org.apache.log4j.Logger logger
Constructor Detail

ServicePoolElement

public ServicePoolElement(Service newStoredService,
                          int wasAddedAtStep)
create an new ServicePoolElement

Parameters:
newStoredService -
wasAddedAtStep -
Method Detail

clone

public java.lang.Object clone()
                       throws java.lang.CloneNotSupportedException
Overrides:
clone in class java.lang.Object
Throws:
java.lang.CloneNotSupportedException

getService

public Service getService()
return the service stored in the ServicePoolElement

Returns:
Service

getStep

public int getStep()
returns the step when the service was added to the ServicePool

Returns:
int

toString_orig

public java.lang.String toString_orig()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

increaseNumUsedInGA

public void increaseNumUsedInGA()
increse the number of usedInGA


getNumUsedInGA

public int getNumUsedInGA()
return the number of usedInGA

Returns:
int