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.
    • 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