Class ActorStatistic

    • Field Detail

      • COUNT_ACTORS

        public static String COUNT_ACTORS
        the overall count.
      • COUNT_CONTROLACTORS

        public static String COUNT_CONTROLACTORS
        the control actor count.
      • COUNT_STANDALONES

        public static String COUNT_STANDALONES
        the standalone count.
      • COUNT_SOURCES

        public static String COUNT_SOURCES
        the source count.
      • COUNT_TRANSFORMERS

        public static String COUNT_TRANSFORMERS
        the transformer count.
      • COUNT_SINKS

        public static String COUNT_SINKS
        the sink count.
      • COUNT_SKIPPED

        public static String COUNT_SKIPPED
        the skipped count (includes sub-flows).
      • COUNT_SKIPPED_FLAG_SET

        public static String COUNT_SKIPPED_FLAG_SET
        the skipped count (flag only).
      • m_TypeStatistics

        protected NamedCounter m_TypeStatistics
        the statistics per actor type.
      • m_ClassStatistics

        protected NamedCounter m_ClassStatistics
        the statistics per actor class.
      • m_Actor

        protected Actor m_Actor
        the actor to create the statistics for.
    • Constructor Detail

      • ActorStatistic

        public ActorStatistic()
        Initializes the statistics.
      • ActorStatistic

        public ActorStatistic​(Actor actor)
        Initializes the statistics with the specified actor.
        Parameters:
        actor - the actor to generate the stats for
    • Method Detail

      • setActor

        public void setActor​(Actor value)
        Sets the actor to generate the statistics for.
        Parameters:
        value - the actor to use
      • getActor

        public Actor getActor()
        Returns the underlying actor.
        Returns:
        the actor, null if none set
      • isSkipped

        protected boolean isSkipped​(Actor actor)
        Checks whether the actor itself or one of its parents is skipped.
        Parameters:
        actor - the actor to check
        Returns:
        if itself or a parent is skipped
      • update

        public void update​(Actor actor)
        Updates the statistics with the specified actor.
        Parameters:
        actor - the actor to use
      • calculate

        protected void calculate()
        Generates the statistics.
      • getStatistic

        public double getStatistic​(String name)
        Returns the statistical value for the given statistic name.
        Specified by:
        getStatistic in interface InformativeStatistic
        Parameters:
        name - the name of the statistical value
        Returns:
        the corresponding value
      • toString

        public String toString()
        Returns a string representation of the statistic.
        Overrides:
        toString in class Object
        Returns:
        the string representation