Class ValueHelper

java.lang.Object
org.yamcs.utils.ValueHelper

public class ValueHelper extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static org.yamcs.protobuf.Yamcs.Value
    returns new aggregate value The passed arguments have to be of type String, Value, String Value...
    static org.yamcs.protobuf.Yamcs.Value
    newArrayValue(org.yamcs.protobuf.Yamcs.Value... values)
    returns new array value
    static org.yamcs.protobuf.Yamcs.Value
    returns a TIMESTAMP Value
    static org.yamcs.protobuf.Yamcs.Value
     
    static org.yamcs.protobuf.Yamcs.Value
    newValue(boolean x)
    returns a BOOLEAN Value
    static org.yamcs.protobuf.Yamcs.Value
    newValue(byte[] x)
    returns a BINARY Value
    static org.yamcs.protobuf.Yamcs.Value
    newValue(double x)
    returns a DOUBLE Value
    static org.yamcs.protobuf.Yamcs.Value
    newValue(float x)
    returns a FLOAT Value
    static org.yamcs.protobuf.Yamcs.Value
    newValue(int x)
    returns a SINT32 Value
    static org.yamcs.protobuf.Yamcs.Value
    returns a STRING Value

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • ValueHelper

      public ValueHelper()
  • Method Details

    • newValue

      public static org.yamcs.protobuf.Yamcs.Value newValue(int x)
      returns a SINT32 Value
      Parameters:
      x -
      Returns:
    • newUnsignedValue

      public static org.yamcs.protobuf.Yamcs.Value newUnsignedValue(int x)
    • newValue

      public static org.yamcs.protobuf.Yamcs.Value newValue(double x)
      returns a DOUBLE Value
      Parameters:
      x -
      Returns:
    • newValue

      public static org.yamcs.protobuf.Yamcs.Value newValue(float x)
      returns a FLOAT Value
      Parameters:
      x -
      Returns:
    • newValue

      public static org.yamcs.protobuf.Yamcs.Value newValue(String x)
      returns a STRING Value
      Parameters:
      x -
      Returns:
    • newValue

      public static org.yamcs.protobuf.Yamcs.Value newValue(byte[] x)
      returns a BINARY Value
      Parameters:
      x -
      Returns:
    • newValue

      public static org.yamcs.protobuf.Yamcs.Value newValue(boolean x)
      returns a BOOLEAN Value
      Parameters:
      x -
      Returns:
    • newTimestampValue

      public static org.yamcs.protobuf.Yamcs.Value newTimestampValue(long x)
      returns a TIMESTAMP Value
      Parameters:
      x -
      Returns:
    • newArrayValue

      public static org.yamcs.protobuf.Yamcs.Value newArrayValue(org.yamcs.protobuf.Yamcs.Value... values)
      returns new array value
      Returns:
    • newAggregateValue

      public static org.yamcs.protobuf.Yamcs.Value newAggregateValue(Object... objs)
      returns new aggregate value The passed arguments have to be of type String, Value, String Value...
      Returns: