Package wpn.hdri.ss.data.attribute

Examples of wpn.hdri.ss.data.attribute.AttributeFactory


     * @return a newly created {@link AttributesManager} instance filled with the attributes defined in the configuration. Attributes have default value set to {@link Value#NULL}
     */
    public AttributesManager initializeAttributes(ClientsManager clientsManager) {
        long now = System.currentTimeMillis();

        AttributesManager attributesManager = new AttributesManager(new AttributeFactory());
        for (Device dev : configuration.getDevices()) {
            String devName = dev.getName();

            final Client devClient = clientsManager.getClient(devName);

View Full Code Here


            Timestamp writeTimestamp = new Timestamp(currentTimestamp);
            doubleAttribute.addValue(writeTimestamp, Value.getInstance(Math.random()), writeTimestamp);
        }


        AttributesManager attributesManager = new AttributesManager(new AttributeFactory() {
            @Override
            public Attribute<?> createAttribute(String attrName, String attrAlias, String devName, Interpolation interpolation, BigDecimal precision, Class<?> type, boolean isArray) {
                return doubleAttribute;
            }
        });
View Full Code Here

TOP

Related Classes of wpn.hdri.ss.data.attribute.AttributeFactory

Copyright © 2018 www.massapicom. 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.