|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.dbe.eve.simulator.Attribute
org.dbe.eve.simulator.DemandedAttribute
public class DemandedAttribute
Represents a demanded attribute with an Attribute and a weight
| Field Summary | |
|---|---|
(package private) static MersenneTwister |
mt
|
private double |
weight
|
| Fields inherited from class org.dbe.eve.simulator.Attribute |
|---|
iD, logger, value |
| Constructor Summary | |
|---|---|
DemandedAttribute(Attribute a)
Constructs an DemandedAttribute with an Attribute and random weight. |
|
DemandedAttribute(Attribute a,
double weight)
Constructs an DemandedAttribute with an Attribute and a weight. |
|
| Method Summary | |
|---|---|
java.lang.Object |
clone()
Returns a clone of this DemandedAttribute. |
double |
getWeight()
Returns the weight of this DemandedAttribute. |
void |
setWeight(double newWeight)
set an new the weight to this DemandedAttribute. |
| Methods inherited from class org.dbe.eve.simulator.Attribute |
|---|
compareTo, getID, getValue, increaseValue, isEqual, setValue, toString |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
private double weight
static MersenneTwister mt
| Constructor Detail |
|---|
public DemandedAttribute(Attribute a)
a - is "basic" attribute for the DemandedAttributeweight - represents the importance of this DemandedAttribute in
contrast to other DemandedAttributes. The weight have to be
between 0 and 1 otherwise the weight is set to zero.
public DemandedAttribute(Attribute a,
double weight)
a - is "basic" attribute for the DemandedAttributeweight - represents the importance of this DemandedAttribute in
contrast to other DemandedAttributes. The weight have to be
between 0 and 1 otherwise the weight is set to zero.| Method Detail |
|---|
public java.lang.Object clone()
throws java.lang.CloneNotSupportedException
clone in class Attributejava.lang.CloneNotSupportedExceptionpublic double getWeight()
public void setWeight(double newWeight)
newWeight - the new weigth value
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||