|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.flightpanels.scs.DataReference<T>
public abstract class DataReference<T>
Java port of the DataReference class template of libcanaero, v1.0.
| Constructor Summary | |
|---|---|
DataReference(IUpdateable<T> updateable)
|
|
| Method Summary | |
|---|---|
boolean |
hasChanged()
|
boolean |
needsRequest()
|
abstract void |
readFromCan(CanAeroMetadata meta,
can_t can)
read incoming data from the bus into the cache |
void |
requested()
data was requested, reset the internal timeout |
void |
signUp(IUpdateable ref)
Geez, where is my little brown Java barf bag? |
void |
update()
Update all the associated IUpdateables with the value that was last received |
can_t |
write(CanAeroMetadata meta,
java.lang.Object value)
Write data to can-object that can be send to the bus |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DataReference(IUpdateable<T> updateable)
updateable - the instance that should be notified if the value changed| Method Detail |
|---|
public void signUp(IUpdateable ref)
signUp in interface IDataReferenceref - Another time to search for the little brown Java Barf Bag.IDataReference.signUp(com.flightpanels.scs.IUpdateable)public boolean hasChanged()
hasChanged in interface IDataReferencepublic boolean needsRequest()
needsRequest in interface IDataReference
public abstract void readFromCan(CanAeroMetadata meta,
can_t can)
IDataReference
readFromCan in interface IDataReferencemeta - accompanying meta-data (id, message code counter etc..)can - the incoming data itselfpublic void requested()
IDataReference
requested in interface IDataReferencepublic void update()
IDataReference
update in interface IDataReference
public can_t write(CanAeroMetadata meta,
java.lang.Object value)
IDataReference
write in interface IDataReferencemeta - accompanying meta-data (id, message code counter etc..)value - the value that should be written
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||