DESY ACOP Beans Home

de.desy.acop.video.displayer
Class TineHandler

java.lang.Object
  extended by de.desy.acop.video.displayer.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 ImageDisplayerTest. 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, David Melkumyan

Field Summary
static java.util.logging.Logger logger
           
 
Constructor Summary
TineHandler(TineImageReceiver receiver)
          Constructor.
 
Method Summary
 void callback(de.desy.tine.client.TLink tlink)
          TINE callback implemented via TLinkCallback.
 void closeLink()
          used to cancel a running transfer.
 void openLink(ConnectionParameters connParams)
          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
 

Field Detail

logger

public static final java.util.logging.Logger logger
Constructor Detail

TineHandler

public TineHandler(TineImageReceiver receiver)
Constructor. The instance must always have a valid receiver-reference.

Method Detail

callback

public void callback(de.desy.tine.client.TLink tlink)
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(ConnectionParameters connParams)
              throws ConnectionFailed
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:
connParams - - connection parameters
Throws:
ConnectionFailed

closeLink

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



Copyright © 2010. All Rights Reserved.