Class FirebaseConnectionComponent

All Implemented Interfaces:
ActionListener
Direct Known Subclasses:
DesktopFirebaseConnectionComponent, MockFirebaseConnectionComponent

public abstract class FirebaseConnectionComponent extends UIComponent
  • Field Details

    • groupName

      protected String groupName
  • Constructor Details

    • FirebaseConnectionComponent

      public FirebaseConnectionComponent()
  • Method Details

    • init

      protected void init()
      Description copied from class: DiarcComponent
      Perform any component initialization. This should not be used for setting local fields to default values as was the case in DIARC. This method is called after the constructor, and after parseArgs. Setting default values should be done in field declaration or in the constructor.
      Overrides:
      init in class UIComponent
    • addFirebaseListeners

      protected void addFirebaseListeners()
    • writeToDocument

      public abstract boolean writeToDocument(String documentPath, Map<String,Object> data)
    • updateDocument

      public abstract boolean updateDocument(String documentPath, Map<String,Object> data)
    • writeToCollection

      public abstract boolean writeToCollection(String collectionPath, Map<String,Object> data)
    • deleteDocument

      public abstract boolean deleteDocument(String path)
    • deleteCollection

      public abstract boolean deleteCollection(String path, int batchSize)
    • getCollectionDocumentsData

      public abstract List<Map<String,Object>> getCollectionDocumentsData(String path)
    • getDocumentData

      public abstract Map<String,Object> getDocumentData(String path)
    • attachCollectionListener

      public abstract void attachCollectionListener(String path, FirebaseConnectionComponent.Collectionlistener collectionlistener)
    • attachWhereGreaterThanCollectionListener

      public abstract void attachWhereGreaterThanCollectionListener(String param, Object value, String path, FirebaseConnectionComponent.Collectionlistener collectionlistener)
    • deleteFromStorage

      public abstract String deleteFromStorage(String path)
    • writeToStorage

      public abstract boolean writeToStorage(byte[] data, Map<String,Object> metadata)
    • executionLoop

      protected void executionLoop()
      Description copied from class: DiarcComponent
      This is where any code that needs to be called repeatedly in a dedicated thread should live. It is not called by default and you must set shouldRunExecutionLoop to true in your constructor.
      Overrides:
      executionLoop in class UIComponent
    • localshutdown

      protected void localshutdown()
    • resetExistingCollections

      protected void resetExistingCollections()
    • onAgentActionUpdated

      public void onAgentActionUpdated(String actor, String action, String status)
      Specified by:
      onAgentActionUpdated in class UIComponent
    • onBeliefNotificationUpdate

      public void onBeliefNotificationUpdate(String queryTermString, Map<String,Object> bindingsStrings)
      Specified by:
      onBeliefNotificationUpdate in class UIComponent
    • onActiveGoalsUpdated

      public void onActiveGoalsUpdated(List<String> agentStrings, List<String> goalStrings, List<Long> gids, List<String> statuses, List<String> priorityTiers)
      Specified by:
      onActiveGoalsUpdated in class UIComponent
    • onPendingGoalsUpdated

      public void onPendingGoalsUpdated(List<String> agentStrings, List<String> goalStrings, List<Long> gids, List<String> statuses, List<String> priorityTiers)
      Specified by:
      onPendingGoalsUpdated in class UIComponent
    • onActionGenerated

      public void onActionGenerated(ActionDBEntry action, boolean onStartup)
      Specified by:
      onActionGenerated in class UIComponent
    • updateFirebaseDialogueHistory

      public void updateFirebaseDialogueHistory(Utterance u)
    • writeASLToFirebase

      public void writeASLToFirebase(ActionDBEntry e, boolean init)
    • onDictionaryEntriesUpdated

      public void onDictionaryEntriesUpdated(Set<String> dictKeys)
      Specified by:
      onDictionaryEntriesUpdated in class UIComponent
    • getGroupName

      public String getGroupName()
    • writeLocationToFirebase

      public boolean writeLocationToFirebase(String locationName, HashMap<String,Object> locationData)
    • deleteLocationFromFirebase

      public boolean deleteLocationFromFirebase(String locationName)
    • saveCurrentLocationsAsBackupSet

      public boolean saveCurrentLocationsAsBackupSet(String collectionName)
    • deleteLocationBackupSet

      public boolean deleteLocationBackupSet(String documentName)
    • restoreLocationsFromBackup

      public boolean restoreLocationsFromBackup(String documentName)
    • getLocationBackupSetNames

      public List<String> getLocationBackupSetNames()
    • deleteVideoFromFirebase

      public boolean deleteVideoFromFirebase(String videoName)
    • getFirebaseVideoNames

      public List<String> getFirebaseVideoNames()
    • uploadMap

      public boolean uploadMap(ByteArrayOutputStream map, float width, float height, float originX, float originY, float resolution)