Examples of CARule


Examples of org.jamesii.model.carules.CARule

    for (Entry<String, Integer> e : map.entrySet()) {
      int i = states.indexOf(e.getKey());
      a.addCondition(new StateCondition(i, e.getValue(), e.getValue()));
    }

    return new CARule(new CurrentStateCondition(states.indexOf(currentState)),
        a, states.indexOf(targetState), 1d);
  }
View Full Code Here

Examples of org.jamesii.model.carules.CARule

    for (Entry<String, Integer> e : map.entrySet()) {
      int i = states.indexOf(e.getKey());
      a.addCondition(new StateCondition(i, e.getValue(), e.getValue()));
    }

    return new CARule(new CurrentStateCondition(states.indexOf(currentState)),
        a, states.indexOf(targetState), 1d);
  }
View Full Code Here

Examples of org.jamesii.model.carules.CARule

            state._fsp--;

            addState("DEAD");
            addState("ALIVE");
            addRule(new CARule(new BooleanCondition(true),
                new WolframCondition(r), 1, 1));
            addRule(new CARule(new BooleanCondition(true),
                new AntiWolframCondition(r), 0, 1));
            retval.neighborhood = new NeumannNeighborhood(1, null);
            neighborhood = retval.neighborhood;
            retval.isWolfram = true;
            retval.wolframRule = r;
View Full Code Here

Examples of org.jamesii.model.carules.CARule

        match(input, SEMICOLON, FOLLOW_SEMICOLON_in_carule841);

        String comment =
            getCommentForToken((prob != null ? ((Token) prob.start) : null)
                .getTokenIndex());
        addRule(new CARule((prob != null ? prob.currentCondition : null),
            preCondition, states.indexOf(target),
            (prob != null ? prob.probability : 0.0), comment));

      }
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.