DESY ACOP Beans Home

de.desy.video.sw
Class TineHandler

java.lang.Object
  extended by de.desy.video.sw.TineHandler
All Implemented Interfaces:
de.desy.tine.client.TLinkCallback

public final class TineHandler
extends java.lang.Object
implements de.desy.tine.client.TLinkCallback

TineHandler encapsulates and divides reception of VSv3 and VSv2 image streams from displaying class ImageDisplayer. It implements probing of sources and reception, prearrangement and forwarding of video image blobs from TINE to displaying part.

Version:
$Id: Templates.xml,v 1.10 2008/06/23 15:30:13 sweisse Exp $
Author:
Stefan Weisse

Constructor Summary
TineHandler(ImageDisplayer displayer)
          Constructor.
 
Method Summary
 void callback(de.desy.tine.client.TLink link)
          TINE callback implemented via TLinkCallback.
 void closeLink()
          used to cancel a running transfer.
static void main(java.lang.String[] args)
          example main for TineHandler plus ImageDisplayer.
 void openLink(java.lang.String aAddress, AccessMode mode, int accessRate)
          Opens a one-time or permanent connection to an image source which can be a VSv3 component with output interface like SGP and CoreProvider or a VSv2 server like GrabServer2.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TineHandler

public TineHandler(ImageDisplayer displayer)
Constructor. The instance must always have a valid displayer-reference.

Method Detail

callback

public void callback(de.desy.tine.client.TLink link)
TINE callback implemented via TLinkCallback. It is called for each event on an asynchronous connection between image source and TineHandler class. Events can be new image delivery and error on image delivery property.

Specified by:
callback in interface de.desy.tine.client.TLinkCallback

openLink

public void openLink(java.lang.String aAddress,
                     AccessMode mode,
                     int accessRate)
              throws java.lang.Exception
Opens a one-time or permanent connection to an image source which can be a VSv3 component with output interface like SGP and CoreProvider or a VSv2 server like GrabServer2.

Parameters:
aAddress - full qualified or incomplete TINE Address for VSv3 Output or VSv2 server (either /Context/Server/ or /Context/Server/Device or Server/ or Server/Device)
mode - TINE access mode (AccessMode.POLL usually)
accessRate - TINE polling rate
Throws:
ConnectionFailed
ImageException
java.lang.Exception

closeLink

public void closeLink()
used to cancel a running transfer. Designed to work even in case no transfer was started at all.


main

public static void main(java.lang.String[] args)
                 throws java.lang.Exception
example main for TineHandler plus ImageDisplayer.

Throws:
java.lang.Exception


Copyright © 2009. All Rights Reserved.