Examples of readAttribute()


Examples of org.sbml.jsbml.SBase.readAttribute()

      log4jLogger.debug("processAttribute: level, version = "
          + sbase.getLevel() + ", " + sbase.getVersion());

      try {
        isAttributeRead = sbase.readAttribute(attributeName, prefix,
          value);
      } catch (Throwable exc) {
        System.err.println(exc.getMessage());
      }
    } else if (contextObject instanceof Annotation) {
View Full Code Here

Examples of org.sbml.jsbml.SBase.readAttribute()

      Object contextObject) {
    boolean isAttributeRead = false;
    if (contextObject instanceof SBase) {
      SBase sbase = (SBase) contextObject;
      try {
        isAttributeRead = sbase.readAttribute(attributeName, prefix,
            value);
      } catch (Throwable exc) {
        System.err.println(exc.getMessage());
      }
    } else if (contextObject instanceof Annotation) {
View Full Code Here

Examples of org.tinyradius.attribute.RadiusAttribute.readAttribute()

    pos = 0;
    while (pos < attributeData.length) {
      int attributeType = attributeData[pos] & 0x0ff;
      int attributeLength = attributeData[pos + 1] & 0x0ff;
      RadiusAttribute a = RadiusAttribute.createRadiusAttribute(dictionary, -1, attributeType);
      a.readAttribute(attributeData, pos, attributeLength);
      rp.addAttribute(a);
      pos += attributeLength;
    }
   
    // request packet?
View Full Code Here

Examples of wpn.hdri.ss.client.Client.readAttribute()

*/
public class ReadAttributeTaskTest {
    @Test
    public void testCancellation() throws Exception {
        Client mockClient = mock(Client.class);
        stub(mockClient.readAttribute(null)).toReturn(new AbstractMap.SimpleEntry<java.lang.Object, wpn.hdri.ss.data.Timestamp>(null, new Timestamp(System.currentTimeMillis())));
        Attribute mockAttribute = mock(Attribute.class);
        Logger mockLogger = mock(Logger.class);

        ScheduledExecutorService singleThreadExecutor = Executors.newScheduledThreadPool(1);

View Full Code Here

Examples of wpn.hdri.ss.client.Client.readAttribute()

    @Test
    public void testCreateClient() throws Exception {
        TineClientFactory instance = new TineClientFactory();
        Client result = instance.createClient("/TEST/SineServer/#SineGen3");

        result.readAttribute("Amplitude");
    }
}
View Full Code Here

Examples of wpn.hdri.ss.client.Client.readAttribute()

    @Test(expected = ClientException.class)
    public void testReadAttr_Failed() throws Exception {
        ClientFactory factory = new ClientFactory();
        Client client = factory.createClient("sys/tg_test/1");

        client.readAttribute("throw_exception");
    }

    //@Test
    public void testReadAttr_Position() throws Exception {
        ClientFactory factory = new ClientFactory();
View Full Code Here

Examples of wpn.hdri.ss.client.Client.readAttribute()

    //@Test
    public void testReadAttr_Position() throws Exception {
        ClientFactory factory = new ClientFactory();
        Client client = factory.createClient("tango://hasgksspp07oh1.desy.de:10000/p07/dcmmotor/dcm_2nd_yaw");
        for (int i = 0; i < 1000; i++) {
            Map.Entry<Double, Timestamp> result = client.<Double>readAttribute("Position");
            System.out.println(result.getKey());
        }
    }

    @Test
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.