Package repast.simphony.ui
Class DefaultTickCountFormatter
- java.lang.Object
-
- repast.simphony.ui.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 Summary
Constructors Constructor Description DefaultTickCountFormatter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
format(double tick)
Receives the current tick as an argument and returns a String.String
getInitialValue()
Gets the initial text to display before the simulation clock has started.
-
-
-
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 interfaceTickCountFormatter
- 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 interfaceTickCountFormatter
- Returns:
- the initial text to display before the simulation clock has started.
-
-