|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecttuwien.auto.calimero.buffer.cache.CacheObject
tuwien.auto.calimero.buffer.LDataObject
public class LDataObject
Used for holding CEMILData
frames.
Field Summary |
---|
Fields inherited from class tuwien.auto.calimero.buffer.cache.CacheObject |
---|
value |
Constructor Summary | |
---|---|
|
LDataObject(CEMILData frame)
Creates a LDataObject holding the frame argument. |
protected |
LDataObject(KNXAddress key,
java.lang.Object value)
Creates a LDataObject set to key addrKey and holding
value . |
Method Summary | |
---|---|
CEMILData |
getFrame()
Returns a CEMILData frame contained in this cache object. |
void |
setFrame(CEMILData frame)
Sets a new CEMILData frame for this cache object. |
Methods inherited from class tuwien.auto.calimero.buffer.cache.CacheObject |
---|
getCount, getKey, getTimestamp, getUsage, getValue, incCount, resetCount, resetTimestamp, setUsage |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LDataObject(CEMILData frame)
LDataObject
holding the frame
argument.
frame
- CEMILData
frameprotected LDataObject(KNXAddress key, java.lang.Object value)
LDataObject
set to key addrKey
and holding
value
.
If value
is not of type CEMILData
, the methods
setFrame(CEMILData)
and getFrame()
have to be overridden.
key
- key of this cache objectvalue
- value hold by this cache objectMethod Detail |
---|
public CEMILData getFrame()
CEMILData
frame contained in this cache object.
On no frame available, null
is returned.
CEMILData
frame, or null
public void setFrame(CEMILData frame)
CEMILData
frame
for this cache object.
The key generated out of frame
(i.e. out of the KNX address of
frame
) has to be equal to the key of this LDataObject
,
as returned from CacheObject.getKey()
. Otherwise a
KNXIllegalArgumentException
will be thrown.
Note that on successful set the timestamp is renewed.
frame
- the new CEMILData
frame to set
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |