org.epics.gpclient.loc.LocalDataSource Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of gpclient-loc Show documentation
Show all versions of gpclient-loc Show documentation
Support for in-memory data source for the EPICS Generic Purpose Client.
/**
* Copyright information and license terms for this software can be
* found in the file LICENSE.TXT included with the distribution.
*/
package org.epics.gpclient.loc;
import java.util.ArrayList;
import java.util.List;
import org.epics.gpclient.datasource.ChannelHandler;
import org.epics.gpclient.datasource.DataSource;
import org.epics.gpclient.datasource.ReadSubscription;
import org.epics.gpclient.datasource.WriteSubscription;
import org.epics.util.text.FunctionParser;
/**
* Data source for locally written data. Each instance of this
* data source will have its own separate channels and values.
*
* @author carcassi
*/
public class LocalDataSource extends DataSource {
/**
* Creates a new data source.
*/
public LocalDataSource() {
}
private final String CHANNEL_SYNTAX_ERROR_MESSAGE =
"Syntax for local channel must be either name, name(Double) or name(String) (e.g \"foo\", \"foo(2.0)\" or \"foo(\"bar\")";
@Override
protected ChannelHandler createChannel(String channelName) {
// Parse the channel name
List
© 2015 - 2025 Weber Informatics LLC | Privacy Policy