-
- All Implemented Interfaces:
-
it.unibo.alchemist.model.interfaces.Time,java.io.Serializable,java.lang.Comparable
public final class DoubleTime implements Time
This class is meant to provide a reasonably fast time implementation. Should be suitable for most usages, but it inherits the problem of the loss of precision of double numbers when comparing big numbers with low numbers. It could become a real problem with long simulations.
-
-
Constructor Summary
Constructors Constructor Description DoubleTime()Default empty constructor, builds a DoubleTime with value 0. DoubleTime(double val)Builds a new DoubleTime starting from the specified value.
-