Class DefaultTickCountFormatter

  • All Implemented Interfaces:
    TickCountFormatter

    public class DefaultTickCountFormatter
    extends Object
    implements TickCountFormatter
    Default implementation of a Tick Count formatter. This takes the tick value and returns the String "Tick Count: N".
    Version:
    $Revision$ $Date$
    Author:
    Nick Collier
    • Constructor Detail

      • DefaultTickCountFormatter

        public DefaultTickCountFormatter()
    • Method Detail

      • format

        public String format​(double tick)
        Receives the current tick as an argument and returns a String. In this case, Given a tick N, the String will be "Tick Count: N"
        Specified by:
        format in interface TickCountFormatter
        Parameters:
        tick - the tick to format
        Returns:
        a String representing the formatted tick.
      • getInitialValue

        public String getInitialValue()
        Gets the initial text to display before the simulation clock has started.
        Specified by:
        getInitialValue in interface TickCountFormatter
        Returns:
        the initial text to display before the simulation clock has started.