org.epics.pvmanager.test
Class TestDataSource

java.lang.Object
  extended by org.epics.pvmanager.DataSource
      extended by org.epics.pvmanager.test.TestDataSource

public final class TestDataSource
extends DataSource

Data source for testing, error conditions in particular. Each instance of this data source will have its own separate channels and values.

Author:
carcassi

Constructor Summary
TestDataSource()
          Creates a new data source.
 
Method Summary
protected  ChannelHandler<?> createChannel(String channelName)
          Creates a channel handler for the given name.
 
Methods inherited from class org.epics.pvmanager.DataSource
close, concludeWrite, connect, disconnect, getChannels, isWriteable, prepareWrite, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TestDataSource

public TestDataSource()
Creates a new data source.

Method Detail

createChannel

protected ChannelHandler<?> createChannel(String channelName)
Description copied from class: DataSource
Creates a channel handler for the given name. In the simplest case, this is the only method a data source needs to implement.

Specified by:
createChannel in class DataSource
Parameters:
channelName - the name for a new channel
Returns:
a new handler


Copyright © 2011. All Rights Reserved.