congrats Icon
New! Announcing our next generation AI code completions
Read here
Tabnine Logo
ExpressionLanguage.channel
Code IndexAdd Tabnine to your IDE (free)

How to use
channel
method
in
org.diirt.datasource.ExpressionLanguage

Best Java code snippets using org.diirt.datasource.ExpressionLanguage.channel (Showing top 20 results out of 315)

origin: org.diirt/datasource-vtype

/**
 * A channel with the given name of type VDouble.
 *
 * @param name the channel name; can't be null
 * @return an expression representing the channel
 */
public static ChannelExpression<VDouble, Double> vDouble(String name) {
  return channel(name, VDouble.class, Double.class);
}
origin: org.diirt/datasource-vtype

/**
 * A channel with the given name of type VDoubleArray.
 *
 * @param name the channel name; can't be null
 * @return an expression representing the channel
 */
public static ChannelExpression<VDoubleArray, ArrayDouble> vDoubleArray(String name) {
  return channel(name, VDoubleArray.class, ArrayDouble.class);
}
origin: org.diirt/datasource-vtype

/**
 * A channel with the given name of type VByteArray.
 *
 * @param name the channel name; can't be null
 * @return an expression representing the channel
 */
public static ChannelExpression<VByteArray, ArrayByte> vByteArray(String name) {
  return channel(name, VByteArray.class, ArrayByte.class);
}
origin: org.diirt/datasource-vtype

/**
 * A channel with the given name of type VShortArray.
 *
 * @param name the channel name; can't be null
 * @return an expression representing the channel
 */
public static ChannelExpression<VShortArray, ArrayShort> vShortArray(String name) {
  return channel(name, VShortArray.class, ArrayShort.class);
}
origin: org.diirt/datasource-vtype

/**
 * A channel with the given name of type VFloat.
 *
 * @param name the channel name; can't be null
 * @return an expression representing the channel
 */
public static ChannelExpression<VFloat, Float> vFloat(String name) {
  return channel(name, VFloat.class, Float.class);
}
origin: org.diirt/datasource-vtype

/**
 * A channel with the given name of type VShort.
 *
 * @param name the channel name; can't be null
 * @return an expression representing the channel
 */
public static ChannelExpression<VShort, Short> vShort(String name) {
  return channel(name, VShort.class, Short.class);
}
origin: org.diirt/datasource-vtype

/**
 * A channel with the given name of type VIntArray.
 *
 * @param name the channel name; can't be null
 * @return an expression representing the channel
 */
public static ChannelExpression<VIntArray, ArrayInt> vIntArray(String name) {
  return channel(name, VIntArray.class, ArrayInt.class);
}
origin: org.diirt/datasource-vtype

/**
 * A channel with the given name that returns any of the value types.
 *
 * @param name the channel name; can't be null
 * @return an expression representing the channel
 */
public static ChannelExpression<VType, Object> vType(String name) {
  return channel(name, VType.class, Object.class);
}
origin: org.diirt/datasource-vtype

/**
 * A channel with the given name of type VNumber.
 *
 * @param name the channel name; can't be null
 * @return an expression representing the channel
 */
public static ChannelExpression<VNumber, Number> vNumber(String name) {
  return channel(name, VNumber.class, Number.class);
}
origin: org.diirt/datasource-vtype

/**
 * A channel with the given name of type VInt.
 *
 * @param name the channel name; can't be null
 * @return an expression representing the channel
 */
public static ChannelExpression<VInt, Integer> vInt(String name) {
  return channel(name, VInt.class, Integer.class);
}
origin: org.diirt/datasource-vtype

/**
 * A channel with the given name of type VByte.
 *
 * @param name the channel name; can't be null
 * @return an expression representing the channel
 */
public static ChannelExpression<VByte, Byte> vByte(String name) {
  return channel(name, VByte.class, Byte.class);
}
origin: org.diirt/datasource-vtype

/**
 * A channel with the given name of type VFloatArray.
 *
 * @param name the channel name; can't be null
 * @return an expression representing the channel
 */
public static ChannelExpression<VFloatArray, ArrayFloat> vFloatArray(String name) {
  return channel(name, VFloatArray.class, ArrayFloat.class);
}
origin: org.diirt/datasource-vtype

/**
 * A channel with the given name of type VStringArray.
 *
 * @param name the channel name; can't be null
 * @return an expression representing the channel
 */
@SuppressWarnings("unchecked")
public static ChannelExpression<VStringArray, List<String>> vStringArray(String name) {
  return (ChannelExpression<VStringArray, List<String>>) (ChannelExpression) channel(name, VStringArray.class, List.class);
}
origin: org.diirt/datasource-vtype

/**
 * A channel with the given name of type VNumberArray.
 *
 * @param name the channel name; can't be null
 * @return an expression representing the channel
 */
public static ChannelExpression<VNumberArray, ListNumber> vNumberArray(String name) {
  return channel(name, VNumberArray.class, ListNumber.class);
}
origin: org.diirt/datasource-vtype

/**
 * A channel with the given name of type VString.
 *
 * @param name the channel name; can't be null
 * @return an expression representing the channel
 */
public static ChannelExpression<VString, String> vString(String name) {
  return channel(name, VString.class, String.class);
}
origin: org.diirt/datasource-vtype

/**
 * A channel with the given name of type VEnum.
 *
 * @param name the channel name; can't be null
 * @return an expression representing the channel
 */
public static ChannelExpression<VEnum, Integer> vEnum(String name) {
  return channel(name, VEnum.class, Integer.class);
}
origin: org.diirt/datasource

/**
 * A channel with the given name of any type. This expression can be
 * used both in a read and a write expression.
 *
 * @param name the channel name
 * @return an expression representing the channel
 */
public static ChannelExpression<Object, Object> channel(String name) {
  return channel(name, Object.class, Object.class);
}
origin: org.diirt/datasource-sample

public void b4_synchronousWrite() {
  PVWriter<Object> pvWriter = PVManager.write(channel("channelName")).sync();
  // This will block until the write is done
  pvWriter.write("New value");
  System.out.println("Write finished");
  // Remember to close
  pvWriter.close();
}
origin: org.diirt/datasource-sample

public void datasourcesInSWT_CSSTudio() {
  // In CS-Studio, you should never change the default configuration programmatically
  // or you will create problems for other applications. All configuration
  // shoul be done on your own readers/writers.
  // If you are developing user interfaces in SWT, you will want to route the notifications on the SWT thread.
  // Import from here
  // import static org.csstudio.utility.pvmanager.ui.SWTUtil.*;
  // When creating a pv, remember to ask for notification on the SWT thread
  PVReader<?> pvReader = PVManager.read(channel("test")).notifyOn(swtThread()).maxRate(ofMillis(100));
}
origin: org.diirt/datasource-sample

public void datasourcesInSwing() {
  // When creating UIs in swing, you will need to route notification directly
  // on the Event Dispatch Thread.
  // You can do this on a PV by PV basis, or you can change the default if
  // you control the whole application.
  // Import from here
  // import static org.diirt.util.concurrent.Executors.*;
  // Route notification for this pv on the Swing EDT
  PVReader<?> pvReader = PVManager.read(channel("test")).notifyOn(swingEDT()).maxRate(ofMillis(100));
  // Or you can change the default
  PVManager.setDefaultNotificationExecutor(swingEDT());
}
org.diirt.datasourceExpressionLanguagechannel

Javadoc

A channel with the given name of any type. This expression can be used both in a read and a write expression.

Popular methods of ExpressionLanguage

  • channels
    A list of channels with the given names of any type. This expression can be used both in a read and
  • constant
    Creates a constant expression that always return that object, with the given name for the expression
  • latestValueOf
    For reads, returns (only) the latest value computed from a SourceRateReadWriteExpression; for writes
  • newValuesOf
    Returns all the new values generated by the expression source rate.
  • listOf
    Converts a list of expressions to an expression that returns the list of results.
  • mapOf
    An expression that expects a key/value map where the key is the expression name and the value is the
  • resultOf
    An expression that represents the result of a user provided function.

Popular in Java

  • Reactive rest calls using spring rest template
  • putExtra (Intent)
  • setScale (BigDecimal)
  • onRequestPermissionsResult (Fragment)
  • Pointer (com.sun.jna)
    An abstraction for a native pointer data type. A Pointer instance represents, on the Java side, a na
  • Graphics2D (java.awt)
    This Graphics2D class extends the Graphics class to provide more sophisticated control overgraphics
  • Permission (java.security)
    Legacy security code; do not use.
  • MessageFormat (java.text)
    Produces concatenated messages in language-neutral way. New code should probably use java.util.Forma
  • ThreadPoolExecutor (java.util.concurrent)
    An ExecutorService that executes each submitted task using one of possibly several pooled threads, n
  • Table (org.hibernate.mapping)
    A relational table
  • 14 Best Plugins for Eclipse
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now