|
" 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.NetworkTableEntry
public class NetworkTableEntry
An entry in a network table
Field Summary | |
---|---|
String |
name
the name of the entry |
static char |
UNKNOWN_ID
the id that represents that an id is unknown for an entry |
Constructor Summary | |
---|---|
NetworkTableEntry(char id,
String name,
char sequenceNumber,
NetworkTableEntryType type,
Object value)
Create a new entry with the given id, name, sequence number, type and value |
|
NetworkTableEntry(String name,
NetworkTableEntryType type,
Object value)
Create a new entry with the given name, type, value, an unknown id and a sequence number of 0 |
Method Summary | |
---|---|
void |
clearId()
clear the id of the entry to unknown |
void |
fireListener(AbstractNetworkTableEntryStore.TableListenerManager listenerManager)
|
void |
forcePut(char newSequenceNumber,
NetworkTableEntryType type,
Object newValue)
force a value and new sequence number upon an entry, Will also set the type of the entry |
void |
forcePut(char newSequenceNumber,
Object newValue)
force a value and new sequence number upon an entry |
char |
getId()
|
char |
getSequenceNumber()
|
NetworkTableEntryType |
getType()
|
Object |
getValue()
|
boolean |
isDirty()
|
void |
makeClean()
|
void |
makeDirty()
|
boolean |
putValue(char newSequenceNumber,
Object newValue)
set the value of the entry if the given sequence number is greater that the current sequence number |
void |
send(NetworkTableConnection connection)
|
void |
sendValue(DataOutputStream os)
Send the value of the entry over the output stream |
void |
setId(char id)
Sets the id of the entry |
String |
toString()
Returns a string representation of the object. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final char UNKNOWN_ID
public final String name
Constructor Detail |
---|
public NetworkTableEntry(String name, NetworkTableEntryType type, Object value)
name
- type
- value
- public NetworkTableEntry(char id, String name, char sequenceNumber, NetworkTableEntryType type, Object value)
id
- name
- sequenceNumber
- type
- value
- Method Detail |
---|
public char getId()
public Object getValue()
public NetworkTableEntryType getType()
public boolean putValue(char newSequenceNumber, Object newValue)
newSequenceNumber
- the sequence number of the incoming entrynewValue
- the new value
public void forcePut(char newSequenceNumber, Object newValue)
newSequenceNumber
- newValue
- public void forcePut(char newSequenceNumber, NetworkTableEntryType type, Object newValue)
newSequenceNumber
- type
- newValue
- public void makeDirty()
public void makeClean()
public boolean isDirty()
public void sendValue(DataOutputStream os) throws IOException
os
-
IOException
public char getSequenceNumber()
public void setId(char id) throws IllegalStateException
id
- the id of the entry
IllegalStateException
- if the entry already has a known idpublic void clearId()
public void send(NetworkTableConnection connection) throws IOException
IOException
public void fireListener(AbstractNetworkTableEntryStore.TableListenerManager listenerManager)
public String toString()
Object
toString
method returns a string that
"textually represents" this object. The result should
be a concise but informative representation that is easy for a
person to read.
It is recommended that all subclasses override this method.
The toString
method for class Object
returns a string consisting of the name of the class of which the
object is an instance, the at-sign character `@
', and
the unsigned hexadecimal representation of the hash code of the
object. In other words, this method returns a string equal to the
value of:
getClass().getName() + '@' + Integer.toHexString(hashCode())
toString
in class Object
|
" 2013 FRC Java API " |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |