org.dbe.eve.simulator
Class DemandedService
java.lang.Object
org.dbe.eve.simulator.AbstractService
org.dbe.eve.simulator.DemandedService
public class DemandedService
- extends AbstractService
Represents a demanded service
|
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)
|
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
demandingSME
private SME demandingSME
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)
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