verinec.netsim.util
Class SimTime

java.lang.Object
  extended by verinec.netsim.util.SimTime

public class SimTime
extends Object

Defines the interface for simulators.

Version:
$Revision: 60 $
Author:
Dominik Jungo

Constructor Summary
SimTime()
           
 
Method Summary
static int currentTimeInt(SimTime time)
          converts a SimTime value into a int value
static String currentTimeIntString(SimTime time)
          converts a SimTime value into a int value and converts this one into a String
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimTime

public SimTime()
Method Detail

currentTimeInt

public static int currentTimeInt(SimTime time)
converts a SimTime value into a int value

Parameters:
time - a SimTime value
Returns:
the time rounded to an integer value (using Math.round).

currentTimeIntString

public static String currentTimeIntString(SimTime time)
converts a SimTime value into a int value and converts this one into a String

Parameters:
time - a SimTime value
Returns:
the time rounded to an integer value (using Math.round).

Copyright © 2005 Verinec, DIUF