jAER project on SourceForge

net.sf.jaer
Class JAERViewer

java.lang.Object
  extended by net.sf.jaer.JAERViewer

public class JAERViewer
extends java.lang.Object

Used to show multiple chips simultaneously. A single viewer is launched initially, with a default chip. New ones can be constructed from the File menu.

Author:
tobi

Nested Class Summary
 class JAERViewer.SyncPlayer
          Synchronized playback and control of such playback is not totally straightforward because of the bursty nature of AER - there are no frames to synchronize on and you obviously cannot sync on event number.
 class JAERViewer.ToggleLoggingAction
          this action toggles logging, possibily for all viewers depending on switch
 class JAERViewer.ToggleSyncEnabledAction
           
 
Field Summary
static JAERDataViewer globalDataViewer
          Can be used to globallhy display data
static long globalTime1
           
static long globalTime2
           
static long globalTime3
           
 
Constructor Summary
JAERViewer()
          Creates a new instance of JAERViewer
 
Method Summary
 void addViewer(AEViewer aEViewer)
           
 int getNumViewers()
           
 JAERViewer.SyncPlayer getPlayer()
           
 java.util.ArrayList<AEViewer> getViewers()
           
 boolean isPlayBack()
           
 boolean isSyncEnabled()
          Controls whether multiple viewers are synchronized for logging and playback.
 void loadSetup(java.io.File f)
           
static void main(java.lang.String[] args)
          The main launcher for AEViewer's.
 void pause()
           
 void removeViewer(AEViewer v)
           
 void saveSetup(java.io.File f)
           
 void setPlayBack(boolean playBack)
           
 void setSyncEnabled(boolean syncEnabled)
          Controls whether multiple viewers are synchronized for logging and playback.
 void startSynchronizedLogging()
           
 void stopSynchronizedLogging()
           
 void toggleSynchronizedLogging()
           
 void zeroTimestamps()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

globalDataViewer

public static JAERDataViewer globalDataViewer
Can be used to globallhy display data


globalTime1

public static long globalTime1

globalTime2

public static long globalTime2

globalTime3

public static long globalTime3
Constructor Detail

JAERViewer

public JAERViewer()
Creates a new instance of JAERViewer

Method Detail

main

public static void main(java.lang.String[] args)
The main launcher for AEViewer's.

Parameters:
args - the first argument can be a recorded AE data filename (.dat) with full path; the viewer will play this file

addViewer

public void addViewer(AEViewer aEViewer)

saveSetup

public void saveSetup(java.io.File f)

loadSetup

public void loadSetup(java.io.File f)

removeViewer

public void removeViewer(AEViewer v)

getViewers

public java.util.ArrayList<AEViewer> getViewers()
Returns:
collection of viewers we manage

getNumViewers

public int getNumViewers()

startSynchronizedLogging

public void startSynchronizedLogging()

stopSynchronizedLogging

public void stopSynchronizedLogging()

toggleSynchronizedLogging

public void toggleSynchronizedLogging()

zeroTimestamps

public void zeroTimestamps()

isSyncEnabled

public boolean isSyncEnabled()
Controls whether multiple viewers are synchronized for logging and playback.

Returns:
true if sychronized.

setSyncEnabled

public void setSyncEnabled(boolean syncEnabled)
Controls whether multiple viewers are synchronized for logging and playback.

Parameters:
syncEnabled - true to be synchronized.

pause

public void pause()

getPlayer

public JAERViewer.SyncPlayer getPlayer()

isPlayBack

public boolean isPlayBack()
Returns:
true if boards are electrically connected and this connection synchronizes the local timestamp value

setPlayBack

public void setPlayBack(boolean playBack)

jAER project on SourceForge