Package xbot.common.properties
Class XPropertyManager
java.lang.Object
xbot.common.properties.XPropertyManager
- All Implemented Interfaces:
DataFrameRefreshable
The PropertyManager keeps track of all properties in CoreCode. All properties are implicitly added into its storage.
It is capable of loading or saving all properties via permanentStorage, and getting updates to these properties via
the RandomAccessStore.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidMust be called every robot loop, and should be done before any properties are accessed in order to make the robot as responsive as possible.voidregisterProperty(Property property) Adds the property to the local collection.voidsetShowAllDebugProperties(boolean show) Globally enables or disables showing debug-level properties in NetworkTables.
-
Field Details
-
IN_MEMORY_STORE_NAME
- See Also:
-
properties
-
permanentStore
-
inMemoryRandomAccessStore
-
-
Constructor Details
-
XPropertyManager
-
-
Method Details
-
registerProperty
Adds the property to the local collection. -
setShowAllDebugProperties
public void setShowAllDebugProperties(boolean show) Globally enables or disables showing debug-level properties in NetworkTables. When enabled, debug properties behave like Important properties: they are backed by the permanent store and refreshed every robot loop. When disabled, they revert to the in-memory store and are no longer published.- Parameters:
show- True to publish debug properties to NetworkTables.
-
refreshDataFrame
public void refreshDataFrame()Must be called every robot loop, and should be done before any properties are accessed in order to make the robot as responsive as possible.- Specified by:
refreshDataFramein interfaceDataFrameRefreshable
-