|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.dbe.eve.simulator.Attribute
public class Attribute
Represents an attribute
| Field Summary | |
|---|---|
protected int |
iD
|
(package private) static org.apache.log4j.Logger |
logger
|
protected int |
value
|
| Constructor Summary | |
|---|---|
Attribute(int ID,
int value)
Constructs an Attribute with an ID and a value. |
|
| Method Summary | |
|---|---|
java.lang.Object |
clone()
Returns a clone of this Attribute. |
int |
compareTo(java.lang.Object o)
|
int |
getID()
Returns the ID of this attribute. |
int |
getValue()
Returns the value of this attribute. |
void |
increaseValue(int plus)
This method increase the value of the attribute by the value delivered through parameter value. |
boolean |
isEqual(java.lang.Object o)
|
void |
setValue(int newValue)
This method set the value of the attribute to value which is delivered through parameter value. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected int iD
protected int value
static org.apache.log4j.Logger logger
| Constructor Detail |
|---|
public Attribute(int ID,
int value)
ID - the ID of the new Attibutevalue - the Attribtues value (int)| Method Detail |
|---|
public java.lang.Object clone()
throws java.lang.CloneNotSupportedException
clone in class java.lang.Objectjava.lang.CloneNotSupportedExceptionpublic int getID()
public int getValue()
public void setValue(int newValue)
newValue - is the new value of the attribute.public void increaseValue(int plus)
plus - is the value which is added to the current value of the attributepublic java.lang.String toString()
toString in class java.lang.Objectpublic int compareTo(java.lang.Object o)
compareTo in interface java.lang.Comparableo -
public boolean isEqual(java.lang.Object o)
o -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||