|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectpeersim.vector.SingleValueHolder
public class SingleValueHolder
The task of this protocol is to store a single double value and make it
available through the SingleValue interface.
| Field Summary | |
|---|---|
protected double |
value
Value held by this protocol |
| Constructor Summary | |
|---|---|
SingleValueHolder(java.lang.String prefix)
Does nothing. |
|
| Method Summary | |
|---|---|
java.lang.Object |
clone()
Clones the value holder. |
double |
getValue()
Returns the value of the parameter hold by the implementor of this interface. |
void |
setValue(double value)
Modifies the value of the parameter hold by the implementor of this interface. |
java.lang.String |
toString()
Returns the value as a string. |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected double value
| Constructor Detail |
|---|
public SingleValueHolder(java.lang.String prefix)
| Method Detail |
|---|
public java.lang.Object clone()
clone in interface Protocolclone in class java.lang.Objectpublic double getValue()
SingleValue
getValue in interface SingleValuepublic void setValue(double value)
SingleValue
setValue in interface SingleValuepublic java.lang.String toString()
toString in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||