Class AbstractRecordActorAdded

    • Constructor Detail

      • AbstractRecordActorAdded

        public AbstractRecordActorAdded()
    • Method Detail

      • isEnabled

        public abstract boolean isEnabled​(Node added)
        Returns whether the recording is active.
        Parameters:
        added - the node that got added (for context)
        Returns:
        true if active
      • record

        protected abstract void record​(Actor added,
                                       Actor parent,
                                       Actor before,
                                       Actor after,
                                       TreeOperations.InsertPosition position)
        Records the actor that was added.
        Parameters:
        added - the actor that was added
        parent - the parent of the added actor
        before - the immediate actor before the added actor, can be null
        after - the immediate actor after the added actor, can be null
        position - how the actor was added
      • record

        public void record​(Node added,
                           Node parent,
                           TreeOperations.InsertPosition position)
        Records the actor that was added.
        Parameters:
        added - the node that was added
        parent - the parent of the added actor
        position - how the actor was added
      • cleanUp

        public void cleanUp()
        Cleans up data structures, frees up memory.
        Default implementation does nothing.
        Specified by:
        cleanUp in interface CleanUpHandler
      • recordAll

        public static void recordAll​(Node added,
                                     Node parent,
                                     TreeOperations.InsertPosition position)
        Records the actor that was added.
        Parameters:
        added - the node that was added
        parent - the parent of the added actor
        position - how the actor was added
      • cleanUpAll

        public static void cleanUpAll()
        Cleans up data structures, frees up memory, for all recorders.