Example usage for org.apache.commons.scxml.env.jsp ELEvaluator ELEvaluator

List of usage examples for org.apache.commons.scxml.env.jsp ELEvaluator ELEvaluator

Introduction

In this page you can find the example usage for org.apache.commons.scxml.env.jsp ELEvaluator ELEvaluator.

Prototype

public ELEvaluator() 

Source Link

Document

Constructor.

Usage

From source file:org.finra.datagenerator.engine.negscxml.NegSCXMLEngine.java

/**
 * Constructor//from   w ww. java  2 s  .  c o  m
 *
 * @param negative the required number of negative variable assignments
 */
public NegSCXMLEngine(final int negative) {
    super();

    ELEvaluator elEvaluator = new ELEvaluator();
    ELContext context = new ELContext();

    this.setEvaluator(elEvaluator);
    this.setRootContext(context);

    this.negative = negative;
}

From source file:org.finra.datagenerator.engine.negscxml.NegSCXMLFrontier.java

/**
 * Constructor// w  w  w  . j a  v a  2s.c om
 *
 * @param possibleState the root node of the model and partial variable assignment to start a dfs from
 * @param negative the required number of negative variable assignments
 * @param model         the model text
 * @param transformations DataTransformers used in the model
 */
public NegSCXMLFrontier(final NegPossibleState possibleState, final SCXML model, final int negative,
        final Map<String, DataTransformer> transformations) {
    root = possibleState;

    this.setStateMachine(model);

    this.setTransformations(transformations);

    ELEvaluator elEvaluator = new ELEvaluator();
    ELContext context = new ELContext();

    this.setEvaluator(elEvaluator);
    this.setRootContext(context);

    this.negative = negative;
}

From source file:org.finra.datagenerator.engine.scxml.SCXMLEngine.java

/**
 * Constructor/*from w  w w .  j av a2s .  c  om*/
 */
public SCXMLEngine() {
    super();

    tagExtensionList = new LinkedList<>();
    tagExtensionList.add(new SetAssignExtension());
    tagExtensionList.add(new SingleValueAssignExtension());
    tagExtensionList.add(new FileExtension());
    tagExtensionList.add(new RangeExtension());

    ELEvaluator elEvaluator = new ELEvaluator();
    ELContext context = new ELContext();

    this.setEvaluator(elEvaluator);
    this.setRootContext(context);
}

From source file:org.finra.datagenerator.engine.scxml.SCXMLFrontier.java

/**
 * Constructor/*from  w  w  w .  ja  v  a2s  .  c  o  m*/
 *
 * @param possibleState the root node of the model and partial variable assignment to start a dfs from
 * @param model the model text
 * @param tagExtensionList custom tags used in this model
 */
public SCXMLFrontier(final PossibleState possibleState, final SCXML model,
        final List<CustomTagExtension> tagExtensionList) {
    root = possibleState;
    this.tagExtensionList = tagExtensionList;
    this.setStateMachine(model);

    ELEvaluator elEvaluator = new ELEvaluator();
    ELContext context = new ELContext();

    this.setEvaluator(elEvaluator);
    this.setRootContext(context);
}