org.dbe.eve.simulator
Class DemandedService

java.lang.Object
  extended by org.dbe.eve.simulator.AbstractService
      extended by org.dbe.eve.simulator.DemandedService

public class DemandedService
extends AbstractService

Represents a demanded service


Field Summary
private  SME demandingSME
           
 
Fields inherited from class org.dbe.eve.simulator.AbstractService
attributes, ID, logger
 
Constructor Summary
DemandedService(int ID, SME _demandingSME)
          Constructs an DemandedService with an ID and link this DemandedService to an SME.
DemandedService(int ID, SME _demandingSME, java.util.Vector attributes)
           
 
Method Summary
 java.lang.Object clone()
           
 org.w3c.dom.Element getAsXMLElement(org.w3c.dom.Document xmldoc)
           
 SME getDemandingSME()
          returns the SME which is demanding this Service
 void setDemandingSME(SME demandingSME)
          exchange or set the SME which is demanding this Service
 
Methods inherited from class org.dbe.eve.simulator.AbstractService
addAttribute, compareTo, getAttributes, getServiceID, toString
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

demandingSME

private SME demandingSME
Constructor Detail

DemandedService

public DemandedService(int ID,
                       SME _demandingSME)
Constructs an DemandedService with an ID and link this DemandedService to an SME.

Parameters:
ID - is the Service ID
_demandingSME - the SME which demands this Service

DemandedService

public DemandedService(int ID,
                       SME _demandingSME,
                       java.util.Vector attributes)
Method Detail

clone

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

getDemandingSME

public SME getDemandingSME()
returns the SME which is demanding this Service

Returns:
SME the demanding SME

setDemandingSME

public void setDemandingSME(SME demandingSME)
exchange or set the SME which is demanding this Service

Parameters:
demandingSME - the demanding SME

getAsXMLElement

public org.w3c.dom.Element getAsXMLElement(org.w3c.dom.Document xmldoc)
Parameters:
xmldoc - the xml document in which the service should be included
Returns:
the service as a XML element