|
QJCC homepage | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object biz.chitec.quarterback.util.ValueHistoryStorage.ValueMark
Helper class to store a value at a certain point of time. Values can be either absolute or relative. It is even possible to have absolute and relative values at the same point of time (in which case they are strored in the same ValueMark).
Field Summary | |
private int |
absvalue
The absolute value at this point of time. |
private int |
relvalue
The relative value at this point of time. 0 if unset. |
Constructor Summary | |
ValueHistoryStorage.ValueMark()
Init as unset, zero value. |
|
ValueHistoryStorage.ValueMark(int value,
boolean isabsolute)
Init with a value, which is interpreted as absolute or relative according to second parameter. |
|
ValueHistoryStorage.ValueMark(int av,
int rv)
Init with a certain absolute and relative value. |
Method Summary | |
int |
absolutify(int prevrel)
Absolutify the ValueMark regarding a passed absolute value. |
void |
cumulateRelative(int cv)
Store additional relative value. |
boolean |
equals(java.lang.Object o)
Absolute and relative value must be equal for success. |
int |
getAbsolute()
Return absolute value of this ValueMark. |
int |
getRelative()
Return relative value of this ValueMark. |
int |
relativify(int prevabs)
Relativify this ValueMark. |
void |
setAbsolute(int av)
Set new absolute value. |
java.lang.String |
toString()
For debug purposes. |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
private int absvalue
private int relvalue
Constructor Detail |
public ValueHistoryStorage.ValueMark()
public ValueHistoryStorage.ValueMark(int av, int rv)
av
- Description of the Parameterrv
- Description of the Parameterpublic ValueHistoryStorage.ValueMark(int value, boolean isabsolute)
value
- Description of the Parameterisabsolute
- Description of the ParameterMethod Detail |
public void setAbsolute(int av)
av
- The new absolute valuepublic void cumulateRelative(int cv)
cv
- Description of the Parameterpublic int getAbsolute()
public int getRelative()
public int absolutify(int prevrel)
prevrel
- Description of the Parameter
public int relativify(int prevabs)
prevabs
- Description of the Parameter
public boolean equals(java.lang.Object o)
o
- Description of the Parameter
public java.lang.String toString()
|
QJCC homepage | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |