org.globalse.arena.frag.util
Class TimerRegistry

java.lang.Object
  |
  +--org.globalse.arena.frag.util.TimerRegistry

public class TimerRegistry
extends java.lang.Object


Constructor Summary
TimerRegistry(java.lang.String gameName)
          Constructor, which sets the game name.
 
Method Summary
 Timer getTimer(java.lang.String objectName, java.lang.String timerName)
          Returns the timer with the specified name by the parameter.
 void removeTimer(java.lang.String objectName, java.lang.String timerName)
          Removes the timer with the name specified by the parameter timerName.
 void removeTimers(java.lang.String objectName)
          Remove all timers with the specified by the parameter object name.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TimerRegistry

public TimerRegistry(java.lang.String gameName)
Constructor, which sets the game name.
Parameters:
gameName - the name of the game
Method Detail

getTimer

public Timer getTimer(java.lang.String objectName,
                      java.lang.String timerName)
Returns the timer with the specified name by the parameter. If such doesn't exist a new one is created.
Parameters:
objectName - the name, with whom the timer is registried
timerName - the name of the returned timer
Returns:
a timer
See Also:
<{Timer}>

removeTimer

public void removeTimer(java.lang.String objectName,
                        java.lang.String timerName)
Removes the timer with the name specified by the parameter timerName.
Parameters:
timerName - String name of the timer
objectName - the name, with whom the timer is registried
See Also:
<{Timer}>

removeTimers

public void removeTimers(java.lang.String objectName)
Remove all timers with the specified by the parameter object name.
Parameters:
objectName - the name, with whom timer is registried



This page is hosted by the Chair for Applied Software Engineering of the Technische Universität München.
Imprint (Impressum)