jAER project on SourceForge

net.sf.jaer.eventio
Class AEFileInputStream.WrappedTimeException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by net.sf.jaer.eventio.AEFileInputStream.NonMonotonicTimeException
              extended by net.sf.jaer.eventio.AEFileInputStream.WrappedTimeException
All Implemented Interfaces:
java.io.Serializable
Enclosing class:
AEFileInputStream

public class AEFileInputStream.WrappedTimeException
extends AEFileInputStream.NonMonotonicTimeException

Indicates that timestamp has wrapped around from most positive to most negative signed value. The de-facto timestamp tick is us and timestamps are represented as int32 in jAER. Therefore the largest possible positive timestamp is 2^31-1 ticks which equals 2147.4836 seconds (35.7914 minutes). This wraps to -2147 seconds. The actual total time can be computed taking account of these "big wraps" if the time is increased by 4294.9673 seconds on each WrappedTimeException (when readimg file forwards).

See Also:
Serialized Form

Field Summary
 
Fields inherited from class net.sf.jaer.eventio.AEFileInputStream.NonMonotonicTimeException
lastTimestamp, position, timestamp
 
Constructor Summary
AEFileInputStream.WrappedTimeException(int readTs, int lastTs)
           
AEFileInputStream.WrappedTimeException(int readTs, int lastTs, int position)
           
 
Method Summary
 java.lang.String toString()
           
 
Methods inherited from class net.sf.jaer.eventio.AEFileInputStream.NonMonotonicTimeException
getLastTimestamp, getTimestamp
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AEFileInputStream.WrappedTimeException

public AEFileInputStream.WrappedTimeException(int readTs,
                                              int lastTs)

AEFileInputStream.WrappedTimeException

public AEFileInputStream.WrappedTimeException(int readTs,
                                              int lastTs,
                                              int position)
Method Detail

toString

public java.lang.String toString()
Overrides:
toString in class AEFileInputStream.NonMonotonicTimeException

jAER project on SourceForge