kipedia.org/wiki/Infinity.
This class implements the Comparable interface, where two time objects can be compared in the following way. If any of the two time objects contains an infinite time value, the rules are: a negative infinity is equal to a negative infinity and less than anything else; a positive infinity is equal to a positive infinity and bigger than anything else. If none of the time objects has an infinite time value, the time values of two time objects are compared. If the time values are the same, the two time objects are treated equal, or they represent the same model time. Otherwise, the time object containing a bigger time value is regarded to happen after the time object with a smaller time value.
All time objects share the same time resolution, which is provided by the top-level director. In some domains, such as CT and DE, users can change the time resolution by configuring the timeResolution parameter. The default value for this parameter "1E-10", which has value 10 -10 . To preserve the consistency of time values, timeResolution can not be changed when a model is running (attempting to do so will trigger an exception).
@author Haiyang Zheng, Edward A. Lee, Elaine Cheong
@version $Id: Time.java,v 1.52 2007/12/07 06:26:47 cxh Exp $
@since Ptolemy II 4.1
@Pt.ProposedRating Yellow (hyzheng)
@Pt.AcceptedRating Red (hyzheng)