Class XPropertyManager

java.lang.Object
xbot.common.properties.XPropertyManager
All Implemented Interfaces:
DataFrameRefreshable

@Singleton public class XPropertyManager extends Object implements 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 Details

  • Constructor Details

    • XPropertyManager

      @Inject public XPropertyManager(PermanentStorage permanentStore)
  • Method Details

    • registerProperty

      public void registerProperty(Property property)
      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:
      refreshDataFrame in interface DataFrameRefreshable