Package org.ggp.base.util.propnet.factory.flattener

Examples of org.ggp.base.util.propnet.factory.flattener.PropNetFlattener$Domain


        DomainList response = new DomainList();
        response.domains = Lists.newArrayList();

        for (DomainData data : identityService.listDomains(user)) {
            Domain domain = toModel(data);
            response.domains.add(domain);
        }

        return response;
    }
View Full Code Here


        response.domain = toModel(data);
        return response;
    }

    private Domain toModel(DomainData data) {
        Domain model = new Domain();

        model.id = "" + data.getId();
        model.name = data.getName();

        model.description = data.getDescription();
View Full Code Here

        model.domain = toModel(domain);
        return model;
    }

    private Domain toModel(DomainData domain) {
        Domain model = new Domain();
        model.id = Long.toString(domain.getId());
        model.name = domain.getName();
        return model;
    }
View Full Code Here

   * @return An equivalent PropNet.
   */
  public static PropNet create(List<Gdl> description)
  {
        try {
            List<GdlRule> flatDescription = new PropNetFlattener(description).flatten();
            GamerLogger.log("StateMachine", "Converting...");
            return new PropNetConverter().convert(Role.computeRoles(description), flatDescription);
        } catch(Exception e) {
            GamerLogger.logStackTrace("StateMachine", e);
            return null;
View Full Code Here

TOP

Related Classes of org.ggp.base.util.propnet.factory.flattener.PropNetFlattener$Domain

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.