Examples of AttributeProxy


Examples of com.sun.xacml.attr.AttributeProxy

            Node child = children.item(i);

            if (child.getNodeName().equals("datatype")) {
                // a datatype is a class with an identifier
                String identifier = child.getAttributes().getNamedItem("identifier").getNodeValue();
                AttributeProxy proxy = (AttributeProxy) (loadClass("datatype", child));

                try {
                    factory.addDatatype(identifier, proxy);
                } catch (IllegalArgumentException iae) {
                    throw new ParsingException("duplicate datatype: " + identifier, iae);
View Full Code Here

Examples of fr.esrf.TangoApi.AttributeProxy

    setSynchronous(false);
  }

  public void start() {
    // Read attribute
    AttributeProxy proxy;
    try {
      proxy = new AttributeProxy(this.getParamText(ATTRIBUTE_NAME));
      DeviceAttribute attr = proxy.read();
     
      System.out.println("\n\n\n"+attr.getNbRead()+"\n\n\n");
      for (int i = 0; i < attr.getNbRead(); i++) {
       
      }
View Full Code Here

Examples of fr.esrf.TangoApi.AttributeProxy

        // Data and data format.
        try {
            TangoAttribute tangoAttribute = new TangoAttribute(name);
            String format = null;
            try {
                AttributeProxy attributeProxy = tangoAttribute.getAttributeProxy();
                if (attributeProxy != null) {
                    AttributeInfo attributeInfo = attributeProxy.get_info();
                    if (attributeInfo != null) {
                        format = attributeInfo.format;
                    }
                }
            }
View Full Code Here

Examples of fr.esrf.TangoApi.AttributeProxy

     * @param device
     * @return
     * @throws SalsaDeviceException
     */
    private static AttributeProxy getAttributeProxy(IDevice device) throws SalsaDeviceException {
        AttributeProxy attributeProxy = null;
        if (device != null) {
            String name = device.getName();
            if ((name != null) && !name.isEmpty()) {
                try {
                    attributeProxy = TangoAttributeHelper.getAttributeProxy(name);
View Full Code Here

Examples of fr.esrf.TangoApi.AttributeProxy

     * @return
     * @throws SalsaDeviceException
     */
    private static AttributeInfo getAttributeInfo(IDevice device) throws SalsaDeviceException {
        AttributeInfo attributeInfo = null;
        AttributeProxy attributeProxy = getAttributeProxy(device);
        if (attributeProxy != null) {
            try {
                attributeInfo = attributeProxy.get_info();
            } catch (Exception e) {
                SalsaDeviceException salsaDeviceException = new SalsaDeviceException(
                        "Cannot read attribute info for attribute " + device.getName(), e);
                throw salsaDeviceException;
            }
View Full Code Here

Examples of fr.esrf.TangoApi.AttributeProxy

        // Data and data format.
        try {
            TangoAttribute tangoAttribute = new TangoAttribute(name);
            String format = null;
            try {
                AttributeProxy attributeProxy = tangoAttribute.getAttributeProxy();
                if (attributeProxy != null) {
                    AttributeInfo attributeInfo = attributeProxy.get_info();
                    if (attributeInfo != null) {
                        format = attributeInfo.format;
                    }
                }
            }
View Full Code Here

Examples of fr.esrf.TangoApi.AttributeProxy

        // Data and data format.
        try {
            TangoAttribute tangoAttribute = new TangoAttribute(name);
            String format = null;
            try {
                AttributeProxy attributeProxy = tangoAttribute.getAttributeProxy();
                if (attributeProxy != null) {
                    AttributeInfo attributeInfo = attributeProxy.get_info();
                    if (attributeInfo != null) {
                        format = attributeInfo.format;
                    }
                }
            }
View Full Code Here

Examples of fr.esrf.TangoApi.AttributeProxy

            public void run() {
                if ((actuatorName != null) && !actuatorName.isEmpty()) {
                    String newActuatorName = actuatorName;
                    try {
                        newActuatorName = TangoUtil.getfullAttributeNameForAttribute(actuatorName);
                        AttributeProxy proxy = new AttributeProxy(newActuatorName);
                        LOGGER.trace("{} full attribute name -> {}", actuatorName, newActuatorName);
                        if (proxy != null) {
                            final String format = proxy.get_info().format;
                            LOGGER.trace(newActuatorName + " format -> " + format);
                            if ((format != null) && !format.isEmpty()) {
                                SwingUtilities.invokeLater(new Runnable() {
                                    @Override
                                    public void run() {
View Full Code Here

Examples of fr.esrf.TangoApi.AttributeProxy

        // Data and data format.
        try {
            TangoAttribute tangoAttribute = new TangoAttribute(name);
            String format = null;
            try {
                AttributeProxy attributeProxy = tangoAttribute.getAttributeProxy();
                if (attributeProxy != null) {
                    AttributeInfo attributeInfo = attributeProxy.get_info();
                    if (attributeInfo != null) {
                        format = attributeInfo.format;
                    }
                }
            }
View Full Code Here

Examples of fr.esrf.TangoApi.AttributeProxy

    setSynchronous(false);
  }

  public void start() {
    // Read attribute
    AttributeProxy proxy;
    try {
      proxy = new AttributeProxy(this.getParamText(ATTRIBUTE_NAME));
      DeviceAttribute attr = proxy.read();
      String stype = this.getParamText(TYPE);
      String format = this.getParamText(FORMAT);
      int type = -1;
      if (format.equalsIgnoreCase("SCALAR") && stype != null
          && !stype.equals("")) {
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.