Package repast.simphony.ui
Class DefaultTickCountFormatter
java.lang.Object
repast.simphony.ui.DefaultTickCountFormatter
- All Implemented Interfaces:
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
-
Method Summary
Modifier and TypeMethodDescriptionformat
(double tick) Receives the current tick as an argument and returns a String.Gets the initial text to display before the simulation clock has started.
-
Constructor Details
-
DefaultTickCountFormatter
public DefaultTickCountFormatter()
-
-
Method Details
-
format
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
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.
-