|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.dbe.eve.simulator.AbstractService
public abstract class AbstractService
The parent class for all types of services
| Field Summary | |
|---|---|
protected java.util.Vector |
attributes
|
protected int |
ID
|
(package private) static org.apache.log4j.Logger |
logger
|
| Constructor Summary | |
|---|---|
AbstractService(int id)
Constructs an AbstractService and sets its id |
|
AbstractService(int id,
int numberOfAttributes)
Constructs an AbstractService with random Attributes and sets its ID. |
|
AbstractService(java.util.Vector _attributes,
int id)
Constructs an AbstractService with Attributes and set its id |
|
| Method Summary | |
|---|---|
boolean |
addAttribute(Attribute attributeToAdd)
Adds an Attribute to the Attributes of this Service. |
double |
compareTo(java.lang.Object o)
This method returns how many Attributes match the Attributes of the other service. |
java.util.Vector |
getAttributes()
Returns the Vector of Attributes of the Service |
int |
getServiceID()
return the ID of the Service |
java.lang.String |
toString()
Represents the Service as String |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected int ID
protected java.util.Vector attributes
static org.apache.log4j.Logger logger
| Constructor Detail |
|---|
public AbstractService(int id)
id - the id of the new AbstractService
public AbstractService(java.util.Vector _attributes,
int id)
_attributes - is a Vector of Attributesid - the id of the new AbstractService
public AbstractService(int id,
int numberOfAttributes)
id - the id of the new AbstractServicenumberOfAttributes - is the number of Attributes which should be randomly generated| Method Detail |
|---|
public int getServiceID()
public java.util.Vector getAttributes()
public boolean addAttribute(Attribute attributeToAdd)
attributeToAdd -
public java.lang.String toString()
toString in class java.lang.Objectpublic double compareTo(java.lang.Object o)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||