Examples of DeviceAttribute


Examples of fr.esrf.TangoApi.DeviceAttribute

    final JDialog fd = tth.findDialog("Confirmation");
    if (withCancel) {
      final double initValue = 28;
      // init device
      m_deviceProxy.write_attribute(new DeviceAttribute(attributeName,
          initValue));
      tth.rejectDialog(fd);
      Assert.assertTrue("reject confirmation failed", m_deviceProxy
          .read_attribute(attributeName).extractDouble() == initValue);
    } else {
View Full Code Here

Examples of fr.esrf.TangoApi.DeviceAttribute

  private void controlBackgroundColor(final DeviceProxy deviceProxy,
      final String attName, final Color bgColor,
      final JTextField txtField, final boolean bAlarmEnabled)
      throws DevFailed {

    DeviceAttribute devAttr;
    if (bAlarmEnabled) {
      devAttr = deviceProxy.read_attribute(attName);
      Assert.assertEquals("the color is not valid", ColorAttributeQuality
          .getColorForQuality(devAttr.getQuality()), txtField
          .getBackground());
    } else {
      Assert.assertEquals("AlarmEnabled = false but bean has a color",
          (bgColor == null) ? defaultColor : bgColor,
          txtField.getBackground());
View Full Code Here

Examples of fr.esrf.TangoApi.DeviceAttribute

    Sleeper.SECONDS.sleep(3);

    final BooleanAttributeListenerImpl listenerTest = new BooleanAttributeListenerImpl();
    abb.addBooleanAttributeListener(listenerTest);
    deviceValue = !deviceValue;
    this.m_deviceProxy.write_attribute(new DeviceAttribute(nameAttr,
        deviceValue));
    Sleeper.SECONDS.sleep(3);
    // Test listener is notify only one time (per methods)
    // FIXME : should be called 3 time
    assertThat(listenerTest.getNotifyCount()).isEqualTo(2);
View Full Code Here

Examples of fr.esrf.TangoApi.DeviceAttribute

  protected void startStopStartTest() throws DevFailed {
    jf1 = new JFrame();

    final String attributeName = "boolean_scalar_rw";
    final boolean originalValue = true;
    m_deviceProxy.write_attribute(new DeviceAttribute(attributeName,
        originalValue));

    // Initialize the component
    initFirstDevice();
    final AttributeBooleanButtonCometeV2 widget = new AttributeBooleanButtonCometeV2.Builder(
View Full Code Here

Examples of fr.esrf.TangoApi.DeviceAttribute

    final BooleanAttributeListenerImpl listenerTest = new BooleanAttributeListenerImpl();
    widget.addBooleanAttributeListener(listenerTest);

    deviceValue = !deviceValue;
    m_deviceProxy.write_attribute(new DeviceAttribute(attribute,
        deviceValue));

    Sleeper.SECONDS.sleep(3);

    Assert.assertTrue("Listener should be called 3 times",
View Full Code Here

Examples of fr.esrf.TangoApi.DeviceAttribute

        // Initialiser le composant
        initFirstDevice();
        final String attr = "boolean_scalar_rw";

        final boolean initialValue = true;
        m_deviceProxy.write_attribute(new DeviceAttribute(attr, initialValue));

        final AttributeBooleanCombo widget = new AttributeBooleanCombo.Builder(m_deviceName, attr)
                .alarmEnable(false).jframe(jf1).confirmation(true).confirmationText("Execute ?")
                .confirmationTitle("My Confirmation Title").build();
View Full Code Here

Examples of fr.esrf.TangoApi.DeviceAttribute

    protected void startStopStartTest() throws DevFailed {
        jf1 = new JFrame();

        final String attributeName = "boolean_scalar_rw";
        final boolean originalValue = true;
        m_deviceProxy.write_attribute(new DeviceAttribute(attributeName, originalValue));

        // Initialize the component
        initFirstDevice();
        final AttributeBooleanCombo widget = new AttributeBooleanCombo.Builder(m_deviceName,
                attributeName).jframe(jf1).build();
View Full Code Here

Examples of fr.esrf.TangoApi.DeviceAttribute

        jf1 = new JFrame();

        final String attributeName = "boolean_scalar_rw";
        boolean currentBoolean = true;

        m_deviceProxy.write_attribute(new DeviceAttribute(attributeName, currentBoolean));

        // Initialize the component
        initFirstDevice();
        final AttributeBooleanCombo widget = new AttributeBooleanCombo.Builder(m_deviceName,
                attributeName).jframe(jf1).build();
View Full Code Here

Examples of fr.esrf.TangoApi.DeviceAttribute

        jf1 = new JFrame();

        final String attributeName = "boolean_scalar_rw";
        final boolean currentBoolean = true;

        m_deviceProxy.write_attribute(new DeviceAttribute(attributeName, currentBoolean));

        // Initialize the component
        initFirstDevice();
        final AttributeBooleanCombo widget = new AttributeBooleanCombo.Builder(m_deviceName,
                attributeName).jframe(jf1).build();
View Full Code Here

Examples of fr.esrf.TangoApi.DeviceAttribute

        jf1 = new JFrame();

        final String attributeName = "boolean_scalar_rw";
        final boolean currentBoolean = true;

        m_deviceProxy.write_attribute(new DeviceAttribute(attributeName, currentBoolean));

        // Initialize the component
        initFirstDevice();
        final AttributeBooleanCombo widget = new AttributeBooleanCombo.Builder(m_deviceName,
                attributeName).jframe(jf1).build();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.