org.epics.pvmanager.sim
Class SimulationDataSource

java.lang.Object
  extended by org.epics.pvmanager.DataSource
      extended by org.epics.pvmanager.sim.SimulationDataSource

public final class SimulationDataSource
extends DataSource

Data source to produce simulated signals that can be using during development and testing.

Author:
carcassi

Constructor Summary
SimulationDataSource()
           
 
Method Summary
 void connect(DataRecipe recipe)
          Connects to a set of channels based on the given recipe.
 void disconnect(DataRecipe recipe)
          Disconnects the set of channels given by the recipe.
static DataSource simulatedData()
          Data source instance.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimulationDataSource

public SimulationDataSource()
Method Detail

simulatedData

public static DataSource simulatedData()
Data source instance.

Returns:
the data source instance

connect

public void connect(DataRecipe recipe)
Description copied from class: DataSource
Connects to a set of channels based on the given recipe.

The data source must update the value caches relative to each channel. Before updating any cache, it must lock the collector relative to that cache and after any update it must notify the collector.

Specified by:
connect in class DataSource
Parameters:
recipe - the instructions for the data connection

disconnect

public void disconnect(DataRecipe recipe)
Description copied from class: DataSource
Disconnects the set of channels given by the recipe.

The disconnect call is guaranteed to be given the same object, so that the recipe itself can be used as a key in a map to retrieve the list of resources needed to be closed.

Specified by:
disconnect in class DataSource
Parameters:
recipe - the instructions for the data connection


Copyright © 2010. All Rights Reserved.