Package it.freedomotic.model.environment

Examples of it.freedomotic.model.environment.Environment


        timer.scheduleRepeating(refreshRate);
        //draw();
    }

    public void init() {
        Environment env = EnvironmentsController.getInstance().getEnvironments().get(0);
        GWT.log("Zone id: " + id);

        for (Zone z : env.getZones()) {
            if (z.getName().equals(id)) {
                GWT.log("Found!");
                // draw zone
                dr = new DrawableRoom(z);
                //    GWT.log("index: "+((Integer)dr.getIndexColor()).toString());
View Full Code Here


            xml = DOMValidateDTD.validate(file, Info.getApplicationPath() + "/config/validator/environment.dtd");
        } catch (IOException ex) {
            throw new DaoLayerException(ex.getMessage(), ex);
        }

        Environment pojo = null;

        try {
            pojo = (Environment) xstream.fromXML(xml);

            return pojo;
View Full Code Here

        if (MAKE_UNIQUE) {
            envLogic = Freedomotic.INJECTOR.getInstance(EnvironmentLogic.class);

            //defensive copy to not affect the passed object with the changes
            Environment pojoCopy = SerialClone.clone(obj.getPojo());
            pojoCopy.setName(obj.getPojo().getName() + "-" + UidGenerator.getNextStringUid());
            pojoCopy.setUUID(""); // force to assign a new random and unique UUID
            //should be the last called after using setters on envLogic.getPojo()
            envLogic.setPojo(pojoCopy);
        }

        envLogic.init();
View Full Code Here

            xml = DOMValidateDTD.validate(file, Info.getApplicationPath() + "/config/validator/environment.dtd");
        } catch (IOException ex) {
            throw new DaoLayerException(ex.getMessage(), ex);
        }

        Environment pojo = null;

        try {
            pojo = (Environment) xstream.fromXML(xml);
        } catch (XStreamException e) {
            throw new DaoLayerException("XML parsing error. Readed XML is \n" + xml, e);
View Full Code Here

TOP

Related Classes of it.freedomotic.model.environment.Environment

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.