Class ProgressInConsole

  • All Implemented Interfaces:
    Destroyable, GlobalInfoSupporter, LoggingLevelHandler, LoggingSupporter, OptionHandler, ShallowCopySupporter<AbstractActorTemplate>, SizeOfHandler, Serializable

    public class ProgressInConsole
    extends AbstractActorTemplate
    Generates a sub-flow that outputs the token count every X number of tokens, with X being the interval supplied to this template.

    Valid options are:

    -D <int> (property: debugLevel)
        The greater the number the more additional info the scheme may output to 
        the console (0 = off).
        default: 0
        minimum: 0
     
    -name <java.lang.String> (property: name)
        The new name for the actor; leave empty to use current.
        default: 
     
    -interval <int> (property: interval)
        The interval for the progress info.
        default: 100
        minimum: 1
     
    -prefix <java.lang.String> (property: prefix)
        The prefix to use in the console.
        default: # of tokens: 
     
    Version:
    $Revision$
    Author:
    fracpete (fracpete at waikato dot ac dot nz)
    See Also:
    Serialized Form
    • Field Detail

      • m_Interval

        protected int m_Interval
        the interval.
      • m_Prefix

        protected String m_Prefix
        the prefix.
    • Constructor Detail

      • ProgressInConsole

        public ProgressInConsole()
    • Method Detail

      • setInterval

        public void setInterval​(int value)
        Sets the interval for the output.
        Parameters:
        value - the interval
      • getInterval

        public int getInterval()
        Returns the interval for the output.
        Returns:
        the interval
      • intervalTipText

        public String intervalTipText()
        Returns the tip text for this property.
        Returns:
        tip text for this property suitable for displaying in the gui
      • setPrefix

        public void setPrefix​(String value)
        Sets the prefix for the output.
        Parameters:
        value - the prefix
      • getPrefix

        public String getPrefix()
        Returns the prefix for the output.
        Returns:
        the prefix
      • prefixTipText

        public String prefixTipText()
        Returns the tip text for this property.
        Returns:
        tip text for this property suitable for displaying in the gui
      • isInteractive

        public boolean isInteractive()
        Whether the flow generated is an interactive one.
        Specified by:
        isInteractive in class AbstractActorTemplate
        Returns:
        true if interactive