|
" 2013 FRC Java API " |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.wpi.first.wpilibj.networktables2.AbstractNetworkTableEntryStore
public abstract class AbstractNetworkTableEntryStore
An entry store that handles storing entries and applying transactions
Nested Class Summary | |
---|---|
static interface |
AbstractNetworkTableEntryStore.TableListenerManager
An object that handles firing Table Listeners |
Field Summary | |
---|---|
protected CharacterArrayMap |
idEntries
|
protected OutgoingEntryReceiver |
incomingReceiver
|
protected AbstractNetworkTableEntryStore.TableListenerManager |
listenerManager
|
protected Hashtable |
namedEntries
|
protected OutgoingEntryReceiver |
outgoingReceiver
|
Fields inherited from interface edu.wpi.first.wpilibj.networktables2.IncomingEntryReceiver |
---|
NULL |
Constructor Summary | |
---|---|
protected |
AbstractNetworkTableEntryStore(AbstractNetworkTableEntryStore.TableListenerManager listenerManager)
|
Method Summary | |
---|---|
protected abstract boolean |
addEntry(NetworkTableEntry entry)
|
void |
clearEntries()
Remove all entries NOTE: This method should not be used with applications which cache entries which would lead to unknown results This method is for use in testing only |
void |
clearIds()
clear the id's of all entries |
NetworkTableEntry |
getEntry(char entryId)
Get an entry based on it's id |
NetworkTableEntry |
getEntry(String name)
Get an entry based on it's name |
List |
keys()
Get an entry based on it's name |
void |
notifyEntries(ITable table,
ITableListener listener)
Called to say that a listener should notify the listener manager of all of the entries |
void |
offerIncomingAssignment(NetworkTableEntry entry)
|
void |
offerIncomingUpdate(NetworkTableEntry entry,
char sequenceNumber,
Object value)
|
void |
putOutgoing(NetworkTableEntry tableEntry,
Object value)
|
void |
putOutgoing(String name,
NetworkTableEntryType type,
Object value)
Stores the given value under the given name and queues it for transmission to the server. |
void |
setIncomingReceiver(OutgoingEntryReceiver receiver)
|
void |
setOutgoingReceiver(OutgoingEntryReceiver receiver)
|
protected abstract boolean |
updateEntry(NetworkTableEntry entry,
char sequenceNumber,
Object value)
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected final CharacterArrayMap idEntries
protected final Hashtable namedEntries
protected final AbstractNetworkTableEntryStore.TableListenerManager listenerManager
protected OutgoingEntryReceiver outgoingReceiver
protected OutgoingEntryReceiver incomingReceiver
Constructor Detail |
---|
protected AbstractNetworkTableEntryStore(AbstractNetworkTableEntryStore.TableListenerManager listenerManager)
Method Detail |
---|
public NetworkTableEntry getEntry(char entryId)
entryId
- the id f the entry to look for
public NetworkTableEntry getEntry(String name)
name
- the name of the entry to look for
public List keys()
name
- the name of the entry to look for
public void clearEntries()
public void clearIds()
public void setOutgoingReceiver(OutgoingEntryReceiver receiver)
public void setIncomingReceiver(OutgoingEntryReceiver receiver)
protected abstract boolean addEntry(NetworkTableEntry entry)
protected abstract boolean updateEntry(NetworkTableEntry entry, char sequenceNumber, Object value)
public void putOutgoing(String name, NetworkTableEntryType type, Object value) throws TableKeyExistsWithDifferentTypeException
name
- The name under which to store the given value.type
- The type of the given value.value
- The value to store.
TableKeyExistsWithDifferentTypeException
- Thrown if an
entry already exists with the given name and is of a different type.public void putOutgoing(NetworkTableEntry tableEntry, Object value)
public void offerIncomingAssignment(NetworkTableEntry entry)
offerIncomingAssignment
in interface IncomingEntryReceiver
public void offerIncomingUpdate(NetworkTableEntry entry, char sequenceNumber, Object value)
offerIncomingUpdate
in interface IncomingEntryReceiver
public void notifyEntries(ITable table, ITableListener listener)
listener
- table
-
|
" 2013 FRC Java API " |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |