Class MostCommon

    • Field Detail

      • m_SaveThread

        protected static Thread m_SaveThread
        the threading for saving.
      • m_Counter

        protected static NamedCounter m_Counter
        the count per actor.
    • Constructor Detail

      • MostCommon

        public MostCommon()
    • Method Detail

      • isEnabled

        public boolean isEnabled​(Tree tree)
        Returns whether the recording is active.
        Specified by:
        isEnabled in class AbstractRecordActorEnclosed
        tree - the current tree
        true if active
      • getFilename

        protected static String getFilename()
        Returns the filename for storing the data.
        the filename
      • initCounter

        protected static void initCounter()
        Initializes the counter.
      • save

        protected static String save()
        Performs the actual save operation.
      • saveCounter

        protected static void saveCounter()
        Saves the counter as CSV file.
      • getMostCommon

        public static List<String> getMostCommon​(int max)
        Returns the X most common actors.
        max - the maximum number of actors, <= 0 for all
        the list of actor names